Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00031 #ifndef PARSE_EVENT_H
00032 #define PARSE_EVENT_H
00033
00034 #include "../str.h"
00035 #include "hf.h"
00036 #include "parse_param.h"
00037
00038
00039 enum event_type {
00040 EVENT_OTHER = 0,
00041 EVENT_PRESENCE,
00042 EVENT_PRESENCE_WINFO,
00043 EVENT_SIP_PROFILE,
00044 EVENT_XCAP_CHANGE,
00045 EVENT_DIALOG,
00046 EVENT_MESSAGE_SUMMARY,
00047 EVENT_UA_PROFILE
00048 };
00049
00050
00051 struct event_params {
00052 param_hooks_t hooks;
00053 param_t* list;
00054 };
00055
00056
00057 typedef struct event {
00058 enum event_type type;
00059 str name;
00060 struct event_params params;
00061 } event_t;
00062
00063
00064
00065
00066
00067 int parse_event(struct hdr_field* hf);
00068
00069
00070
00071
00072
00073 void free_event(event_t** e);
00074
00075
00076
00077
00078
00079 void print_event(event_t* e);
00080
00081 int event_parser(char* s, int l, event_t* e);
00082
00083
00084 #endif