static void * background_mongoc_collection_find_and_modify (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_bool_type; future_value_set_bool ( &return_value, mongoc_collection_find_and_modify ( future_value_get_mongoc_collection_ptr (future_get_param (future, 0)), future_value_get_const_bson_ptr (future_get_param (future, 1)), future_value_get_const_bson_ptr (future_get_param (future, 2)), future_value_get_const_bson_ptr (future_get_param (future, 3)), future_value_get_const_bson_ptr (future_get_param (future, 4)), future_value_get_bool (future_get_param (future, 5)), future_value_get_bool (future_get_param (future, 6)), future_value_get_bool (future_get_param (future, 7)), future_value_get_bson_ptr (future_get_param (future, 8)), future_value_get_bson_error_ptr (future_get_param (future, 9)) )); future_resolve (future, return_value); return NULL; }
bson_error_ptr future_get_bson_error_ptr (future_t *future) { if (future_wait (future)) { return future_value_get_bson_error_ptr (&future->return_value); } fprintf (stderr, "%s timed out\n", BSON_FUNC); abort (); }
static void * background_mongoc_database_get_collection_names (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_char_ptr_ptr_type; future_value_set_char_ptr_ptr ( &return_value, mongoc_database_get_collection_names ( future_value_get_mongoc_database_ptr (future_get_param (future, 0)), future_value_get_bson_error_ptr (future_get_param (future, 1)) )); future_resolve (future, return_value); return NULL; }
static void * background_mongoc_bulk_operation_execute (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_uint32_t_type; future_value_set_uint32_t ( &return_value, mongoc_bulk_operation_execute ( future_value_get_mongoc_bulk_operation_ptr (future_get_param (future, 0)), future_value_get_bson_ptr (future_get_param (future, 1)), future_value_get_bson_error_ptr (future_get_param (future, 2)) )); future_resolve (future, return_value); return NULL; }
static void * background_mongoc_client_get_gridfs (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_mongoc_gridfs_ptr_type; future_value_set_mongoc_gridfs_ptr ( &return_value, mongoc_client_get_gridfs ( future_value_get_mongoc_client_ptr (future_get_param (future, 0)), future_value_get_const_char_ptr (future_get_param (future, 1)), future_value_get_const_char_ptr (future_get_param (future, 2)), future_value_get_bson_error_ptr (future_get_param (future, 3)) )); future_resolve (future, return_value); return NULL; }
static void * background_mongoc_topology_select (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_mongoc_server_description_ptr_type; future_value_set_mongoc_server_description_ptr ( &return_value, mongoc_topology_select ( future_value_get_mongoc_topology_ptr (future_get_param (future, 0)), future_value_get_mongoc_ss_optype_t (future_get_param (future, 1)), future_value_get_const_mongoc_read_prefs_ptr (future_get_param (future, 2)), future_value_get_int64_t (future_get_param (future, 3)), future_value_get_bson_error_ptr (future_get_param (future, 4)) )); future_resolve (future, return_value); return NULL; }
static void * background_mongoc_client_command_simple (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_bool_type; future_value_set_bool ( &return_value, mongoc_client_command_simple ( future_value_get_mongoc_client_ptr (future_get_param (future, 0)), future_value_get_const_char_ptr (future_get_param (future, 1)), future_value_get_const_bson_ptr (future_get_param (future, 2)), future_value_get_const_mongoc_read_prefs_ptr (future_get_param (future, 3)), future_value_get_bson_ptr (future_get_param (future, 4)), future_value_get_bson_error_ptr (future_get_param (future, 5)) )); future_resolve (future, return_value); return NULL; }
static void * background_mongoc_collection_insert_bulk (void *data) { future_t *future = (future_t *) data; future_value_t return_value; return_value.type = future_value_bool_type; future_value_set_bool ( &return_value, mongoc_collection_insert_bulk ( future_value_get_mongoc_collection_ptr (future_get_param (future, 0)), future_value_get_mongoc_insert_flags_t (future_get_param (future, 1)), future_value_get_const_bson_ptr_ptr (future_get_param (future, 2)), future_value_get_uint32_t (future_get_param (future, 3)), future_value_get_const_mongoc_write_concern_ptr (future_get_param (future, 4)), future_value_get_bson_error_ptr (future_get_param (future, 5)) )); future_resolve (future, return_value); return NULL; }