1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

hello methods

This commit is contained in:
tg(x) 2011-12-27 17:50:25 +01:00
parent deeef9e048
commit 07901658f3
4 changed files with 12 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#define PSYC_C2STR(str) (PsycString) {sizeof(str)-1, str}
#define PSYC_C2STRI(str) {sizeof(str)-1, str}
#define PSYC_C2ARG(str) str, sizeof(str)-1
#define PSYC_C2ARG1(str) str, sizeof(str)
#define PSYC_C2ARG2(str) sizeof(str)-1, str
#define PSYC_S2ARG(str) (str).data, (str).length
#define PSYC_S2ARG2(str) (str).length, (str).data

View file

@ -31,6 +31,7 @@ typedef enum PsycMethod {
PSYC_MC_REQUEST_CONTEXT_LEAVE,
PSYC_MC_STATUS,
PSYC_MC_STATUS_CONTEXTS_ENTERED,
PSYC_MC_STATUS_HELLO,
PSYC_MC_WARNING,
PSYC_METHODS_NUM,
@ -44,11 +45,13 @@ typedef union PsycTemplates {
PsycString _echo;
PsycString _echo_context_enter;
PsycString _echo_context_leave;
PsycString _echo_hello_offer;
PsycString _error;
PsycString _failure;
PsycString _info;
PsycString _message;
PsycString _message_action;
PsycString _message_echo;
PsycString _message_echo_action;
PsycString _notice;
PsycString _notice_context_enter;
@ -58,6 +61,7 @@ typedef union PsycTemplates {
PsycString _request_context_leave;
PsycString _status;
PsycString _status_contexts_entered;
PsycString _status_hello;
PsycString _warning;
} s;
} PsycTemplates;