00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _PUA_EVLIST_H_
00028 #define _PUA_EVLIST_H_
00029
00030 #include "../../str.h"
00031
00032
00033 struct publ_info;
00034
00035 typedef int (evs_process_body_t)(struct publ_info* , str** final_body,
00036 int ver, str** tuple);
00037
00038 typedef struct pua_event
00039 {
00040 int ev_flag;
00041 str name;
00042 str content_type;
00043 evs_process_body_t* process_body;
00044 struct pua_event* next;
00045
00046 }pua_event_t;
00047
00048 extern pua_event_t* pua_evlist;
00049
00050 pua_event_t* init_pua_evlist(void);
00051
00052 int add_pua_event(int ev_flag, char* name, char* content_type,
00053 evs_process_body_t* process_body);
00054
00055 typedef int (*add_pua_event_t)(int ev_flag, char* name, char* content_type,
00056 evs_process_body_t* process_body);
00057
00058 pua_event_t* contains_pua_event(str* name);
00059
00060 pua_event_t* get_event(int ev_flag);
00061
00062 void destroy_pua_evlist(void);
00063
00064 #endif