@@ -57,14 +57,16 @@ class apm {
57
57
// / method chaining.
58
58
// /
59
59
MONGOCXX_ABI_EXPORT_CDECL (apm&)
60
- on_command_started (std::function<void (const events::command_started_event&)> command_started);
60
+ on_command_started (std::function<void MONGOCXX_ABI_CDECL (const events::command_started_event&)>
61
+ command_started);
61
62
62
63
// /
63
64
// / Retrieves the command started monitoring callback.
64
65
// /
65
66
// / @return The command started monitoring callback.
66
67
// /
67
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::command_started_event&)>&)
68
+ MONGOCXX_ABI_EXPORT_CDECL (
69
+ const std::function<void MONGOCXX_ABI_CDECL (const events::command_started_event&)>&)
68
70
command_started() const ;
69
71
70
72
// /
@@ -82,14 +84,16 @@ class apm {
82
84
// / method chaining.
83
85
// /
84
86
MONGOCXX_ABI_EXPORT_CDECL (apm&)
85
- on_command_failed (std::function<void (const events::command_failed_event&)> command_failed);
87
+ on_command_failed(
88
+ std::function<void MONGOCXX_ABI_CDECL (const events::command_failed_event&)> command_failed);
86
89
87
90
// /
88
91
// / Retrieves the command failed monitoring callback.
89
92
// /
90
93
// / @return The command failed monitoring callback.
91
94
// /
92
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::command_failed_event&)>&)
95
+ MONGOCXX_ABI_EXPORT_CDECL (
96
+ const std::function<void MONGOCXX_ABI_CDECL (const events::command_failed_event&)>&)
93
97
command_failed() const ;
94
98
95
99
// /
@@ -108,14 +112,16 @@ class apm {
108
112
// /
109
113
MONGOCXX_ABI_EXPORT_CDECL (apm&)
110
114
on_command_succeeded(
111
- std::function<void (const events::command_succeeded_event&)> command_succeeded);
115
+ std::function<void MONGOCXX_ABI_CDECL (const events::command_succeeded_event&)>
116
+ command_succeeded);
112
117
113
118
// /
114
119
// / Retrieves the command succeeded monitoring callback.
115
120
// /
116
121
// / @return The command succeeded monitoring callback.
117
122
// /
118
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::command_succeeded_event&)>&)
123
+ MONGOCXX_ABI_EXPORT_CDECL (
124
+ const std::function<void MONGOCXX_ABI_CDECL (const events::command_succeeded_event&)>&)
119
125
command_succeeded() const ;
120
126
121
127
// /
@@ -133,14 +139,16 @@ class apm {
133
139
// / method chaining.
134
140
// /
135
141
MONGOCXX_ABI_EXPORT_CDECL (apm&)
136
- on_server_opening (std::function<void (const events::server_opening_event&)> server_opening);
142
+ on_server_opening(
143
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_opening_event&)> server_opening);
137
144
138
145
// /
139
146
// / Retrieves the server opening monitoring callback.
140
147
// /
141
148
// / @return The server opening monitoring callback.
142
149
// /
143
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::server_opening_event&)>&)
150
+ MONGOCXX_ABI_EXPORT_CDECL (
151
+ const std::function<void MONGOCXX_ABI_CDECL (const events::server_opening_event&)>&)
144
152
server_opening() const ;
145
153
146
154
// /
@@ -158,14 +166,16 @@ class apm {
158
166
// / method chaining.
159
167
// /
160
168
MONGOCXX_ABI_EXPORT_CDECL (apm&)
161
- on_server_closed (std::function<void (const events::server_closed_event&)> server_closed);
169
+ on_server_closed(
170
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_closed_event&)> server_closed);
162
171
163
172
// /
164
173
// / Retrieves the server closed monitoring callback.
165
174
// /
166
175
// / @return The server closed monitoring callback.
167
176
// /
168
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::server_closed_event&)>&)
177
+ MONGOCXX_ABI_EXPORT_CDECL (
178
+ const std::function<void MONGOCXX_ABI_CDECL (const events::server_closed_event&)>&)
169
179
server_closed() const ;
170
180
171
181
// /
@@ -184,14 +194,16 @@ class apm {
184
194
// / method chaining.
185
195
// /
186
196
MONGOCXX_ABI_EXPORT_CDECL (apm&)
187
- on_server_changed (std::function<void (const events::server_changed_event&)> server_changed);
197
+ on_server_changed(
198
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_changed_event&)> server_changed);
188
199
189
200
// /
190
201
// / Retrieves the server description changed monitoring callback.
191
202
// /
192
203
// / @return The server description changed monitoring callback.
193
204
// /
194
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::server_changed_event&)>&)
205
+ MONGOCXX_ABI_EXPORT_CDECL (
206
+ const std::function<void MONGOCXX_ABI_CDECL (const events::server_changed_event&)>&)
195
207
server_changed() const ;
196
208
197
209
// /
@@ -210,14 +222,16 @@ class apm {
210
222
// /
211
223
MONGOCXX_ABI_EXPORT_CDECL (apm&)
212
224
on_topology_opening(
213
- std::function<void (const events::topology_opening_event&)> topology_opening);
225
+ std::function<void MONGOCXX_ABI_CDECL (const events::topology_opening_event&)>
226
+ topology_opening);
214
227
215
228
// /
216
229
// / Retrieves the topology_opening monitoring callback.
217
230
// /
218
231
// / @return The topology_opening monitoring callback.
219
232
// /
220
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::topology_opening_event&)>&)
233
+ MONGOCXX_ABI_EXPORT_CDECL (
234
+ const std::function<void MONGOCXX_ABI_CDECL (const events::topology_opening_event&)>&)
221
235
topology_opening() const ;
222
236
223
237
// /
@@ -235,14 +249,16 @@ class apm {
235
249
// / method chaining.
236
250
// /
237
251
MONGOCXX_ABI_EXPORT_CDECL (apm&)
238
- on_topology_closed (std::function<void (const events::topology_closed_event&)> topology_closed);
252
+ on_topology_closed(std::function<void MONGOCXX_ABI_CDECL (const events::topology_closed_event&)>
253
+ topology_closed);
239
254
240
255
// /
241
256
// / Retrieves the topology closed monitoring callback.
242
257
// /
243
258
// / @return The topology closed monitoring callback.
244
259
// /
245
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::topology_closed_event&)>&)
260
+ MONGOCXX_ABI_EXPORT_CDECL (
261
+ const std::function<void MONGOCXX_ABI_CDECL (const events::topology_closed_event&)>&)
246
262
topology_closed() const ;
247
263
248
264
// /
@@ -262,14 +278,16 @@ class apm {
262
278
// /
263
279
MONGOCXX_ABI_EXPORT_CDECL (apm&)
264
280
on_topology_changed(
265
- std::function<void (const events::topology_changed_event&)> topology_changed);
281
+ std::function<void MONGOCXX_ABI_CDECL (const events::topology_changed_event&)>
282
+ topology_changed);
266
283
267
284
// /
268
285
// / Retrieves the topology description changed monitoring callback.
269
286
// /
270
287
// / @return The topology description changed monitoring callback.
271
288
// /
272
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::topology_changed_event&)>&)
289
+ MONGOCXX_ABI_EXPORT_CDECL (
290
+ const std::function<void MONGOCXX_ABI_CDECL (const events::topology_changed_event&)>&)
273
291
topology_changed() const ;
274
292
275
293
// /
@@ -288,14 +306,16 @@ class apm {
288
306
// /
289
307
MONGOCXX_ABI_EXPORT_CDECL (apm&)
290
308
on_heartbeat_started(
291
- std::function<void (const events::heartbeat_started_event&)> heartbeat_started);
309
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_started_event&)>
310
+ heartbeat_started);
292
311
293
312
// /
294
313
// / Retrieves the heartbeat started monitoring callback.
295
314
// /
296
315
// / @return The heartbeat started monitoring callback.
297
316
// /
298
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::heartbeat_started_event&)>&)
317
+ MONGOCXX_ABI_EXPORT_CDECL (
318
+ const std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_started_event&)>&)
299
319
heartbeat_started() const ;
300
320
301
321
// /
@@ -314,14 +334,16 @@ class apm {
314
334
// /
315
335
MONGOCXX_ABI_EXPORT_CDECL (apm&)
316
336
on_heartbeat_failed(
317
- std::function<void (const events::heartbeat_failed_event&)> heartbeat_failed);
337
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_failed_event&)>
338
+ heartbeat_failed);
318
339
319
340
// /
320
341
// / Retrieves the heartbeat failed monitoring callback.
321
342
// /
322
343
// / @return The heartbeat failed monitoring callback.
323
344
// /
324
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::heartbeat_failed_event&)>&)
345
+ MONGOCXX_ABI_EXPORT_CDECL (
346
+ const std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_failed_event&)>&)
325
347
heartbeat_failed() const ;
326
348
327
349
// /
@@ -341,29 +363,34 @@ class apm {
341
363
// /
342
364
MONGOCXX_ABI_EXPORT_CDECL (apm&)
343
365
on_heartbeat_succeeded(
344
- std::function<void (const events::heartbeat_succeeded_event&)> heartbeat_succeeded);
366
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_succeeded_event&)>
367
+ heartbeat_succeeded);
345
368
346
369
// /
347
370
// / Retrieves the heartbeat succeeded monitoring callback.
348
371
// /
349
372
// / @return The heartbeat succeeded monitoring callback.
350
373
// /
351
- MONGOCXX_ABI_EXPORT_CDECL (const std::function<void (const events::heartbeat_succeeded_event&)>&)
374
+ MONGOCXX_ABI_EXPORT_CDECL (
375
+ const std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_succeeded_event&)>&)
352
376
heartbeat_succeeded() const ;
353
377
354
378
private:
355
- std::function<void (const events::command_started_event&)> _command_started;
356
- std::function<void (const events::command_failed_event&)> _command_failed;
357
- std::function<void (const events::command_succeeded_event&)> _command_succeeded;
358
- std::function<void (const events::server_closed_event&)> _server_closed;
359
- std::function<void (const events::server_changed_event&)> _server_changed;
360
- std::function<void (const events::server_opening_event&)> _server_opening;
361
- std::function<void (const events::topology_closed_event&)> _topology_closed;
362
- std::function<void (const events::topology_changed_event&)> _topology_changed;
363
- std::function<void (const events::topology_opening_event&)> _topology_opening;
364
- std::function<void (const events::heartbeat_started_event&)> _heartbeat_started;
365
- std::function<void (const events::heartbeat_failed_event&)> _heartbeat_failed;
366
- std::function<void (const events::heartbeat_succeeded_event&)> _heartbeat_succeeded;
379
+ std::function<void MONGOCXX_ABI_CDECL (const events::command_started_event&)> _command_started;
380
+ std::function<void MONGOCXX_ABI_CDECL (const events::command_failed_event&)> _command_failed;
381
+ std::function<void MONGOCXX_ABI_CDECL (const events::command_succeeded_event&)>
382
+ _command_succeeded;
383
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_closed_event&)> _server_closed;
384
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_changed_event&)> _server_changed;
385
+ std::function<void MONGOCXX_ABI_CDECL (const events::server_opening_event&)> _server_opening;
386
+ std::function<void MONGOCXX_ABI_CDECL (const events::topology_closed_event&)> _topology_closed;
387
+ std::function<void MONGOCXX_ABI_CDECL (const events::topology_changed_event&)> _topology_changed;
388
+ std::function<void MONGOCXX_ABI_CDECL (const events::topology_opening_event&)> _topology_opening;
389
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_started_event&)>
390
+ _heartbeat_started;
391
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_failed_event&)> _heartbeat_failed;
392
+ std::function<void MONGOCXX_ABI_CDECL (const events::heartbeat_succeeded_event&)>
393
+ _heartbeat_succeeded;
367
394
};
368
395
369
396
} // namespace options
0 commit comments