6 #ifndef CMR_CMR_INCLUDED
7 #define CMR_CMR_INCLUDED
15 const long CMR_OK = 1;
16 const long CMR_NOOP = 2;
18 const long CMR_GENERIC_ERROR = -1000001;
19 const long CMR_NOT_FOUND = -1000002;
20 const long CMR_NOT_IMPLEMENTED = -1000003;
22 const long CMR_ALREADY_EXIST = -1000004;
23 const long CMR_END_OF_DATA = -1000005;
24 const long CMR_INVALID_ANSWER = -1000006;
26 const long CMR_FIRST_ERROR = CMR_GENERIC_ERROR;
27 const long CMR_LAST_ERROR = -1000099;
29 template <
class C>
void swap(C& c1, C& c2)
38 #define REQ_CHECK_CONNECTION "cmr.check"
39 #define REQ_CHECK_CONNECTION_RETURN "cmr.check_return"
40 #define REQ_CALL "cmr.call"
41 #define REQ_CALL_RETURN "cmr.call_return"
43 #define REQ_SVC_CLASS "svc_class"
44 #define REQ_SVC_NAME "svc_name"
45 #define REQ_IFACE_NAME "iface_name"
47 #define REQ_ARGS_IN "args_in"
48 #define REQ_TIMESTAMP "cmr.req.timestamp"
49 #define REQ_ARGS_OUT "args_out"
50 #define REQ_SESSION_CONTEXT "session_context"
51 #define REQ_APP_RETURN_VALUE "r" // application return value
53 #define SESSION_CONTEXT_SESSION_ID "session_id"
56 const long COMM_FORMAT_BINARY = 0;
57 const long COMM_FORMAT_ASCII_XML = 1;
59 CMREXD
extern int init();