00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00032 #ifndef __ALP_ATTNMGRD_PRV_H__
00033 #define __ALP_ATTNMGRD_PRV_H__
00034
00035 #include <paths.h>
00036
00037 #include <hiker/ipc.h>
00038 #include <hiker/attnmgr_common.h>
00039
00040 #define ALP_ATTNMGRD_DEF_PIDFILE _PATH_VARRUN "attnmgr"
00041
00042
00043 #define ALP_ATTNMGRD_APPID_ALERT "bar:com.access.apps.attn_alert"
00044 #define ALP_ATTNMGRD_APPID_SELF "bar:com.access.services.attnmgr"
00045 #define ALP_ATTNMGRD_NOTIFYID_SELF "attnmgrd"
00046
00047
00048
00049
00050
00051 #define ALP_ATTN_PRIORITY_TRIGGER 3
00052
00053 extern AlpDmlH gAlpAttnMgrDDmlH;
00054 extern bool gAlpAttnMgrDDebug;
00055 extern bool gAlpAttnMgrDTest;
00056
00057
00058 typedef struct _AlpAttnConnectionEntry AlpAttnConnectionEntry;
00059
00060 struct _AlpAttnConnectionEntry {
00061 AlpConnection *connect;
00062 char *appID;
00063 struct _AlpAttnConnectionEntry *next;
00064 };
00065
00066 #ifdef __cplusplus
00067 extern "C" {
00068 #endif
00069
00070 extern alp_status_t alp_attnmgrd_db_setup (const char *directory,
00071 const char *filename,
00072 bool debug);
00073 extern void alp_attnmgrd_db_teardown (void);
00074 extern void alp_attnmgrd_ipc_setup (const char *channel);
00075 extern void alp_attnmgrd_ipc_teardown (void);
00076
00077 extern void alp_attnmgrd_process_post_alert (AlpConnection *connection,
00078 AlpMessage *message,
00079 AlpDmlItemH itemH,
00080 gint procId,
00081 gint userId,
00082 gint groupId);
00083 extern void alp_attnmgrd_process_update_alert (AlpConnection *connection,
00084 AlpMessage *message,
00085 AlpDmlItemH itemH);
00086 extern void alp_attnmgrd_process_delete_alert (AlpConnection *connection,
00087 AlpMessage *message,
00088 AlpDmlItemH itemH);
00089 #ifdef __cplusplus
00090 }
00091 #endif
00092
00093 #endif