@@ -4,6 +4,10 @@ namespace TileDB.Interop
44{
55 public static unsafe partial class Methods
66 {
7+ [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , EntryPoint = "_Z13tiledb_statusi" , ExactSpelling = true ) ]
8+ [ return : NativeTypeName ( "capi_status_t" ) ]
9+ public static extern int tiledb_status ( [ NativeTypeName ( "capi_return_t" ) ] int x ) ;
10+
711 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
812 [ return : NativeTypeName ( "int32_t" ) ]
913 public static extern int tiledb_query_type_to_str ( tiledb_query_type_t query_type , [ NativeTypeName ( "const char **" ) ] sbyte * * str ) ;
@@ -124,6 +128,10 @@ public static unsafe partial class Methods
124128 [ return : NativeTypeName ( "uint64_t" ) ]
125129 public static extern ulong tiledb_timestamp_now_ms ( ) ;
126130
131+ [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
132+ [ return : NativeTypeName ( "const char *" ) ]
133+ public static extern sbyte * tiledb_timestamps ( ) ;
134+
127135 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
128136 public static extern void tiledb_version ( [ NativeTypeName ( "int32_t *" ) ] int * major , [ NativeTypeName ( "int32_t *" ) ] int * minor , [ NativeTypeName ( "int32_t *" ) ] int * rev ) ;
129137
@@ -270,49 +278,49 @@ public static unsafe partial class Methods
270278 public static extern int tiledb_group_create ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const char *" ) ] sbyte * group_uri ) ;
271279
272280 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
273- [ return : NativeTypeName ( "int32_t " ) ]
281+ [ return : NativeTypeName ( "capi_return_t " ) ]
274282 public static extern int tiledb_filter_alloc ( tiledb_ctx_t * ctx , tiledb_filter_type_t type , tiledb_filter_t * * filter ) ;
275283
276284 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
277285 public static extern void tiledb_filter_free ( tiledb_filter_t * * filter ) ;
278286
279287 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
280- [ return : NativeTypeName ( "int32_t " ) ]
288+ [ return : NativeTypeName ( "capi_return_t " ) ]
281289 public static extern int tiledb_filter_get_type ( tiledb_ctx_t * ctx , tiledb_filter_t * filter , tiledb_filter_type_t * type ) ;
282290
283291 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
284- [ return : NativeTypeName ( "int32_t " ) ]
292+ [ return : NativeTypeName ( "capi_return_t " ) ]
285293 public static extern int tiledb_filter_set_option ( tiledb_ctx_t * ctx , tiledb_filter_t * filter , tiledb_filter_option_t option , [ NativeTypeName ( "const void *" ) ] void * value ) ;
286294
287295 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
288- [ return : NativeTypeName ( "int32_t " ) ]
296+ [ return : NativeTypeName ( "capi_return_t " ) ]
289297 public static extern int tiledb_filter_get_option ( tiledb_ctx_t * ctx , tiledb_filter_t * filter , tiledb_filter_option_t option , void * value ) ;
290298
291299 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
292- [ return : NativeTypeName ( "int32_t " ) ]
300+ [ return : NativeTypeName ( "capi_return_t " ) ]
293301 public static extern int tiledb_filter_list_alloc ( tiledb_ctx_t * ctx , tiledb_filter_list_t * * filter_list ) ;
294302
295303 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
296304 public static extern void tiledb_filter_list_free ( tiledb_filter_list_t * * filter_list ) ;
297305
298306 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
299- [ return : NativeTypeName ( "int32_t " ) ]
307+ [ return : NativeTypeName ( "capi_return_t " ) ]
300308 public static extern int tiledb_filter_list_add_filter ( tiledb_ctx_t * ctx , tiledb_filter_list_t * filter_list , tiledb_filter_t * filter ) ;
301309
302310 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
303- [ return : NativeTypeName ( "int32_t " ) ]
311+ [ return : NativeTypeName ( "capi_return_t " ) ]
304312 public static extern int tiledb_filter_list_set_max_chunk_size ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const tiledb_filter_list_t *" ) ] tiledb_filter_list_t * filter_list , [ NativeTypeName ( "uint32_t" ) ] uint max_chunk_size ) ;
305313
306314 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
307- [ return : NativeTypeName ( "int32_t " ) ]
315+ [ return : NativeTypeName ( "capi_return_t " ) ]
308316 public static extern int tiledb_filter_list_get_nfilters ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const tiledb_filter_list_t *" ) ] tiledb_filter_list_t * filter_list , [ NativeTypeName ( "uint32_t *" ) ] uint * nfilters ) ;
309317
310318 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
311- [ return : NativeTypeName ( "int32_t " ) ]
319+ [ return : NativeTypeName ( "capi_return_t " ) ]
312320 public static extern int tiledb_filter_list_get_filter_from_index ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const tiledb_filter_list_t *" ) ] tiledb_filter_list_t * filter_list , [ NativeTypeName ( "uint32_t" ) ] uint index , tiledb_filter_t * * filter ) ;
313321
314322 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
315- [ return : NativeTypeName ( "int32_t " ) ]
323+ [ return : NativeTypeName ( "capi_return_t " ) ]
316324 public static extern int tiledb_filter_list_get_max_chunk_size ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const tiledb_filter_list_t *" ) ] tiledb_filter_list_t * filter_list , [ NativeTypeName ( "uint32_t *" ) ] uint * max_chunk_size ) ;
317325
318326 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
@@ -1363,6 +1371,10 @@ public static unsafe partial class Methods
13631371 [ return : NativeTypeName ( "int32_t" ) ]
13641372 public static extern int tiledb_query_add_point_ranges ( tiledb_ctx_t * ctx , tiledb_query_t * query , [ NativeTypeName ( "uint32_t" ) ] uint dim_idx , [ NativeTypeName ( "const void *" ) ] void * start , [ NativeTypeName ( "uint64_t" ) ] ulong count ) ;
13651373
1374+ [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
1375+ [ return : NativeTypeName ( "int32_t" ) ]
1376+ public static extern int tiledb_query_get_relevant_fragment_num ( tiledb_ctx_t * ctx , [ NativeTypeName ( "const tiledb_query_t *" ) ] tiledb_query_t * query , [ NativeTypeName ( "uint64_t *" ) ] ulong * relevant_fragment_num ) ;
1377+
13661378 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
13671379 [ return : NativeTypeName ( "int32_t" ) ]
13681380 public static extern int tiledb_query_get_status_details ( tiledb_ctx_t * ctx , tiledb_query_t * query , tiledb_query_status_details_t * status ) ;
@@ -1497,5 +1509,9 @@ public static unsafe partial class Methods
14971509 [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
14981510 [ return : NativeTypeName ( "int32_t" ) ]
14991511 public static extern int tiledb_mime_type_from_str ( [ NativeTypeName ( "const char *" ) ] sbyte * str , tiledb_mime_type_t * mime_type ) ;
1512+
1513+ [ DllImport ( "libtiledb" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
1514+ [ return : NativeTypeName ( "int32_t" ) ]
1515+ public static extern int tiledb_fragment_info_get_total_cell_num ( tiledb_ctx_t * ctx , tiledb_fragment_info_t * fragment_info , [ NativeTypeName ( "uint64_t *" ) ] ulong * count ) ;
15001516 }
15011517}
0 commit comments