54 #if defined(__cplusplus)
59 #define MAMA_OPEN_MD ((uint32_t)(0x00000001))
60 #define MAMA_OPEN_PUB_SUB ((uint32_t)(0x00000002))
62 #define MAMA_DEFAULT_THROTTLE_RATE 500
63 #define MAMA_DEFAULT_RECAP_THROTTLE_RATE 250
65 #define MAMA_DEFAULT_RETRIES 2
66 #define MAMA_DEFAULT_TIMEOUT 30.0f
67 #define MAMA_MAX_SYMBOL_LEN 128
68 #define MAMA_MAX_SOURCE_LEN 64
69 #define MAMA_MAX_TRANSPORT_LEN 64
155 #define MAMA_LINK_BRIDGE(implIdentifier, impl) \
158 implIdentifier ## Bridge_createImpl (impl); \
162 #define MAMA_CREATE_BRIDGE(implIdentifier, impl) \
165 if (MAMA_LINK_##implIdentifier) \
167 implIdentifier##Bridge_createImpl (impl); \
171 mama_loadBridge (impl, "##implIdentifier##"); \
222 const char* filename);
272 const char *filename);
346 mamaStartCB callback);
366 mamaStopCBEx callback,
403 #ifdef WITH_ENTITLEMENTS
410 SESSION_DISCONNECT_REASON_ADMIN = 0,
412 SESSION_DISCONNECT_REASON_NEW_CONNECTION = 1,
414 SESSION_DISCONNECT_REASON_ENTITLEMENTS_UPDATE = 2,
416 SESSION_DISCONNECT_REASON_INVALID = 101
417 } sessionDisconnectReason;
430 *onSessionDisconnectCB) (
const sessionDisconnectReason reason,
433 const char* appName);
440 *onEntitlementUpdateCB) (
void);
450 *onEntitlementCheckingSwitchCB) (
const int isEntitlementCheckingDisabled);
454 typedef struct mamaEntitlementCallbacks_
456 onSessionDisconnectCB onSessionDisconnect;
457 onEntitlementUpdateCB onEntitlementUpdate;
458 onEntitlementCheckingSwitchCB onEntitlementCheckingSwitch;
459 } mamaEntitlementCallbacks;
472 mama_registerEntitlementCallbacks (
const mamaEntitlementCallbacks* entitlementCallbacks);
566 typedef void (MAMACALLTYPE *bridgeInfoCallback) (mamaBridge bridgeImpl,
const char*
message);
576 bridgeInfoCallback callback);
591 #if defined(__cplusplus)
typedef void(MAMACALLTYPE *mamaStartCB)(mama_status status)
The callback invoked if an error occurs calling mama_startBackground() or when mama_startBackground()...
MAMAExpDLL mama_status mama_removeStatsCollector(mamaStatsCollector statsCollector)
Remove a user stats collector.
MAMAExpDLL mama_status mama_getHostName(const char **hostName)
mama_getHostName - gets the host name
MAMAExpDLL mama_status mama_close(void)
Close MAMA and free all associated resource.
MAMAExpDLL void mama_setLastError(mamaError error)
Set the last error to occur in Mama.
MAMAExpDLL mama_status mama_setPropertiesFromFile(const char *path, const char *filename)
Load a set of properties through the API.
MAMAExpDLL mama_status mama_loadBridgeWithPath(mamaBridge *impl, const char *middleware, const char *path)
Load the bridge specified by middleware string using the path specified by the user.
const char mamaFtState void * closure
Definition: ft.h:54
MAMAExpDLL mama_status mama_stop(mamaBridge bridgeImpl)
Stop dispatching on the default event queue for the specified bridge.
mama_status mama_setDefaultPayload(char id)
The Mama data type provides methods global initialization and manipulating global options...
MAMAExpDLL mama_status mama_getUserName(const char **userName)
mama_getUserName - gets the user name
const char * message
Definition: mama.h:566
struct mamaPayloadBridgeImpl_ * mamaPayloadBridge
Definition: types.h:74
MAMAExpDLL mama_status mama_start(mamaBridge bridgeImpl)
Start processing messages on the internal queue.
MAMAExpDLL mama_status mama_addStatsCollector(mamaStatsCollector statsCollector)
Add a user stats collector.
struct mamaBridgeImpl_ * mamaBridge
Definition: types.h:69
MAMAExpDLL const char * mama_getProperty(const char *name)
Retrieve a specific property from the API.
MAMAExpDLL mama_status mama_setBridgeInfoCallback(mamaBridge bridgeImpl, bridgeInfoCallback callback)
Sets a callback to be invoked whenever an information message is logged at the bridge level...
MAMAExpDLL const char * mama_getVersion(mamaBridge bridgeImpl)
Return the version information for the library.
MAMAExpDLL mama_status mama_getIpAddress(const char **ipAddress)
mama_getIpAddressName - gets the IP Address
MAMAExpDLL mama_status mama_open(void)
mama_status mama_open (void)
MAMAExpDLL mama_status mama_startBackground(mamaBridge bridgeImpl, mamaStartCB callback)
Start Mama in the background.
struct mamaQueueImpl_ * mamaQueue
Definition: types.h:107
struct mamaStatsCollectorImpl_ * mamaStatsCollector
Definition: types.h:125
void *MAMAExpDLL mama_status mama_startBackgroundEx(mamaBridge bridgeImpl, mamaStopCBEx callback, void *closure)
Start Mama in the background, with extended parameters.
MAMAExpDLL const char * mama_getLastErrorText(void)
Get the text of the last error to have occurred in Mama.
MAMAExpDLL mama_status mama_loadPayloadBridge(mamaPayloadBridge *bridge, const char *payloadName)
MAMAExpDLL mama_status mama_getApplicationName(const char **applicationName)
mama_getApplicationName - gets the mama application name
MAMAExpDLL mama_status mama_stopAll(void)
Stop dispatching on the default event queue for all bridges.
MAMAExpDLL mama_status mama_setApplicationClassName(const char *className)
mama_setApplicationClass - sets the mama class name This should be called before mama_open ...
MAMAExpDLL mama_status mama_getDefaultEventQueue(mamaBridge bridgeImpl, mamaQueue *defaultQueue)
Get a reference to the internal default event queue in use for the specified middleware.
mama_status
Definition: status.h:37
MAMAExpDLL mama_status mama_loadBridge(mamaBridge *impl, const char *middleware)
Load the bridge specified by middleware string.
MAMAExpDLL mamaError mama_getLastErrorCode(void)
Get the code of the last error to have occurred in Mama.
mamaMsg mama_status status
Definition: publisher.h:54
MAMAExpDLL mama_status mama_getApplicationClassName(const char **className)
mama_getApplicationClass - sets the mama class name
MAMAExpDLL mama_status mama_setProperty(const char *name, const char *value)
Set a specific property for the API.
MAMAExpDLL mama_status mama_openWithProperties(const char *path, const char *filename)
Initialize MAMA.
MAMAExpDLL mama_status mama_setApplicationName(const char *applicationName)
mama_setApplicationName - sets the mama application name This should be called before mama_open ...
typedef mamaBridge
Definition: mama.h:351
enum mamaError_ mamaError