Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

attnmgrd_prv.h

Go to the documentation of this file.
00001 /********************************************************************
00002 
00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved.
00004 
00005 The contents of this file are subject to the Mozilla Public License Version
00006 1.1 (the "License"); you may not use this file except in compliance with
00007 the License. You may obtain a copy of the License at
00008 http://www.mozilla.org/MPL/
00009 
00010 Software distributed under the License is distributed on an "AS IS" basis,
00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012 for the specific language governing rights and limitations under the
00013 License.
00014 
00015 The Original Code is the entire contents of this file.
00016 
00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc.
00018 
00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All
00020 Rights Reserved.
00021 
00022 Contributor(s): none.
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 /* TODO: get ALERT bundle id from ruleset / config */
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  * A posted alert priority at this level or lower will trigger
00049  * the user dialog interface.
00050  */
00051 #define ALP_ATTN_PRIORITY_TRIGGER    3
00052 
00053 extern AlpDmlH gAlpAttnMgrDDmlH;
00054 extern bool gAlpAttnMgrDDebug;
00055 extern bool gAlpAttnMgrDTest;
00056 
00057 /* ipc */
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 /* __ALP_ATTNMGRD_PRV_H__ */

Generated on Sat Dec 16 20:29:47 2006 for hiker-0.9 by  doxygen 1.4.4