BLPAPI C++  3.20.6
blpapi_dispatchtbl.h
Go to the documentation of this file.
1 /* Copyright 2012. Bloomberg Finance L.P.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to
5  * deal in the Software without restriction, including without limitation the
6  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  * sell copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions: The above
9  * copyright notice and this permission notice shall be included in all copies
10  * or substantial portions of the Software.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18  * IN THE SOFTWARE.
19  */
20 
28 #ifndef INCLUDED_BLPAPI_DISPATCHTBL
29 #define INCLUDED_BLPAPI_DISPATCHTBL
30 
51 // We only support dispatchtbl on windows currently
52 #if defined(_WIN32) || defined(__WIN32__)
53 
54 #include <blpapi_correlationid.h>
55 #include <blpapi_defs.h>
56 #include <blpapi_streamproxy.h>
57 #include <blpapi_types.h>
58 #include <blpapi_versionmacros.h>
59 
60 #ifdef __cplusplus
61 
62 #ifndef BLPAPI_MIN_VERSION
63 #define BLPAPI_MIN_VERSION BLPAPI_SDK_VERSION
64 #endif
65 
66 #ifndef BLPAPI_TARGET_VERSION
67 #define BLPAPI_TARGET_VERSION BLPAPI_SDK_VERSION
68 #endif
69 
70 #if BLPAPI_MIN_VERSION > BLPAPI_TARGET_VERSION
71 #error "Min required version cannot be greater than target version"
72 #endif
73 
74 extern "C" {
75 
76 // Forward declarations
77 struct blpapi_Topic;
78 typedef struct blpapi_Topic blpapi_Topic_t;
79 
80 struct blpapi_Message;
81 typedef struct blpapi_Message blpapi_Message_t;
82 
83 struct blpapi_Request;
84 typedef struct blpapi_Request blpapi_Request_t;
85 
88 
89 struct blpapi_TimePoint;
91 
92 struct blpapi_SubscriptionList;
93 typedef struct blpapi_SubscriptionList blpapi_SubscriptionList_t;
94 
95 struct blpapi_ServiceRegistrationOptions;
96 typedef struct blpapi_ServiceRegistrationOptions
98 
99 struct blpapi_RequestTemplate;
100 typedef struct blpapi_RequestTemplate blpapi_RequestTemplate_t;
101 
103  const blpapi_CorrelationId_t *correlationId,
104  const char *subscriptionString,
105  int errorCode,
106  const char *errorDescription,
107  void *userData);
108 
109 // End Forward declarations
110 
111 // Function dispatch table declaration
112 typedef struct blpapi_FunctionEntries {
114  blpapi_EventFormatter_t *formatter,
115  char const *typeString,
116  blpapi_Name_t *typeName,
117  const blpapi_Topic_t *topic,
118  unsigned int sequenceNumber,
119  unsigned int);
121  blpapi_EventFormatter_t *formatter,
122  const blpapi_Topic_t *topic,
123  const blpapi_CorrelationId_t *cid,
124  unsigned int sequenceNumber,
125  unsigned int);
126  int (*blpapi_Message_addRef)(const blpapi_Message_t *message);
127  int (*blpapi_Message_release)(const blpapi_Message_t *message);
129  blpapi_SessionOptions_t *parameters, size_t maxEventQueueSize);
131  blpapi_SessionOptions_t *parameters, float hiWaterMark);
133  blpapi_SessionOptions_t *parameters, float loWaterMark);
135  blpapi_Request_t *request, blpapi_CorrelationId_t *correlationId);
136  int (*blpapi_Message_fragmentType)(const blpapi_Message_t *message);
138  blpapi_SessionOptions_t *parameters);
140  blpapi_SessionOptions_t *parameters);
142  blpapi_SessionOptions_t *parameters);
144  blpapi_SessionOptions_t *parameters, int inactivityTime);
146  blpapi_SessionOptions_t *parameters, int responseTimeout);
148  blpapi_SessionOptions_t *parameters);
150  blpapi_SessionOptions_t *parameters);
157  void *,
158  int,
159  int);
161  const blpapi_Element_t *,
163  size_t);
166  size_t);
168  const char *,
169  const blpapi_Name_t *,
173  int,
174  const char *,
175  int);
177  blpapi_EventFormatter_t *, const char *, const blpapi_Name_t *);
178  int (*blpapi_DiagnosticsUtil_memoryInfo)(char *, size_t);
180  blpapi_SessionOptions_t *, int);
183  const char *,
184  const blpapi_CorrelationId_t *);
186  blpapi_SubscriptionList_t *, int *, size_t);
188  blpapi_ProviderSession_t *session, const char *serviceName);
190  blpapi_ServiceRegistrationOptions_t *session, int parts);
194  blpapi_ProviderSession_t *session,
195  const blpapi_Topic_t **topics,
196  size_t numTopics);
198  blpapi_ProviderSession_t *session,
199  const char *serviceName,
200  int begin,
201  int end,
202  int priority);
204  blpapi_ProviderSession_t *session,
205  const char *serviceName,
206  int begin,
207  int end);
210  int start,
211  int end,
212  int priority);
216  const char *(*blpapi_getVersionIdentifier)();
218  const blpapi_Message_t *message, blpapi_TimePoint_t *timeReceived);
220  blpapi_SessionOptions_t *parameters);
222  blpapi_SessionOptions_t *parameters, int shouldRecord);
224  const blpapi_TimePoint_t *start, const blpapi_TimePoint_t *end);
228  const blpapi_TimePoint_t *timePoint,
229  short offset);
231  const blpapi_RequestTemplate_t *requestTemplate);
233  const blpapi_RequestTemplate_t *requestTemplate);
235  const blpapi_RequestTemplate_t *requestTemplate,
236  blpapi_CorrelationId_t *correlationId);
238  blpapi_RequestTemplate_t **requestTemplate,
239  blpapi_Session_t *session,
240  const char *subscriptionString,
241  const blpapi_Identity_t *identity,
242  blpapi_CorrelationId_t *correlationId);
243  int (*blpapi_Message_print)(const blpapi_Message_t *message,
244  blpapi_StreamWriter_t streamWriter,
245  void *stream,
246  int indentLevel,
247  int spacesPerLevel);
248  int (*blpapi_Message_recapType)(const blpapi_Message_t *message);
250  blpapi_SessionOptions_t *parameters, int timeoutMsecs);
252  blpapi_SessionOptions_t *parameters, int timeoutMsecs);
254  blpapi_SessionOptions_t *parameters);
256  blpapi_SessionOptions_t *parameters);
257 
258  // 3.10.5
260  blpapi_ProviderSession_t *session,
261  const blpapi_Topic_t **topics,
262  size_t numTopics,
263  const char *message);
264 
265  // 3.10.8
267  blpapi_EventFormatter_t *formatter,
268  const char *typeString,
269  blpapi_Name_t *typeName,
270  const blpapi_Topic_t *topic,
271  const blpapi_CorrelationId_t *cid,
272  int fragmentType);
274  blpapi_EventFormatter_t *formatter,
275  const char *typeString,
276  blpapi_Name_t *typeName,
277  const blpapi_Topic_t *topic,
278  int fragmentType,
279  unsigned int sequenceNumber);
280 
281  // 3.11.0
283  blpapi_SessionOptions_t *parameters,
284  const blpapi_TlsOptions_t *tlsOptions);
285  blpapi_TlsOptions_t *(*blpapi_TlsOptions_createFromFiles)(
286  const char *clientCredentialsFileName,
287  const char *clientCredentialsPassword,
288  const char *trustedCertificatesFileName);
289  blpapi_TlsOptions_t *(*blpapi_TlsOptions_createFromBlobs)(
290  const char *clientCredentialsRawData,
291  int clientCredentialsRawDataLength,
292  const char *clientCredentialsPassword,
293  const char *trustedCertificatesRawData,
294  int trustedCertificatesRawDataLength);
296  blpapi_TlsOptions_t *paramaters, int tlsHandshakeTimeoutMs);
298  blpapi_TlsOptions_t *paramaters, int crlFetchTimeoutMs);
299 
300  blpapi_TlsOptions_t *(*blpapi_TlsOptions_create)(void);
301  blpapi_TlsOptions_t *(*blpapi_TlsOptions_duplicate)(
302  const blpapi_TlsOptions_t *parameters);
303  void (*blpapi_TlsOptions_copy)(
304  blpapi_TlsOptions_t *lhs, const blpapi_TlsOptions_t *rhs);
305  void (*blpapi_TlsOptions_destroy)(blpapi_TlsOptions_t *parameters);
306 
307  // 3.11.2
309  blpapi_AbstractSession_t *session,
310  blpapi_CorrelationId_t *correlationId,
311  const char *user,
312  const char *manualIp,
313  blpapi_EventQueue_t *eventQueue);
314 
315  // 3.11.4
317  blpapi_EventFormatter_t *formatter,
318  const blpapi_HighPrecisionDatetime_t *value);
320  blpapi_EventFormatter_t *formatter,
321  const char *typeString,
322  const blpapi_Name_t *typeName,
323  const blpapi_HighPrecisionDatetime_t *value);
324 
325  // 3.12.0
327  blpapi_StreamWriter_t streamWriter,
328  void *stream,
329  int indentLevel,
330  int spacesPerLevel);
332  blpapi_SessionOptions_t *parameters);
334  blpapi_SessionOptions_t *parameters, int timeoutMsecs);
336  blpapi_ProviderSession_t *session,
337  int *allFlushed,
338  int timeoutMsecs);
339 
340  // 3.13.0
342  blpapi_SessionOptions_t *sessionOptions,
343  const blpapi_TlsOptions_t *tlsOptions,
344  int remote);
345 
346  // 3.14.0
348  blpapi_SessionOptions_t *parameters, int disableBandwidthSaveMode);
349 
351  blpapi_SessionOptions_t *parameters);
352 
353  // 3.14.1
354  int (*blpapi_TestUtil_deserializeService)(const char *schema,
355  size_t schemaLength,
356  blpapi_Service_t **service);
357 
359  void *userStream,
360  const blpapi_Service_t *service);
361 
363  const blpapi_Service_t *service,
364  int isActive);
365 
368  blpapi_Name_t *messageName);
369 
370  int (*blpapi_TestUtil_createEvent)(blpapi_Event_t **event, int eventType);
371 
373  blpapi_Event_t *event,
374  const blpapi_SchemaElementDefinition_t *messageType,
375  const blpapi_MessageProperties_t *properties);
376 
378  blpapi_MessageProperties_t **messageProperties);
379 
381  blpapi_MessageProperties_t *messageProperties);
382 
384  const blpapi_MessageProperties_t *src);
385 
387  const blpapi_MessageProperties_t *rhs);
388 
390  blpapi_MessageProperties_t *messageProperties,
391  const blpapi_CorrelationId_t *correlationIds,
392  size_t numCorrelationIds);
393 
395  blpapi_MessageProperties_t *messageProperties,
396  int recap,
397  int fragment);
398 
400  blpapi_MessageProperties_t *messageProperties,
401  const blpapi_HighPrecisionDatetime_t *timestamp);
402 
404  blpapi_MessageProperties_t *messageProperties,
405  const blpapi_Service_t *service);
406 
408  blpapi_MessageFormatter_t *formatter,
409  const blpapi_Name_t *typeName,
410  blpapi_Bool_t value);
411 
413  blpapi_MessageFormatter_t *formatter,
414  const blpapi_Name_t *typeName,
415  char value);
416 
418  blpapi_MessageFormatter_t *formatter,
419  const blpapi_Name_t *typeName,
420  blpapi_Int32_t value);
421 
423  blpapi_MessageFormatter_t *formatter,
424  const blpapi_Name_t *typeName,
425  blpapi_Int64_t value);
426 
428  blpapi_MessageFormatter_t *formatter,
429  const blpapi_Name_t *typeName,
430  blpapi_Float32_t value);
431 
433  blpapi_MessageFormatter_t *formatter,
434  const blpapi_Name_t *typeName,
435  blpapi_Float64_t value);
436 
438  blpapi_MessageFormatter_t *formatter,
439  const blpapi_Name_t *typeName,
440  const blpapi_Datetime_t *value);
441 
443  blpapi_MessageFormatter_t *formatter,
444  const blpapi_Name_t *typeName,
445  const blpapi_HighPrecisionDatetime_t *value);
446 
448  blpapi_MessageFormatter_t *formatter,
449  const blpapi_Name_t *typeName,
450  const char *value);
451 
453  blpapi_MessageFormatter_t *formatter,
454  const blpapi_Name_t *typeName,
455  const blpapi_Name_t *value);
456 
458  blpapi_MessageFormatter_t *formatter,
459  const blpapi_Name_t *typeName);
460 
462  blpapi_MessageFormatter_t *formatter,
463  const blpapi_Name_t *typeName);
464 
466  blpapi_MessageFormatter_t *formatter);
467 
469  blpapi_MessageFormatter_t *formatter, blpapi_Bool_t value);
470 
472  blpapi_MessageFormatter_t *formatter, char value);
473 
475  blpapi_MessageFormatter_t *formatter, blpapi_Int32_t value);
476 
478  blpapi_MessageFormatter_t *formatter, blpapi_Int64_t value);
479 
481  blpapi_MessageFormatter_t *formatter, blpapi_Float32_t value);
482 
484  blpapi_MessageFormatter_t *formatter, blpapi_Float64_t value);
485 
487  blpapi_MessageFormatter_t *formatter,
488  const blpapi_Datetime_t *value);
489 
491  blpapi_MessageFormatter_t *formatter,
492  const blpapi_HighPrecisionDatetime_t *value);
493 
495  blpapi_MessageFormatter_t *formatter, const char *value);
496 
498  blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *value);
499 
501  blpapi_MessageFormatter_t *formatter);
502 
504  blpapi_MessageFormatter_t *formatter, const char *message);
505 
507  blpapi_MessageFormatter_t *formatter, const char *message);
508 
510  const blpapi_MessageFormatter_t *original);
511 
513  const blpapi_MessageFormatter_t *rhs);
514 
516  blpapi_MessageFormatter_t *formatter);
517 
519  blpapi_Operation_t *operation,
520  blpapi_SchemaElementDefinition_t **responseDefinition,
521  const blpapi_Name_t *name);
522 
523  // 3.15.0
525  blpapi_SessionOptions_t *parameters,
526  const blpapi_AuthOptions_t *authOptions,
527  blpapi_CorrelationId_t *cid);
528 
530  blpapi_AbstractSession_t *session,
531  const blpapi_AuthOptions_t *authOptions,
532  blpapi_CorrelationId_t *cid);
533 
535  blpapi_AbstractSession_t *session,
536  const blpapi_CorrelationId_t *cid,
537  blpapi_Identity_t **identity);
538 
540 
542  blpapi_AuthOptions_t **options, const blpapi_AuthUser_t *user);
543 
545  const blpapi_AuthApplication_t *app);
546 
548  blpapi_AuthOptions_t **options,
549  const blpapi_AuthUser_t *user,
550  const blpapi_AuthApplication_t *app);
551 
553  blpapi_AuthOptions_t **options, const blpapi_AuthToken_t *token);
554 
556  blpapi_AuthOptions_t **options, const blpapi_AuthOptions_t *dup);
557 
559  blpapi_AuthOptions_t *lhs, const blpapi_AuthOptions_t *rhs);
560 
562 
564 
566  blpapi_AuthUser_t **user, const char *propertyName);
567 
569  const char *userId,
570  const char *ipAddress);
571 
573  blpapi_AuthUser_t **user, const blpapi_AuthUser_t *dup);
574 
575  int (*blpapi_AuthUser_copy)(
576  blpapi_AuthUser_t *lhs, const blpapi_AuthUser_t *rhs);
577 
579 
581  blpapi_AuthApplication_t **app, const char *appName);
582 
584  const blpapi_AuthApplication_t *dup);
585 
587  const blpapi_AuthApplication_t *rhs);
588 
590 
592  blpapi_AuthToken_t **token, const char *tokenStr);
593 
595  blpapi_AuthToken_t **token, const blpapi_AuthToken_t *dup);
596 
597  int (*blpapi_AuthToken_copy)(
598  blpapi_AuthToken_t *lhs, const blpapi_AuthToken_t *rhs);
599 
601 
602  // 3.16.0
604  const blpapi_Message_t *message, const char **requestId);
606  const blpapi_Request_t *request, const char **requestId);
608  blpapi_MessageProperties_t *messageProperties,
609  const char *requestId);
610 
611  // 3.18.0
613  const blpapi_SubscriptionList_t *subscriptionList,
614  const blpapi_Identity_t *handle,
615  const char *requestLabel,
616  int requestLabelLen,
618  void *userData);
620  const blpapi_SubscriptionList_t *resubscriptionList,
621  const char *requestLabel,
622  int requestLabelLen,
624  void *userData);
626  const blpapi_SubscriptionList_t *resubscriptionList,
627  int resubscriptionId,
628  const char *requestLabel,
629  int requestLabelLen,
631  void *userData);
632 
633  // 3.18.5
635  const char **applicationIdentityKey,
636  size_t *size,
637  blpapi_SessionOptions_t *parameters);
639  blpapi_SessionOptions_t *parameters,
640  const char *applicationIdentityKey,
641  unsigned size);
642 
643  // 3.19
644  int (*blpapi_Element_getValueAsBytes)(const blpapi_Element_t *element,
645  const char **buffer,
646  size_t *length,
647  size_t index);
648 
650  const char *value,
651  size_t length,
652  size_t index);
653 
655  const char *nameString,
656  const blpapi_Name_t *name,
657  const char *value,
658  size_t length);
659 
661  blpapi_EventFormatter_t *formatter,
662  const char *typeString,
663  const blpapi_Name_t *typeName,
664  const char *value,
665  size_t length);
666 
668  blpapi_MessageFormatter_t *formatter,
669  const blpapi_Name_t *typeName,
670  const char *value,
671  size_t length);
672 
673  // 3.20.0
674  blpapi_Socks5Config_t *(*blpapi_Socks5Config_create)(
675  const char *hostname, size_t hostname_size, unsigned short port);
676 
677  int (*blpapi_Socks5Config_copy)(blpapi_Socks5Config_t **socks5Config,
678  const blpapi_Socks5Config_t *srcSocks5Config);
679 
680  void (*blpapi_Socks5Config_destroy)(blpapi_Socks5Config_t *socks5Config);
681 
683  blpapi_StreamWriter_t streamWriter,
684  void *userStream,
685  int indentLevel,
686  int spacesPerLevel);
687 
689  blpapi_SessionOptions_t *parameters,
690  const char **serverHost,
691  unsigned short *serverPort,
692  const char **socks5Host,
693  unsigned short *sock5Port,
694  size_t index);
695 
697  blpapi_SessionOptions_t *parameters,
698  const char *serverHost,
699  unsigned short serverPort,
700  const blpapi_Socks5Config_t *socks5Config,
701  size_t index);
702 
703 } blpapi_FunctionEntries_t;
704 
705 BLPAPI_EXPORT extern size_t g_blpapiFunctionTableSize;
706 BLPAPI_EXPORT extern blpapi_FunctionEntries_t g_blpapiFunctionEntries;
707 
708 } // extern "C"
709 
710 #endif // __cplusplus
711 
712 #endif // if defined(_WIN32) || defined(__WIN32__)
713 
714 #endif // INCLUDED_BLPAPI_DISPATCHTBL
struct blpapi_SubscriptionList blpapi_SubscriptionList_t
Definition: blpapi_subscriptionlist.h:224
int blpapi_MessageProperties_setRecapType(blpapi_MessageProperties_t *messageProperties, int recap, int fragment)
BLPAPI_EXPORT int blpapi_AbstractSession_generateAuthorizedIdentityAsync(blpapi_AbstractSession_t *session, const blpapi_AuthOptions_t *authOptions, blpapi_CorrelationId_t *cid)
int blpapi_ServiceRegistrationOptions_addActiveSubServiceCodeRange(blpapi_ServiceRegistrationOptions_t *parameters, int start, int end, int priority)
int blpapi_TestUtil_deserializeService(const char *schema, size_t schemaLength, blpapi_Service_t **service)
long long blpapi_TimePointUtil_nanosecondsBetween(const blpapi_TimePoint_t *start, const blpapi_TimePoint_t *end)
int blpapi_Message_recapType(const blpapi_Message_t *message)
int blpapi_MessageFormatter_setValueString(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, const char *value)
int blpapi_SessionOptions_print(blpapi_SessionOptions_t *parameters, blpapi_StreamWriter_t streamWriter, void *stream, int indentLevel, int spacesPerLevel)
int blpapi_Element_setElementHighPrecisionDatetime(blpapi_Element_t *element, const char *nameString, const blpapi_Name_t *name, const blpapi_HighPrecisionDatetime_t *value)
Definition: blpapi_timepoint.h:104
int blpapi_ProviderSession_flushPublishedEvents(blpapi_ProviderSession_t *session, int *allFlushed, int timeoutMsecs)
int blpapi_MessageFormatter_FormatMessageXml(blpapi_MessageFormatter_t *formatter, const char *message)
int blpapi_Session_resubscribeWithIdEx(blpapi_Session_t *session, const blpapi_SubscriptionList_t *resubscriptionList, int resubscriptionId, const char *requestLabel, int requestLabelLen, blpapi_SubscriptionPreprocessErrorHandler_t errorHandler, void *userData)
int blpapi_SessionOptions_flushPublishedEventsTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_MessageFormatter_appendValueBool(blpapi_MessageFormatter_t *formatter, blpapi_Bool_t value)
BLPAPI_EXPORT int blpapi_AuthUser_createWithManualOptions(blpapi_AuthUser_t **user, const char *userId, const char *ipAddress)
int blpapi_SessionOptions_setServiceDownloadTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
int blpapi_SessionOptions_setSlowConsumerWarningHiWaterMark(blpapi_SessionOptions_t *parameters, float hiWaterMark)
struct blpapi_AuthUser blpapi_AuthUser_t
Definition: blpapi_types.h:206
int blpapi_Socks5Config_print(blpapi_Socks5Config_t *socks5Config, blpapi_StreamWriter_t streamWriter, void *userStream, int indentLevel, int spacesPerLevel)
int blpapi_MessageFormatter_appendValueInt32(blpapi_MessageFormatter_t *formatter, blpapi_Int32_t value)
int blpapi_Element_setValueBytes(blpapi_Element_t *element, const char *value, size_t length, size_t index)
int blpapi_MessageFormatter_setValueNull(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName)
int blpapi_SessionOptions_setSessionIdentityOptions(blpapi_SessionOptions_t *parameters, const blpapi_AuthOptions_t *authOptions, blpapi_CorrelationId_t *cid)
int blpapi_MessageFormatter_appendValueDatetime(blpapi_MessageFormatter_t *formatter, const blpapi_Datetime_t *value)
struct blpapi_Element blpapi_Element_t
Definition: blpapi_types.h:136
int blpapi_Socks5Config_copy(blpapi_Socks5Config_t **socks5Config, blpapi_Socks5Config_t *srcSocks5Config)
struct blpapi_Request blpapi_Request_t
Definition: blpapi_request.h:67
blpapi_Logging_Severity_t
Definition: blpapi_types.h:116
int blpapi_ProviderSession_deleteTopics(blpapi_ProviderSession_t *session, const blpapi_Topic_t **topics, size_t numTopics)
struct blpapi_Operation blpapi_Operation_t
Definition: blpapi_types.h:157
Common definitions used by the library.
int blpapi_EventFormatter_setValueBytes(blpapi_EventFormatter_t *formatter, const char *typeString, const blpapi_Name_t *typeName, const char *value, size_t length)
struct blpapi_Event blpapi_Event_t
Definition: blpapi_types.h:139
BLPAPI_EXPORT int blpapi_AuthOptions_create_default(blpapi_AuthOptions_t **options)
int blpapi_EventFormatter_setValueNull(blpapi_EventFormatter_t *formatter, const char *typeString, const blpapi_Name_t *typeName)
int blpapi_ProviderSession_deactivateSubServiceCodeRange(blpapi_ProviderSession_t *session, const char *serviceName, int begin, int end)
int blpapi_ServiceRegistrationOptions_getPartsToRegister(blpapi_ServiceRegistrationOptions_t *parameters)
int blpapi_EventFormatter_appendValueHighPrecisionDatetime(blpapi_EventFormatter_t *formatter, const blpapi_HighPrecisionDatetime_t *value)
int blpapi_MessageFormatter_setValueFloat64(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, blpapi_Float64_t value)
struct blpapi_AuthToken blpapi_AuthToken_t
Definition: blpapi_types.h:212
int blpapi_MessageFormatter_pushElement(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName)
BLPAPI_EXPORT int blpapi_AuthUser_createWithActiveDirectoryProperty(blpapi_AuthUser_t **user, const char *propertyName)
int blpapi_Message_fragmentType(const blpapi_Message_t *message)
int blpapi_SessionOptions_setKeepAliveEnabled(blpapi_SessionOptions_t *parameters, int isEnabled)
struct blpapi_Socks5Config blpapi_Socks5Config_t
Definition: blpapi_types.h:175
int blpapi_MessageFormatter_setValueChar(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, char value)
int blpapi_TestUtil_getAdminMessageDefinition(blpapi_SchemaElementDefinition_t **definition, blpapi_Name_t *messageName)
int blpapi_HighResolutionClock_now(blpapi_TimePoint_t *timePoint)
void blpapi_Logging_logTestMessage(blpapi_Logging_Severity_t severity)
int blpapi_SessionOptions_setDefaultKeepAliveInactivityTime(blpapi_SessionOptions_t *parameters, int inactivityMsecs)
int blpapi_MessageProperties_create(blpapi_MessageProperties_t **messageProperties)
int blpapi_MessageFormatter_setValueHighPrecisionDatetime(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, const blpapi_HighPrecisionDatetime_t *value)
BLPAPI_EXPORT int blpapi_AuthOptions_create_forAppMode(blpapi_AuthOptions_t **options, const blpapi_AuthApplication_t *app)
int blpapi_SessionOptions_setFlushPublishedEventsTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
int blpapi_MessageFormatter_appendValueFromName(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *value)
int blpapi_EventFormatter_appendRecapMessageSeq(blpapi_EventFormatter_t *formatter, const blpapi_Topic_t *topic, const blpapi_CorrelationId_t *cid, unsigned int sequenceNumber, unsigned int)
int blpapi_Int32_t
Definition: blpapi_types.h:67
int blpapi_EventFormatter_appendFragmentedRecapMessage(blpapi_EventFormatter_t *formatter, const char *typeString, blpapi_Name_t *typeName, const blpapi_Topic_t *topic, const blpapi_CorrelationId_t *cid, int fragmentType)
int blpapi_TestUtil_createTopic(blpapi_Topic_t **topic, const blpapi_Service_t *service, int isActive)
int blpapi_EventFormatter_appendFragmentedRecapMessageSeq(blpapi_EventFormatter_t *formatter, const char *typeString, blpapi_Name_t *typeName, const blpapi_Topic_t *topic, int fragmentType, unsigned int sequenceNumber)
struct blpapi_Name blpapi_Name_t
Definition: blpapi_types.h:154
int blpapi_MessageFormatter_FormatMessageJson(blpapi_MessageFormatter_t *formatter, const char *message)
BLPAPI_EXPORT void blpapi_AuthToken_destroy(blpapi_AuthToken_t *token)
int blpapi_MessageFormatter_appendValueString(blpapi_MessageFormatter_t *formatter, const char *value)
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:53
int blpapi_Session_sendRequestTemplate(blpapi_Session_t *session, const blpapi_RequestTemplate_t *requestTemplate, blpapi_CorrelationId_t *correlationId)
int blpapi_SessionOptions_serviceCheckTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_ProviderSession_terminateSubscriptionsOnTopics(blpapi_ProviderSession_t *session, const blpapi_Topic_t **topics, size_t numTopics, const char *message)
int blpapi_ProviderSession_activateSubServiceCodeRange(blpapi_ProviderSession_t *session, const char *serviceName, int begin, int end, int priority)
int blpapi_Bool_t
Definition: blpapi_types.h:62
void blpapi_ServiceRegistrationOptions_removeAllActiveSubServiceCodeRanges(blpapi_ServiceRegistrationOptions_t *parameters)
BLPAPI_EXPORT int blpapi_AuthApplication_duplicate(blpapi_AuthApplication_t **app, const blpapi_AuthApplication_t *dup)
struct blpapi_Topic blpapi_Topic_t
Definition: blpapi_topic.h:68
int blpapi_Session_createSnapshotRequestTemplate(blpapi_RequestTemplate_t **requestTemplate, blpapi_Session_t *session, const char *subscriptionString, const blpapi_Identity_t *identity, blpapi_CorrelationId_t *correlationId)
Provide a key to identify individual subscriptions or requests.
int blpapi_MessageFormatter_assign(blpapi_MessageFormatter_t **lhs, const blpapi_MessageFormatter_t *rhs)
struct blpapi_EventQueue blpapi_EventQueue_t
Definition: blpapi_types.h:148
struct blpapi_Message blpapi_Message_t
Definition: blpapi_message.h:70
void blpapi_SessionOptions_setTlsOptions(blpapi_SessionOptions_t *paramaters, const blpapi_TlsOptions_t *tlsOptions)
struct blpapi_SchemaElementDefinition blpapi_SchemaElementDefinition_t
Definition: blpapi_types.h:191
void blpapi_TlsOptions_destroy(blpapi_TlsOptions_t *parameters)
int blpapi_SessionOptions_defaultKeepAliveInactivityTime(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_defaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters)
BLPAPI_EXPORT int blpapi_AuthOptions_duplicate(blpapi_AuthOptions_t **options, const blpapi_AuthOptions_t *dup)
BLPAPI_EXPORT int blpapi_AuthApplication_copy(blpapi_AuthApplication_t *lhs, const blpapi_AuthApplication_t *rhs)
int blpapi_ZfpUtil_getOptionsForLeasedLines(blpapi_SessionOptions_t *sessionOptions, const blpapi_TlsOptions_t *tlsOptions, int remote)
int blpapi_Element_getValueAsHighPrecisionDatetime(const blpapi_Element_t *element, blpapi_HighPrecisionDatetime_t *buffer, size_t index)
struct blpapi_AuthOptions blpapi_AuthOptions_t
Definition: blpapi_types.h:203
int blpapi_Session_subscribeEx(blpapi_Session_t *session, const blpapi_SubscriptionList_t *subscriptionList, const blpapi_Identity_t *handle, const char *requestLabel, int requestLabelLen, blpapi_SubscriptionPreprocessErrorHandler_t errorHandler, void *userData)
struct blpapi_Identity blpapi_Identity_t
Definition: blpapi_types.h:188
int blpapi_Message_print(const blpapi_Message_t *message, blpapi_StreamWriter_t streamWriter, void *stream, int indentLevel, int spacesPerLevel)
size_t blpapi_SessionOptions_maxEventQueueSize(blpapi_SessionOptions_t *parameters)
int blpapi_MessageFormatter_setValueDatetime(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, const blpapi_Datetime_t *value)
int blpapi_MessageFormatter_appendValueInt64(blpapi_MessageFormatter_t *formatter, blpapi_Int64_t value)
void blpapi_TlsOptions_setTlsHandshakeTimeoutMs(blpapi_TlsOptions_t *paramaters, int tlsHandshakeTimeoutMs)
int blpapi_MessageFormatter_appendValueFloat32(blpapi_MessageFormatter_t *formatter, blpapi_Float32_t value)
int blpapi_SessionOptions_setApplicationIdentityKey(blpapi_SessionOptions_t *parameters, const char *applicationIdentityKey, size_t size)
struct blpapi_ServiceRegistrationOptions blpapi_ServiceRegistrationOptions_t
Definition: blpapi_providersession.h:214
BLPAPI_EXPORT void blpapi_AuthApplication_destroy(blpapi_AuthApplication_t *app)
BLPAPI_EXPORT int blpapi_AuthOptions_create_forUserAndAppMode(blpapi_AuthOptions_t **options, const blpapi_AuthUser_t *user, const blpapi_AuthApplication_t *app)
int blpapi_TestUtil_serializeService(blpapi_StreamWriter_t streamWriter, void *stream, const blpapi_Service_t *service)
BLPAPI_EXPORT void blpapi_AuthOptions_destroy(blpapi_AuthOptions_t *options)
int blpapi_SessionOptions_setServerAddressWithProxy(blpapi_SessionOptions_t *parameters, const char *serverHost, unsigned short serverPort, const blpapi_Socks5Config_t *socks5Config, size_t index)
int blpapi_MessageProperties_setTimeReceived(blpapi_MessageProperties_t *messageProperties, const blpapi_HighPrecisionDatetime_t *timestamp)
void blpapi_TlsOptions_copy(blpapi_TlsOptions_t *lhs, const blpapi_TlsOptions_t *rhs)
int blpapi_ProviderSession_deregisterService(blpapi_ProviderSession_t *session, const char *serviceName)
BLPAPI_EXPORT int blpapi_AuthUser_duplicate(blpapi_AuthUser_t **user, const blpapi_AuthUser_t *dup)
void blpapi_Request_setPreferredRoute(blpapi_Request_t *request, blpapi_CorrelationId_t *correlationId)
int blpapi_EventFormatter_appendMessageSeq(blpapi_EventFormatter_t *formatter, const char *typeString, blpapi_Name_t *typeName, const blpapi_Topic_t *topic, unsigned int sequenceNumber, unsigned int)
void blpapi_SessionOptions_setMaxEventQueueSize(blpapi_SessionOptions_t *parameters, size_t maxEventQueueSize)
BLPAPI_EXPORT int blpapi_AuthOptions_create_forUserMode(blpapi_AuthOptions_t **options, const blpapi_AuthUser_t *user)
struct blpapi_MessageProperties blpapi_MessageProperties_t
Definition: blpapi_types.h:200
int blpapi_Message_timeReceived(const blpapi_Message_t *message, blpapi_TimePoint_t *timeReceived)
int blpapi_MessageFormatter_appendElement(blpapi_MessageFormatter_t *formatter)
Provide preprocessor macros for BLPAPI library version information.
struct blpapi_TlsOptions blpapi_TlsOptions_t
Definition: blpapi_types.h:178
Definition: blpapi_datetime.h:102
void(* blpapi_SubscriptionPreprocessErrorHandler_t)(const blpapi_CorrelationId_t *correlationId, const char *subscriptionString, int errorCode, const char *errorDescription, void *userData)
Definition: blpapi_session.h:120
int blpapi_MessageProperties_assign(blpapi_MessageProperties_t *lhs, const blpapi_MessageProperties_t *rhs)
int blpapi_MessageProperties_copy(blpapi_MessageProperties_t **dest, const blpapi_MessageProperties_t *src)
int blpapi_TestUtil_appendMessage(blpapi_MessageFormatter_t **formatter, blpapi_Event_t *event, const blpapi_SchemaElementDefinition_t *messageType, const blpapi_MessageProperties_t *properties)
struct blpapi_EventFormatter blpapi_EventFormatter_t
Definition: blpapi_types.h:145
BLPAPI_EXPORT int blpapi_HighPrecisionDatetime_compare(const blpapi_HighPrecisionDatetime_t *lhs, const blpapi_HighPrecisionDatetime_t *rhs)
int blpapi_MessageFormatter_setValueFloat32(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, blpapi_Float32_t value)
void blpapi_Socks5Config_destroy(blpapi_Socks5Config_t *socks5Config)
int blpapi_MessageFormatter_destroy(blpapi_MessageFormatter_t *formatter)
BLPAPI_EXPORT int blpapi_HighPrecisionDatetime_print(const blpapi_HighPrecisionDatetime_t *datetime, blpapi_StreamWriter_t streamWriter, void *stream, int level, int spacesPerLevel)
A signature for callback on print and default C++ implementation.
int blpapi_MessageFormatter_appendValueHighPrecisionDatetime(blpapi_MessageFormatter_t *formatter, const blpapi_HighPrecisionDatetime_t *value)
double blpapi_Float64_t
Definition: blpapi_types.h:72
BLPAPI_EXPORT int blpapi_HighPrecisionDatetime_fromTimePoint(blpapi_HighPrecisionDatetime_t *datetime, const blpapi_TimePoint_t *timePoint, short offset)
BLPAPI_EXPORT int blpapi_AuthUser_createWithLogonName(blpapi_AuthUser_t **user)
struct blpapi_RequestTemplate blpapi_RequestTemplate_t
Definition: blpapi_types.h:163
int blpapi_SubscriptionList_isResolvedAt(blpapi_SubscriptionList_t *list, int *result, size_t index)
int blpapi_Element_getValueAsBytes(const blpapi_Element_t *element, const char **buffer, size_t *length, size_t index)
int blpapi_MessageFormatter_setValueBool(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, blpapi_Bool_t value)
BLPAPI_EXPORT int blpapi_AuthOptions_copy(blpapi_AuthOptions_t *lhs, const blpapi_AuthOptions_t *rhs)
long long blpapi_Int64_t
Definition: blpapi_types.h:69
BLPAPI_EXPORT int blpapi_AuthUser_copy(blpapi_AuthUser_t *lhs, const blpapi_AuthUser_t *rhs)
void blpapi_TlsOptions_setCrlFetchTimeoutMs(blpapi_TlsOptions_t *paramaters, int crlFetchTimeoutMs)
int blpapi_RequestTemplate_addRef(const blpapi_RequestTemplate_t *requestTemplate)
int blpapi_SessionOptions_recordSubscriptionDataReceiveTimes(blpapi_SessionOptions_t *parameters)
BLPAPI_EXPORT int blpapi_AuthApplication_create(blpapi_AuthApplication_t **app, const char *appName)
int blpapi_Operation_responseDefinitionFromName(blpapi_Operation_t *operation, blpapi_SchemaElementDefinition_t **responseDefinition, const blpapi_Name_t *name)
int blpapi_SessionOptions_serviceDownloadTimeout(blpapi_SessionOptions_t *parameters)
int blpapi_SessionOptions_setSlowConsumerWarningLoWaterMark(blpapi_SessionOptions_t *parameters, float loWaterMark)
int blpapi_Element_setValueHighPrecisionDatetime(blpapi_Element_t *element, const blpapi_HighPrecisionDatetime_t *value, size_t index)
BLPAPI_EXPORT void blpapi_AuthUser_destroy(blpapi_AuthUser_t *user)
int blpapi_EventFormatter_setValueHighPrecisionDatetime(blpapi_EventFormatter_t *formatter, const char *typeString, const blpapi_Name_t *typeName, const blpapi_HighPrecisionDatetime_t *value)
int blpapi_SessionOptions_setDefaultKeepAliveResponseTimeout(blpapi_SessionOptions_t *parameters, int timeoutMsecs)
struct blpapi_AbstractSession blpapi_AbstractSession_t
Definition: blpapi_types.h:127
BLPAPI_EXPORT int blpapi_AbstractSession_generateManualToken(blpapi_AbstractSession_t *session, blpapi_CorrelationId_t *correlationId, const char *user, const char *manualIp, blpapi_EventQueue_t *eventQueue)
int blpapi_MessageFormatter_copy(blpapi_MessageFormatter_t **formatter, const blpapi_MessageFormatter_t *original)
int blpapi_MessageFormatter_setValueBytes(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, const char *value, size_t length)
void blpapi_ServiceRegistrationOptions_setPartsToRegister(blpapi_ServiceRegistrationOptions_t *parameters, int parts)
float blpapi_SessionOptions_slowConsumerWarningHiWaterMark(blpapi_SessionOptions_t *parameters)
struct blpapi_Session blpapi_Session_t
Definition: blpapi_types.h:169
int blpapi_TestUtil_createEvent(blpapi_Event_t **event, int eventType)
BLPAPI_EXPORT int blpapi_AuthToken_copy(blpapi_AuthToken_t *lhs, const blpapi_AuthToken_t *rhs)
int blpapi_Session_resubscribeWithId(blpapi_Session_t *session, const blpapi_SubscriptionList_t *resubscriptionList, int resubscriptionId, const char *requestLabel, int requestLabelLen)
float blpapi_Float32_t
Definition: blpapi_types.h:71
struct blpapi_ProviderSession blpapi_ProviderSession_t
Definition: blpapi_types.h:160
int blpapi_SubscriptionList_addResolved(blpapi_SubscriptionList_t *list, const char *subscriptionString, const blpapi_CorrelationId_t *correlationId)
int blpapi_MessageFormatter_setValueInt64(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, blpapi_Int64_t value)
int blpapi_SessionOptions_getServerAddressWithProxy(blpapi_SessionOptions_t *parameters, const char **serverHost, unsigned short *serverPort, const char **socks5Host, unsigned short *sock5Port, size_t index)
int blpapi_Element_setElementBytes(blpapi_Element_t *element, const char *nameString, const blpapi_Name_t *name, const char *value, size_t length)
struct blpapi_AuthApplication blpapi_AuthApplication_t
Definition: blpapi_types.h:209
struct blpapi_MessageFormatter blpapi_MessageFormatter_t
Definition: blpapi_types.h:197
int blpapi_SessionOptions_applicationIdentityKey(const char **applicationIdentityKey, size_t *size, blpapi_SessionOptions_t *parameters)
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
struct blpapi_Service blpapi_Service_t
Definition: blpapi_types.h:166
BLPAPI_EXPORT int blpapi_AuthOptions_create_forToken(blpapi_AuthOptions_t **options, const blpapi_AuthToken_t *token)
void blpapi_MessageProperties_destroy(blpapi_MessageProperties_t *messageProperties)
int blpapi_Session_resubscribeEx(blpapi_Session_t *session, const blpapi_SubscriptionList_t *resubscriptionList, const char *requestLabel, int requestLabelLen, blpapi_SubscriptionPreprocessErrorHandler_t errorHandler, void *userData)
int blpapi_MessageFormatter_appendValueChar(blpapi_MessageFormatter_t *formatter, char value)
struct blpapi_SessionOptions blpapi_SessionOptions_t
Definition: blpapi_types.h:172
BLPAPI_EXPORT int blpapi_AbstractSession_getAuthorizedIdentity(blpapi_AbstractSession_t *session, const blpapi_CorrelationId_t *cid, blpapi_Identity_t **identity)
int blpapi_MessageProperties_setService(blpapi_MessageProperties_t *messageProperties, const blpapi_Service_t *service)
int blpapi_MessageFormatter_appendValueFloat64(blpapi_MessageFormatter_t *formatter, blpapi_Float64_t value)
int blpapi_MessageProperties_setCorrelationIds(blpapi_MessageProperties_t *messageProperties, const blpapi_CorrelationId_t *correlationIds, size_t numCorrelationIds)
int blpapi_MessageFormatter_setValueFromName(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, const blpapi_Name_t *value)
int blpapi_SessionOptions_bandwidthSaveModeDisabled(blpapi_SessionOptions_t *parameters)
Provide BLPAPI types.
int blpapi_DiagnosticsUtil_memoryInfo(char *buffer, size_t bufferLength)
int blpapi_Request_getRequestId(const blpapi_Request_t *request, const char **requestId)
int blpapi_RequestTemplate_release(const blpapi_RequestTemplate_t *requestTemplate)
int blpapi_SessionOptions_setBandwidthSaveModeDisabled(blpapi_SessionOptions_t *parameters, int disableBandwidthSaveMode)
float blpapi_SessionOptions_slowConsumerWarningLoWaterMark(blpapi_SessionOptions_t *parameters)
int blpapi_MessageFormatter_setValueInt32(blpapi_MessageFormatter_t *formatter, const blpapi_Name_t *typeName, blpapi_Int32_t value)
int blpapi_MessageFormatter_popElement(blpapi_MessageFormatter_t *formatter)
int blpapi_Message_release(const blpapi_Message_t *message)
void blpapi_SessionOptions_setRecordSubscriptionDataReceiveTimes(blpapi_SessionOptions_t *parameters, int shouldRecord)
BLPAPI_EXPORT int blpapi_AuthToken_duplicate(blpapi_AuthToken_t **token, const blpapi_AuthToken_t *dup)
Definition: blpapi_datetime.h:115
int blpapi_SessionOptions_setServiceCheckTimeout(blpapi_SessionOptions_t *paramaters, int timeoutMsecs)
int blpapi_Message_addRef(const blpapi_Message_t *message)
int blpapi_SessionOptions_keepAliveEnabled(blpapi_SessionOptions_t *parameters)
int blpapi_MessageProperties_setRequestId(blpapi_MessageProperties_t *messageProperties, const char *requestId)
int blpapi_Message_getRequestId(const blpapi_Message_t *message, const char **requestId)
BLPAPI_EXPORT int blpapi_AuthToken_create(blpapi_AuthToken_t **token, const char *tokenStr)