00001
00010 #ifndef MSGQINTERNAL_H
00011 #define MSGQINTERNAL_H
00012
00013 #include "MsgQLib.h"
00014
00015
00016
00017 typedef struct MsgQInfo* MSGQ_INFO_PTR;
00018
00019 typedef struct MsgQInfo {
00020 MSGQ_INFO_PTR next;
00021 ULONG qName;
00022 int qId;
00023 int semId ;
00024 ULONG sendState;
00025 ULONG numMsgs;
00026 ULONG maxNumMsgs;
00027 struct msqid_ds* slMqInfo_p;
00028 }MSGQ_INFO;
00029
00030
00031
00032
00033 typedef struct MsgQInfoList* MSGQ_INFO_LIST_PTR;
00034
00035 typedef struct MsgQInfoList {
00036 MSGQ_INFO_LIST_PTR next;
00037 ULONG qName;
00038 } MSGQ_INFO_LIST;
00039
00040
00041 int InstallMsqQTable(ULONG qName, int qId, int semId, int* err);
00042 void AddToMsgQTable(ULONG qName);
00043 int RemoveFromMsqQTable(ULONG qName, int* err);
00044 void DeleteFromMsgQTable(ULONG qName);
00045 MSGQ_INFO* MsgQTableLookup(ULONG qName);
00046
00047 #endif