PSI sics-cvs-psi-2006

This commit is contained in:
2006-05-08 02:00:00 +00:00
committed by Douglas Clowes
parent ae77364de2
commit 6e926b813f
388 changed files with 445529 additions and 14109 deletions

34
protocol.h Normal file
View File

@@ -0,0 +1,34 @@
/*---------------------------------------------------------------------------
----------------------------------------------------------------------------*/
#ifndef ANSTO_PROTOCOL
#define ANSTO_PROTOCOL
#include <sics.h>
#include <conman.h>
static const int iNumProTags = 2;
static char *pProTags[3] = {
"start",
"finish",
NULL
};
#define esStart -1
#define esFinish -2
/*--------------------- lifecycle -------------------------------------- */
int InstallProtocol(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
void DeleteProtocol(void *pSelf);
/*--------------------- operations --------------------------------------*/
int ProtocolAction(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
/*--------------------- implement protocol sycamore ---------------------*/
int SCWriteSycamore(SConnection *pCon, char *pBuffer, int iOut);
/*--------------------- implement protocol API -----------------------*/
char * GetProtocolName(SConnection *pCon);
int GetProtocolID(SConnection *pCon);
/*-----------------------------------------------------------------------*/
#endif