29 #define REMOTE_BASE_LEN 11 // len of REMOTE_BASE
30 #define MAX_REMOTE_APP_LEN 30 // max len of application (e.g. "ARB_EDIT4")
31 #define MAX_REMOTE_ITEM_LEN 7 // max len of item in APP container ("action", "result", ...)
33 #define MAX_REMOTE_PATH_LEN (REMOTE_BASE_LEN + MAX_REMOTE_APP_LEN + 1 + MAX_REMOTE_ITEM_LEN)
42 const char *item(
const char *itemname)
const {
44 strcpy(name+length, itemname);
49 #if defined(ASSERTION_USED)
50 size_t alen = strlen(app_id);
72 const char *
action()
const {
return item(
"action"); }
73 const char *
result()
const {
return item(
"result"); }
74 const char *
awar()
const {
return item(
"awar"); }
75 const char *
value()
const {
return item(
"value"); }
78 const char *
authReq()
const {
return item(
"authReq"); }
79 const char *
authAck()
const {
return item(
"authAck"); }
80 const char *
granted()
const {
return item(
"granted"); }
82 const char *
recAuth()
const {
return item(
"recAuth"); }
84 const char *
appID()
const {
return app_id; }
88 #error ad_remote.h included twice
DECLARE_ASSIGNMENT_OPERATOR(remote_awars)
remote_awars(const char *application)
remote_awars(const remote_awars &other)
const char * granted() const
const char * result() const
#define MAX_REMOTE_PATH_LEN
#define MAX_REMOTE_ITEM_LEN
char * ARB_strdup(const char *str)
const char * authAck() const
const char * value() const
const char * authReq() const
const char * appID() const
const char * awar() const
#define MAX_REMOTE_APP_LEN
const char * recAuth() const
const char * action() const