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

71 lines
1.6 KiB
C
Raw Normal View History

2011-11-30 12:51:50 +00:00
#ifndef PSYC_METHOD_H
#define PSYC_METHOD_H
typedef enum PsycMethodFlag {
PSYC_METHOD_TEMPLATE = 1 << 0,
PSYC_METHOD_REPLY = 1 << 1,
PSYC_METHOD_VISIBLE = 1 << 2,
PSYC_METHOD_LOGGABLE = 1 << 3,
PSYC_METHOD_MANUAL = 1 << 4,
} PsycMethodFlag;
typedef enum PsycMethod {
PSYC_MC_UNKNOWN,
PSYC_MC_DATA,
PSYC_MC_ECHO,
PSYC_MC_ECHO_CONTEXT_ENTER,
PSYC_MC_ECHO_CONTEXT_LEAVE,
2012-01-04 22:33:43 +00:00
PSYC_MC_ECHO_HELLO,
2011-11-30 12:51:50 +00:00
PSYC_MC_ERROR,
PSYC_MC_FAILURE,
PSYC_MC_INFO,
PSYC_MC_MESSAGE,
PSYC_MC_MESSAGE_ACTION,
PSYC_MC_MESSAGE_ECHO,
PSYC_MC_MESSAGE_ECHO_ACTION,
PSYC_MC_NOTICE,
PSYC_MC_NOTICE_CONTEXT_ENTER,
PSYC_MC_NOTICE_CONTEXT_LEAVE,
PSYC_MC_REQUEST,
PSYC_MC_REQUEST_CONTEXT_ENTER,
PSYC_MC_REQUEST_CONTEXT_LEAVE,
PSYC_MC_STATUS,
PSYC_MC_STATUS_CONTEXTS_ENTERED,
2011-12-27 16:50:25 +00:00
PSYC_MC_STATUS_HELLO,
2011-11-30 12:51:50 +00:00
PSYC_MC_WARNING,
PSYC_METHODS_NUM,
} PsycMethod;
typedef union PsycTemplates {
PsycString a[PSYC_METHODS_NUM];
struct {
PsycString _;
PsycString _data;
PsycString _echo;
PsycString _echo_context_enter;
PsycString _echo_context_leave;
2012-01-04 22:33:43 +00:00
PsycString _echo_hello;
2011-11-30 12:51:50 +00:00
PsycString _error;
PsycString _failure;
PsycString _info;
PsycString _message;
PsycString _message_action;
2011-12-27 16:50:25 +00:00
PsycString _message_echo;
2011-11-30 12:51:50 +00:00
PsycString _message_echo_action;
PsycString _notice;
PsycString _notice_context_enter;
PsycString _notice_context_leave;
PsycString _request;
PsycString _request_context_enter;
PsycString _request_context_leave;
PsycString _status;
PsycString _status_contexts_entered;
2011-12-27 16:50:25 +00:00
PsycString _status_hello;
2011-11-30 12:51:50 +00:00
PsycString _warning;
} s;
} PsycTemplates;
#endif