@@ -31,112 +31,112 @@ interface MongoDBCAPI extends Library {
31
31
*
32
32
* @return the status pointer from which to get an associated status code / error information.
33
33
*/
34
- Pointer libmongodbcapi_status_create ();
34
+ Pointer mongo_embedded_v1_status_create ();
35
35
36
36
/**
37
37
* Destroys a valid status pointer object.
38
38
*
39
- * @param status the `libmongodbcapi_status ` pointer to release.
39
+ * @param status the `mongo_embedded_v1_status ` pointer to release.
40
40
*/
41
41
42
- void libmongodbcapi_status_destroy (Pointer status );
42
+ void mongo_embedded_v1_status_destroy (Pointer status );
43
43
44
44
/**
45
45
* Gets an error code from a status pointer.
46
46
*
47
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
47
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
48
48
* @return The error code associated with the `status` parameter or 0 if successful.
49
49
*
50
50
*/
51
- int libmongodbcapi_status_get_error (Pointer status );
51
+ int mongo_embedded_v1_status_get_error (Pointer status );
52
52
53
53
/**
54
54
* Gets a descriptive error message from a status pointer.
55
55
*
56
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated error message.
56
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated error message.
57
57
*
58
58
* @return A null-terminated string containing an error message.
59
59
*/
60
- String libmongodbcapi_status_get_explanation (Pointer status );
60
+ String mongo_embedded_v1_status_get_explanation (Pointer status );
61
61
62
62
/**
63
63
* Gets a status code from a status pointer.
64
64
*
65
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
65
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
66
66
* @return A numeric status code associated with the `status` parameter which indicates a
67
67
* sub-category of failure.
68
68
*/
69
- int libmongodbcapi_status_get_code (Pointer status );
69
+ int mongo_embedded_v1_status_get_code (Pointer status );
70
70
71
71
/**
72
72
* Initializes the mongodbcapi library, required before any other call.
73
73
*
74
- * <p>Cannot be called again without {@link #libmongodbcapi_lib_fini (Pointer, Pointer)} being called first.</p>
74
+ * <p>Cannot be called again without {@link #mongo_embedded_v1_lib_fini (Pointer, Pointer)} being called first.</p>
75
75
*
76
76
* @param initParams the embedded mongod initialization parameters.
77
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
77
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
78
78
* @return the lib pointer or null if there was a failure. Modifies the status on failure.
79
79
*/
80
- Pointer libmongodbcapi_lib_init (Structure initParams , Pointer status );
80
+ Pointer mongo_embedded_v1_lib_init (Structure initParams , Pointer status );
81
81
82
82
/**
83
83
* Tears down the state of the library, all databases must be closed before calling this.
84
84
*
85
- * @param lib the `libmongodbcapi_lib ` pointer
86
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
85
+ * @param lib the `mongo_embedded_v1_lib ` pointer
86
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
87
87
* @return the error code or 0 if successful. Modifies the status on failure.
88
88
*/
89
- int libmongodbcapi_lib_fini (Pointer lib , Pointer status );
89
+ int mongo_embedded_v1_lib_fini (Pointer lib , Pointer status );
90
90
91
91
/**
92
92
* Creates an embedded MongoDB instance and returns a handle with the service context.
93
93
*
94
- * @param lib the `libmongodbcapi_lib ` pointer
94
+ * @param lib the `mongo_embedded_v1_lib ` pointer
95
95
* @param yamlConfig null-terminated YAML formatted MongoDB configuration string
96
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
96
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
97
97
* @return the instance pointer or null if there was a failure. Modifies the status on failure.
98
98
*/
99
- Pointer libmongodbcapi_instance_create (Pointer lib , String yamlConfig , Pointer status );
99
+ Pointer mongo_embedded_v1_instance_create (Pointer lib , String yamlConfig , Pointer status );
100
100
101
101
/**
102
102
* Shuts down an embedded MongoDB instance.
103
103
*
104
- * @param instance the `libmongodbcapi_instance ` pointer to be destroyed.
105
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
104
+ * @param instance the `mongo_embedded_v1_instance ` pointer to be destroyed.
105
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
106
106
* @return the error code or 0 if successful. Modifies the status on failure.
107
107
*/
108
- int libmongodbcapi_instance_destroy (Pointer instance , Pointer status );
108
+ int mongo_embedded_v1_instance_destroy (Pointer instance , Pointer status );
109
109
110
110
/**
111
111
* Create a new embedded client instance.
112
112
*
113
- * @param instance the `libmongodbcapi_instance ` pointer.
114
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
113
+ * @param instance the `mongo_embedded_v1_instance ` pointer.
114
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
115
115
* @return the client pointer or null if there was a failure. Modifies the status on failure.
116
116
*/
117
- Pointer libmongodbcapi_client_create (Pointer instance , Pointer status );
117
+ Pointer mongo_embedded_v1_client_create (Pointer instance , Pointer status );
118
118
119
119
/**
120
120
* Destroys an embedded client instance.
121
121
*
122
- * @param client the `libmongodbcapi_client ` pointer.
123
- * @param status the `libmongodbcapi_status ` pointer from which to get an associated status code.
122
+ * @param client the `mongo_embedded_v1_client ` pointer.
123
+ * @param status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
124
124
* @return the error code or 0 if successful. Modifies the status on failure.
125
125
*/
126
- int libmongodbcapi_client_destroy (Pointer client , Pointer status );
126
+ int mongo_embedded_v1_client_destroy (Pointer client , Pointer status );
127
127
128
128
/**
129
129
* Make an RPC call. Not clear yet on whether this is the correct signature.
130
130
*
131
- * @param client the `libmongodbcapi_client ` pointer
131
+ * @param client the `mongo_embedded_v1_client ` pointer
132
132
* @param input the RPC input
133
133
* @param inputSize the RPC input size
134
134
* @param output the RPC output
135
135
* @param outputSize the RPC output size
136
- * @param status status the `libmongodbcapi_status ` pointer from which to get an associated status code.
136
+ * @param status status the `mongo_embedded_v1_status ` pointer from which to get an associated status code.
137
137
* @return the error code or 0 if successful. Modifies the status on failure.
138
138
*/
139
- int libmongodbcapi_client_invoke (Pointer client , byte [] input , int inputSize , PointerByReference output , IntByReference outputSize ,
139
+ int mongo_embedded_v1_client_invoke (Pointer client , byte [] input , int inputSize , PointerByReference output , IntByReference outputSize ,
140
140
Pointer status );
141
141
142
142
0 commit comments