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

notifymgr_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 ********************************************************************/
00034 #ifndef NOTIFY_MGR_PRV_H
00035 #define NOTIFY_MGR_PRV_H
00036 
00037 #include <hiker/notifymgr.h>
00038 
00039 #define ALP_NOTIFY_MGR_SERVER_CHANNEL "alp_notify_server"
00040 
00041 // cmd parameter
00042 #define ALP_NOTIFY_CMD_REGISTER         1
00043 #define ALP_NOTIFY_CMD_UNREGISTER       2
00044 #define ALP_NOTIFY_CMD_BROADCAST        3
00045 #define ALP_NOTIFY_CMD_NOTIFY           4
00046 #define ALP_NOTIFY_CMD_NOTIFY_DONE      5
00047 #define ALP_NOTIFY_CMD_CALLBACK         6
00048 
00049 // client -> server
00050 typedef struct _AlpNotifyCmdRegister AlpNotifyCmdRegister;
00051 struct _AlpNotifyCmdRegister {
00052         int cmd;
00053         int size;
00054 
00055         char notifyType[ALP_NOTIFY_MAX_NOTIFY_SIZE+1];
00056         void * callback;
00057     void * userData;
00058         int priority;
00059         int flags;
00060         int pid;
00061         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00062         int zero;
00063 };
00064 
00065 // client -> server
00066 typedef struct _AlpNotifyCmdUnregister AlpNotifyCmdUnregister;
00067 struct _AlpNotifyCmdUnregister {
00068         int cmd;
00069         int size;
00070 
00071         char notifyType[ALP_NOTIFY_MAX_NOTIFY_SIZE+1];
00072         int flags;
00073         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00074         int zero;
00075 };
00076 
00077 // client -> server
00078 typedef struct _AlpNotifyCmdBroadcast AlpNotifyCmdBroadcast;
00079 struct _AlpNotifyCmdBroadcast {
00080         int cmd;
00081         int size;
00082 
00083         char details[ALP_NOTIFY_MAX_DETAILS_SIZE];
00084         char notifyType[ALP_NOTIFY_MAX_NOTIFY_SIZE+1];
00085         int length;
00086         int flags;
00087         int queue;
00088         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00089         int zero;
00090 };
00091 
00092 // server -> client
00093 typedef struct _AlpNotifyCmdNotification AlpNotifyCmdNotification;
00094 struct _AlpNotifyCmdNotification {
00095         int cmd;
00096         int size;
00097 
00098         char details[ALP_NOTIFY_MAX_DETAILS_SIZE];
00099         char notifyType[ALP_NOTIFY_MAX_NOTIFY_SIZE+1];
00100         void * callback;
00101     void * userData;
00102         int length;
00103         int flags;
00104         int handled;
00105         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00106         char appID2[ALP_NOTIFY_MAX_APPID_SIZE+1];
00107 };
00108 
00109 // client -> server
00110 typedef struct _AlpNotifyCmdNotificationDone AlpNotifyCmdNotificationDone;
00111 struct _AlpNotifyCmdNotificationDone {
00112         int cmd;
00113         int size;
00114 
00115         int handled;
00116         int status;
00117         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00118         int zero;
00119 };
00120 
00121 // client -> server
00122 typedef struct _AlpNotifyCmdCallback AlpNotifyCmdCallback;
00123 struct _AlpNotifyCmdCallback {
00124         int cmd;
00125         int size;
00126 
00127         char appID[ALP_NOTIFY_MAX_APPID_SIZE+1];
00128         int zero;
00129 };
00130 
00131 #endif

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