*
* @return the length of the current BSON object.
*/
-int bson_iterator_string_len(const bson_iterator *i);
+EJDB_EXPORT int bson_iterator_string_len(const bson_iterator *i);
/**
* Get the code value of the BSON object currently pointed to by the
*
* @return BSON_OK or BSON_ERROR.
*/
-int bson_init_data(bson *b, char *data);
+EJDB_EXPORT int bson_init_data(bson *b, char *data);
EJDB_EXPORT int bson_init_finished_data(bson *b, const char *data);
/**
*
* @return BSON_OK or BSON_ERROR.
*/
-void bson_init_size(bson *b, int size);
+EJDB_EXPORT void bson_init_size(bson *b, int size);
-void bson_init_on_stack(bson *b, char *bstack, int mincapacity, int maxonstack);
+EJDB_EXPORT void bson_init_on_stack(bson *b, char *bstack, int mincapacity, int maxonstack);
/**
* Grow a bson object.
* @return BSON_OK or BSON_ERROR with the bson error object set.
* Exits if allocation fails.
*/
-int bson_ensure_space(bson *b, const int bytesNeeded);
+EJDB_EXPORT int bson_ensure_space(bson *b, const int bytesNeeded);
/**
* Finalize a bson object.
extern bson_printf_func bson_errprintf;
-EJDB_EXPORT void bson_free(void *ptr);
+ void bson_free(void *ptr);
/**
* Allocates memory and checks return value, exiting fatally if malloc() fails.
*
* @sa malloc(3)
*/
-EJDB_EXPORT void *bson_malloc(int size);
+void *bson_malloc(int size);
/**
* Changes the size of allocated memory and checks return value,
*
*/
EJDB_EXPORT double bson_int64_to_double(int64_t i64);
-
EJDB_EXPORT void bson_swap_endian32(void *outp, const void *inp);
EJDB_EXPORT void bson_swap_endian64(void *outp, const void *inp);