@@ -4935,7 +4935,7 @@ class ObjectBoxC {
49354935 int Function (ffi.Pointer <OBX_query_builder >, int ,
49364936 ffi.Pointer <ffi.Pointer <ffi.Char >>, int , bool )> ();
49374937
4938- /// For OBXPropertyType_StringVector - matches if at least one vector item equals the given value .
4938+ /// @deprecated Please use obx_qb_contains_element_string() instead .
49394939 int qb_any_equals_string (
49404940 ffi.Pointer <OBX_query_builder > builder,
49414941 int property_id,
@@ -8399,6 +8399,67 @@ class ObjectBoxC {
83998399 late final _sync_close =
84008400 _sync_closePtr.asFunction< int Function (ffi.Pointer <OBX_sync >)> ();
84018401
8402+ /// Adds or replaces a sync filter variable value for the given name to the sync client.
8403+ /// Eventually existing values for the same name are replaced.
8404+ /// Client filter variables can be used in server-side sync filters to filter out objects that do not match the filter.
8405+ /// Filter variables must be added before login, e.g. before obx_sync_start() or setting credentials.
8406+ /// @param name non-NULL name of the filter variable
8407+ /// @param value non-NULL value of the filter variable
8408+ int sync_filter_variables_put (
8409+ ffi.Pointer <OBX_sync > sync1,
8410+ ffi.Pointer <ffi.Char > name,
8411+ ffi.Pointer <ffi.Char > value,
8412+ ) {
8413+ return _sync_filter_variables_put (
8414+ sync1,
8415+ name,
8416+ value,
8417+ );
8418+ }
8419+
8420+ late final _sync_filter_variables_putPtr = _lookup<
8421+ ffi.NativeFunction <
8422+ obx_err Function (ffi.Pointer <OBX_sync >, ffi.Pointer <ffi.Char >,
8423+ ffi.Pointer <ffi.Char >)>> ('obx_sync_filter_variables_put' );
8424+ late final _sync_filter_variables_put =
8425+ _sync_filter_variables_putPtr.asFunction<
8426+ int Function (ffi.Pointer <OBX_sync >, ffi.Pointer <ffi.Char >,
8427+ ffi.Pointer <ffi.Char >)> ();
8428+
8429+ /// Removes a previously added sync filter variable value.
8430+ int sync_filter_variables_remove (
8431+ ffi.Pointer <OBX_sync > sync1,
8432+ ffi.Pointer <ffi.Char > name,
8433+ ) {
8434+ return _sync_filter_variables_remove (
8435+ sync1,
8436+ name,
8437+ );
8438+ }
8439+
8440+ late final _sync_filter_variables_removePtr = _lookup<
8441+ ffi.NativeFunction <
8442+ obx_err Function (ffi.Pointer <OBX_sync >,
8443+ ffi.Pointer <ffi.Char >)>> ('obx_sync_filter_variables_remove' );
8444+ late final _sync_filter_variables_remove = _sync_filter_variables_removePtr
8445+ .asFunction< int Function (ffi.Pointer <OBX_sync >, ffi.Pointer <ffi.Char >)> ();
8446+
8447+ /// Removes all previously added sync filter variable values.
8448+ int sync_filter_variables_remove_all (
8449+ ffi.Pointer <OBX_sync > sync1,
8450+ ) {
8451+ return _sync_filter_variables_remove_all (
8452+ sync1,
8453+ );
8454+ }
8455+
8456+ late final _sync_filter_variables_remove_allPtr =
8457+ _lookup< ffi.NativeFunction <obx_err Function (ffi.Pointer <OBX_sync >)>> (
8458+ 'obx_sync_filter_variables_remove_all' );
8459+ late final _sync_filter_variables_remove_all =
8460+ _sync_filter_variables_remove_allPtr
8461+ .asFunction< int Function (ffi.Pointer <OBX_sync >)> ();
8462+
84028463 /// Sets credentials to authenticate the client with the server.
84038464 /// Any credentials that were set before are replaced;
84048465 /// if you want to pass multiple credentials, use obx_sync_credentials_add() instead.
@@ -10400,6 +10461,9 @@ abstract class OBXFeature {
1040010461
1040110462 /// This is a free trial version; only applies to server builds (no trial builds for database and Sync clients).
1040210463 static const int Trial = 18 ;
10464+
10465+ /// Server-side filters to return individual data for each sync user (user-specific data).
10466+ static const int SyncFilters = 19 ;
1040310467}
1040410468
1040510469/// Log level as passed to obx_log_callback.
@@ -11677,11 +11741,11 @@ class OBX_dart_finalizer extends ffi.Opaque {}
1167711741typedef obx_dart_closer
1167811742 = ffi.NativeFunction <obx_err Function (ffi.Pointer <ffi.Void > native_object)>;
1167911743
11680- const int OBX_VERSION_MAJOR = 4 ;
11744+ const int OBX_VERSION_MAJOR = 5 ;
1168111745
11682- const int OBX_VERSION_MINOR = 3 ;
11746+ const int OBX_VERSION_MINOR = 0 ;
1168311747
11684- const int OBX_VERSION_PATCH = 1 ;
11748+ const int OBX_VERSION_PATCH = 0 ;
1168511749
1168611750const int OBX_ID_NEW = - 1 ;
1168711751
0 commit comments