1
/**************************************************************************
2
*** COPYRIGHT (c) 2002 by TransNexus, Inc. ***
4
*** This software is property of TransNexus, Inc. ***
5
*** This software is freely available under license from TransNexus. ***
6
*** The license terms and conditions for free use of this software by ***
7
*** third parties are defined in the OSP Toolkit Software License ***
8
*** Agreement (LICENSE.txt). Any use of this software by third ***
9
*** parties, which does not comply with the terms and conditions of the ***
10
*** OSP Toolkit Software License Agreement is prohibited without ***
11
*** the prior, express, written consent of TransNexus, Inc. ***
13
*** Thank you for using the OSP ToolKit(TM). Please report any bugs, ***
14
*** suggestions or feedback to support@transnexus.com ***
16
**************************************************************************/
25
* ospmsgque.h - Structures and prototypes for message queue object.
31
#include "osp/ospmsginfo.h"
33
#define OSPPMsgQueueGetCondVar(ospvMsgQueue) (ospvMsgQueue)->CondVar
35
/*-------------------------------------------*/
36
/* message queue typedef */
37
/*-------------------------------------------*/
38
typedef struct _OSPTMSGQUEUE
40
unsigned NumberOfTransactions;
43
OSPTMSGINFO *MsgInfoList;
51
int OSPPMsgQueueNew(OSPTMSGQUEUE **);
52
void OSPPMsgQueueDelete(OSPTMSGQUEUE **);
53
int OSPPMsgQueueAddTransaction(OSPTMSGQUEUE *, OSPTMSGINFO *);
54
void OSPPMsgQueueIncrementNumberOfTransactions(OSPTMSGQUEUE *);
55
void OSPPMsgQueueDecrementNumberOfTransactions(OSPTMSGQUEUE *);
56
int OSPPMsgQueueGetNumberOfTransactions(OSPTMSGQUEUE *, unsigned *);