C++ TargetRTS
Loading...
Searching...
No Matches
endePriv.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __endePriv_h__
11#define __endePriv_h__ included
12
13#ifndef __endeBoth_h__
14#include <endeBoth.h>
15#endif
16
17#ifdef __cplusplus
18extern "C"
19{
20#endif
21
22/*||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
23||
24|| Table lookup typedefs:
25||
26+|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*/
27
28typedef int ( * decoFunc )( TO_bufferInfo *, TO_structInfo * );
29typedef void ( * freeFunc )( TO_structInfo * );
30
31/*||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
32||
33|| PRIVATE! Do Not Use!
34||
35+|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*/
36
37/* Toolset decode: */
38int decResultCo( TO_bufferInfo *, TO_structInfo * );
39int decEvtTargI( TO_bufferInfo *, TO_structInfo * );
40int decEvtPrese( TO_bufferInfo *, TO_structInfo * );
41int decEvtRefer( TO_bufferInfo *, TO_structInfo * );
42int decEvtChain( TO_bufferInfo *, TO_structInfo * );
43int decEvtState( TO_bufferInfo *, TO_structInfo * );
44int decEvtVaria( TO_bufferInfo *, TO_structInfo * );
45int decEvtMsgOu( TO_bufferInfo *, TO_structInfo * );
46int decEvtMsgIn( TO_bufferInfo *, TO_structInfo * );
47int decEvtMsgOI( TO_bufferInfo *, TO_structInfo * );
48int decEvtRtsSt( TO_bufferInfo *, TO_structInfo * );
49int decEvtHisto( TO_bufferInfo *, TO_structInfo * );
50int decEvtMsgQu( TO_bufferInfo *, TO_structInfo * );
51int decEvtChild( TO_bufferInfo *, TO_structInfo * );
52/* Target decode: */
53int decCmdCreDa( TO_bufferInfo *, TO_structInfo * ); /* Create daemon */
54int decCmdUpdDa( TO_bufferInfo *, TO_structInfo * ); /* Update */
55int decCmdCmdDa( TO_bufferInfo *, TO_structInfo * ); /* Command */
56int decCmdRefDa( TO_bufferInfo *, TO_structInfo * ); /* Refresh */
57int decCmdAddAc( TO_bufferInfo *, TO_structInfo * ); /* Add actor */
58int decCmdDelAc( TO_bufferInfo *, TO_structInfo * ); /* Delete */
59int decCmdAddPo( TO_bufferInfo *, TO_structInfo * ); /* Add port */
60int decCmdDelPo( TO_bufferInfo *, TO_structInfo * ); /* Delete */
61int decCmdAddSt( TO_bufferInfo *, TO_structInfo * ); /* Add state */
62int decCmdDelSt( TO_bufferInfo *, TO_structInfo * ); /* Delete */
63int decCmdAddCh( TO_bufferInfo *, TO_structInfo * ); /* Add chain */
64int decCmdDelCh( TO_bufferInfo *, TO_structInfo * ); /* Delete */
65int decCmdAddVa( TO_bufferInfo *, TO_structInfo * ); /* Add variable */
66int decCmdDelVa( TO_bufferInfo *, TO_structInfo * ); /* Delete */
67int decCmdStaVa( TO_bufferInfo *, TO_structInfo * ); /* Start variable monitoring */
68int decCmdStoVa( TO_bufferInfo *, TO_structInfo * ); /* Stop variable monitoring */
69int decCmdSetVa( TO_bufferInfo *, TO_structInfo * ); /* Set variable */
70int decCmdGetVa( TO_bufferInfo *, TO_structInfo * ); /* Get */
71int decCmdInjec( TO_bufferInfo *, TO_structInfo * ); /* Inject Msg */
72int decCmdGetMe( TO_bufferInfo *, TO_structInfo * ); /* Get Msg Queue */
73int decCmdSendToApp( TO_bufferInfo *, TO_structInfo * ); /* Send to app */
74int decCmdGetChildren( TO_bufferInfo *, TO_structInfo * ); /* Get Children */
75
76/* Toolset free: */
77void freeEvtTargI( TO_structInfo * );
78void freeEvtPrese( TO_structInfo * );
79void freeEvtRefer( TO_structInfo * );
80void freeEvtChain( TO_structInfo * );
81void freeEvtState( TO_structInfo * );
82void freeEvtVaria( TO_structInfo * );
83void freeEvtMsgOu( TO_structInfo * );
84void freeEvtMsgIn( TO_structInfo * );
85void freeEvtMsgOI( TO_structInfo * );
86void freeEvtHisto( TO_structInfo * );
87void freeEvtMsgQu( TO_structInfo * );
88void freeEvtChild( TO_structInfo * );
89/* Target free: */
90void freeCmdDaemo( TO_structInfo * );
91void freeCmdActor( TO_structInfo * );
92void freeCmdPort ( TO_structInfo * );
93void freeCmdState( TO_structInfo * );
94void freeCmdChain( TO_structInfo * );
95void freeCmdAdDeV( TO_structInfo * );
96void freeCmdSeGeV( TO_structInfo * );
97void freeCmdInjec( TO_structInfo * );
98void freeCmdGetMe( TO_structInfo * );
99void freeCmdSendToApp( TO_structInfo * );
100void freeCmdGetChildren( TO_structInfo * );
101void freeCmdDelAll( TO_structInfo * );
102
103void freeStr( char * );
104
105/*----------------------------------------------------------------------------
106| Common decoding functions:
107+---------------------------------------------------------------------------*/
108
109/*--- Basic decoding - Int, Str, Func: -------------------------------------*/
110
111int doDecodeInt( TO_bufferInfo *, int * pIntValue );
112int doDecodeStr( TO_bufferInfo *, char ** pStrValue );
113
114/*--- Semi-special decoding: -----------------------------------------------*/
115
116/*--- Decoding data struct initialization: ---------------------------------*/
117
118void * initStructInfo( TO_structInfo *, int type );
119
120/*----------------------------------------------------------------------------
121| Common encoding functions:
122+---------------------------------------------------------------------------*/
123
124/*--- Basic encoding - Int, Str, Func: -------------------------------------*/
125
126int doEncodeInt( TO_bufferInfo *, int value );
127int doEncodeStr( TO_bufferInfo *, const char * value );
128
129/*--- Semi-special encoding: -----------------------------------------------*/
130
131int doEncodeTimeStamp ( TO_bufferInfo *, const TO_timeStamp * );
132int doEncodeMessage ( TO_bufferInfo *, const TO_message * );
133
134int doEncodeFuncDaemon( TO_bufferInfo *, int func, const TO_daemonInfo * );
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif // __endePriv_h__
Definition: endeBoth.h:351
Definition: endeBoth.h:144
Definition: endeBoth.h:156
Definition: endeBoth.h:360
Definition: endeBoth.h:138