Refactored protocol code to use defined IDs rather then raw integers
This commit is contained in:
@ -15,6 +15,14 @@ static char *pProTags[3] = {
|
||||
#define esStart -1
|
||||
#define esFinish -2
|
||||
|
||||
/*---------------------- protocol defines -------------------------------*/
|
||||
#define PROTSICS 0
|
||||
#define PROTNORM 1
|
||||
#define PROTCODE 2
|
||||
#define PROTJSON 3
|
||||
#define PROTACT 4
|
||||
#define PROTALL 5
|
||||
|
||||
/*--------------------- lifecycle -------------------------------------- */
|
||||
int InstallProtocol(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int argc, char *argv[]);
|
||||
|
Reference in New Issue
Block a user