- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
32
protocol.h
32
protocol.h
@ -7,30 +7,30 @@
|
||||
|
||||
static const int iNumProTags = 2;
|
||||
static char *pProTags[3] = {
|
||||
"start",
|
||||
"finish",
|
||||
NULL
|
||||
"start",
|
||||
"finish",
|
||||
NULL
|
||||
};
|
||||
|
||||
#define esStart -1
|
||||
#define esFinish -2
|
||||
|
||||
|
||||
/*--------------------- lifecycle -------------------------------------- */
|
||||
int InstallProtocol(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[]);
|
||||
int InstallProtocol(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int argc, char *argv[]);
|
||||
void DeleteProtocol(void *pSelf);
|
||||
void MakeProtocol(SicsInterp *pSics);
|
||||
|
||||
void MakeProtocol(SicsInterp * pSics);
|
||||
|
||||
/*--------------------- operations --------------------------------------*/
|
||||
int ProtocolAction(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[]);
|
||||
int ProtocolAction(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int argc, char *argv[]);
|
||||
/*--------------------- implement protocol sycamore ---------------------*/
|
||||
int SCWriteSycamore(SConnection *pCon, char *pBuffer, int iOut);
|
||||
int SCWriteSycamore(SConnection * pCon, char *pBuffer, int iOut);
|
||||
|
||||
/*--------------------- implement protocol API -----------------------*/
|
||||
char * GetProtocolName(SConnection *pCon);
|
||||
int GetProtocolID(SConnection *pCon);
|
||||
int ProtocolGet(SConnection* pCon, void* pData, char *pProName, int len);
|
||||
writeFunc GetProtocolWriteFunc(SConnection *pCon);
|
||||
char *GetProtocolName(SConnection * pCon);
|
||||
int GetProtocolID(SConnection * pCon);
|
||||
int ProtocolGet(SConnection * pCon, void *pData, char *pProName, int len);
|
||||
writeFunc GetProtocolWriteFunc(SConnection * pCon);
|
||||
/*-----------------------------------------------------------------------*/
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user