1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
|
#ifndef FUTURE_VALUE_H
#define FUTURE_VALUE_H
#include <bson.h>
#include <mongoc.h>
#include "mongoc-server-description.h"
#include "mongoc-topology-private.h"
/**************************************************
*
* Generated by build/generate-future-functions.py.
*
* DO NOT EDIT THIS FILE.
*
*************************************************/
typedef char * char_ptr;
typedef char ** char_ptr_ptr;
typedef const char * const_char_ptr;
typedef bson_error_t * bson_error_ptr;
typedef bson_t * bson_ptr;
typedef const bson_t * const_bson_ptr;
typedef const bson_t ** const_bson_ptr_ptr;
typedef mongoc_bulk_operation_t * mongoc_bulk_operation_ptr;
typedef mongoc_client_t * mongoc_client_ptr;
typedef mongoc_collection_t * mongoc_collection_ptr;
typedef mongoc_cursor_t * mongoc_cursor_ptr;
typedef mongoc_database_t * mongoc_database_ptr;
typedef mongoc_server_description_t * mongoc_server_description_ptr;
typedef mongoc_topology_t * mongoc_topology_ptr;
typedef const mongoc_read_prefs_t * const_mongoc_read_prefs_ptr;
typedef const mongoc_write_concern_t * const_mongoc_write_concern_ptr;
typedef enum {
future_value_no_type = 0,
future_value_bool_type,
future_value_char_ptr_type,
future_value_char_ptr_ptr_type,
future_value_int64_t_type,
future_value_uint32_t_type,
future_value_const_char_ptr_type,
future_value_bson_error_ptr_type,
future_value_bson_ptr_type,
future_value_const_bson_ptr_type,
future_value_const_bson_ptr_ptr_type,
future_value_mongoc_bulk_operation_ptr_type,
future_value_mongoc_client_ptr_type,
future_value_mongoc_collection_ptr_type,
future_value_mongoc_cursor_ptr_type,
future_value_mongoc_database_ptr_type,
future_value_mongoc_insert_flags_t_type,
future_value_mongoc_query_flags_t_type,
future_value_mongoc_server_description_ptr_type,
future_value_mongoc_ss_optype_t_type,
future_value_mongoc_topology_ptr_type,
future_value_const_mongoc_read_prefs_ptr_type,
future_value_const_mongoc_write_concern_ptr_type,
future_value_void_type,
} future_value_type_t;
typedef struct _future_value_t
{
future_value_type_t type;
union {
bool bool_value;
char_ptr char_ptr_value;
char_ptr_ptr char_ptr_ptr_value;
int64_t int64_t_value;
uint32_t uint32_t_value;
const_char_ptr const_char_ptr_value;
bson_error_ptr bson_error_ptr_value;
bson_ptr bson_ptr_value;
const_bson_ptr const_bson_ptr_value;
const_bson_ptr_ptr const_bson_ptr_ptr_value;
mongoc_bulk_operation_ptr mongoc_bulk_operation_ptr_value;
mongoc_client_ptr mongoc_client_ptr_value;
mongoc_collection_ptr mongoc_collection_ptr_value;
mongoc_cursor_ptr mongoc_cursor_ptr_value;
mongoc_database_ptr mongoc_database_ptr_value;
mongoc_insert_flags_t mongoc_insert_flags_t_value;
mongoc_query_flags_t mongoc_query_flags_t_value;
mongoc_server_description_ptr mongoc_server_description_ptr_value;
mongoc_ss_optype_t mongoc_ss_optype_t_value;
mongoc_topology_ptr mongoc_topology_ptr_value;
const_mongoc_read_prefs_ptr const_mongoc_read_prefs_ptr_value;
const_mongoc_write_concern_ptr const_mongoc_write_concern_ptr_value;
};
} future_value_t;
future_value_t *future_value_new ();
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
#endif
void future_value_set_void (future_value_t *future_value);
void future_value_get_void (future_value_t *future_value);
void
future_value_set_bool(
future_value_t *future_value,
bool value);
bool
future_value_get_bool (
future_value_t *future_value);
void
future_value_set_char_ptr(
future_value_t *future_value,
char_ptr value);
char_ptr
future_value_get_char_ptr (
future_value_t *future_value);
void
future_value_set_char_ptr_ptr(
future_value_t *future_value,
char_ptr_ptr value);
char_ptr_ptr
future_value_get_char_ptr_ptr (
future_value_t *future_value);
void
future_value_set_int64_t(
future_value_t *future_value,
int64_t value);
int64_t
future_value_get_int64_t (
future_value_t *future_value);
void
future_value_set_uint32_t(
future_value_t *future_value,
uint32_t value);
uint32_t
future_value_get_uint32_t (
future_value_t *future_value);
void
future_value_set_const_char_ptr(
future_value_t *future_value,
const_char_ptr value);
const_char_ptr
future_value_get_const_char_ptr (
future_value_t *future_value);
void
future_value_set_bson_error_ptr(
future_value_t *future_value,
bson_error_ptr value);
bson_error_ptr
future_value_get_bson_error_ptr (
future_value_t *future_value);
void
future_value_set_bson_ptr(
future_value_t *future_value,
bson_ptr value);
bson_ptr
future_value_get_bson_ptr (
future_value_t *future_value);
void
future_value_set_const_bson_ptr(
future_value_t *future_value,
const_bson_ptr value);
const_bson_ptr
future_value_get_const_bson_ptr (
future_value_t *future_value);
void
future_value_set_const_bson_ptr_ptr(
future_value_t *future_value,
const_bson_ptr_ptr value);
const_bson_ptr_ptr
future_value_get_const_bson_ptr_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_bulk_operation_ptr(
future_value_t *future_value,
mongoc_bulk_operation_ptr value);
mongoc_bulk_operation_ptr
future_value_get_mongoc_bulk_operation_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_client_ptr(
future_value_t *future_value,
mongoc_client_ptr value);
mongoc_client_ptr
future_value_get_mongoc_client_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_collection_ptr(
future_value_t *future_value,
mongoc_collection_ptr value);
mongoc_collection_ptr
future_value_get_mongoc_collection_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_cursor_ptr(
future_value_t *future_value,
mongoc_cursor_ptr value);
mongoc_cursor_ptr
future_value_get_mongoc_cursor_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_database_ptr(
future_value_t *future_value,
mongoc_database_ptr value);
mongoc_database_ptr
future_value_get_mongoc_database_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_insert_flags_t(
future_value_t *future_value,
mongoc_insert_flags_t value);
mongoc_insert_flags_t
future_value_get_mongoc_insert_flags_t (
future_value_t *future_value);
void
future_value_set_mongoc_query_flags_t(
future_value_t *future_value,
mongoc_query_flags_t value);
mongoc_query_flags_t
future_value_get_mongoc_query_flags_t (
future_value_t *future_value);
void
future_value_set_mongoc_server_description_ptr(
future_value_t *future_value,
mongoc_server_description_ptr value);
mongoc_server_description_ptr
future_value_get_mongoc_server_description_ptr (
future_value_t *future_value);
void
future_value_set_mongoc_ss_optype_t(
future_value_t *future_value,
mongoc_ss_optype_t value);
mongoc_ss_optype_t
future_value_get_mongoc_ss_optype_t (
future_value_t *future_value);
void
future_value_set_mongoc_topology_ptr(
future_value_t *future_value,
mongoc_topology_ptr value);
mongoc_topology_ptr
future_value_get_mongoc_topology_ptr (
future_value_t *future_value);
void
future_value_set_const_mongoc_read_prefs_ptr(
future_value_t *future_value,
const_mongoc_read_prefs_ptr value);
const_mongoc_read_prefs_ptr
future_value_get_const_mongoc_read_prefs_ptr (
future_value_t *future_value);
void
future_value_set_const_mongoc_write_concern_ptr(
future_value_t *future_value,
const_mongoc_write_concern_ptr value);
const_mongoc_write_concern_ptr
future_value_get_const_mongoc_write_concern_ptr (
future_value_t *future_value);
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif /* FUTURE_VALUE_H */
|