OpenMAMA
clientmanage.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MAMA_CLIENT_MANAGE_H__
23 #define MAMA_CLIENT_MANAGE_H__
24 
25 #if defined(__cplusplus)
26 extern "C" {
27 #endif
28 
36 #define MAMA_CM_TOPIC "__MAMA_CM"
37 #define MAMA_CM_PUB_TOPIC "__MAMA_PUB_CM"
38 
40 #define MAMA_SYNC_TOPICS_ID 101
41 
43 #define MAMA_CM_COMMAND_ID 102
44 
46 #define MAMA_SYNC_SOURCE_ID 103
47 
49 #define MAMA_SYNC_TOPICS_PER_MSG_ID 104
50 
54 #define MAMA_SYNC_RESPONSE_DELAY_ID 105
55 
57 #define MAMA_SYNC_RESPONSE_DURATION_ID 106
58 
60 #define MAMA_SYNC_TYPES_ID 107
61 
64 typedef enum
65 {
69 
84 typedef void (*cmCommandDtor)(void* handle);
85 
86 typedef struct
87 {
88  void* mHandle;
90 } mamaCommand;
91 
96 typedef void (*mamaCommandEndCB)(mamaCommand* command, void *closure);
97 
98 #if defined(__cplusplus)
99 }
100 #endif
101 
102 #endif /* MAMA_CLIENT_MANAGE_H__ */
mamaCommand::mHandle
void * mHandle
Definition: clientmanage.h:88
MAMA_COMMAND_SYNC
@ MAMA_COMMAND_SYNC
Sync Request.
Definition: clientmanage.h:67
mamaCmCommand
mamaCmCommand
Commands.
Definition: clientmanage.h:64
mamaCommandEndCB
void(* mamaCommandEndCB)(mamaCommand *command, void *closure)
Commands invoke this callback when they complete so the responder can destroy them.
Definition: clientmanage.h:96
mamaCommand::mDtor
cmCommandDtor mDtor
Definition: clientmanage.h:89
cmCommandDtor
void(* cmCommandDtor)(void *handle)
This structure allows for generic commands to be destroyed by the clientmanageresponder.
Definition: clientmanage.h:84
mamaCommand
Definition: clientmanage.h:86


© 2012 Linux Foundation