Files
sics/sicsdata.h
Ferdi Franceschini 3168325921 PSI update
r1464 | ffr | 2007-02-12 12:20:21 +1100 (Mon, 12 Feb 2007) | 2 lines
2012-11-15 12:58:05 +11:00

49 lines
1.3 KiB
C

/*---------------------------------------------------------------------
S I C S D A T A
An attempt to a generic interface to SICS data for all sorts of SICS
clients.
copyright: see file COPYRIGHT
Mark Koennecke, June 2003
----------------------------------------------------------------------*/
#ifndef SICSDATA
#define SICSDATA
#define INTTYPE 0
#define FLOATTYPE 1
typedef struct {
pObjectDescriptor pDes;
int *data;
char *dataType;
int dataUsed;
int currentDataSize;
} SICSData, *pSICSData;
/*------------------------------------------------------------------*/
int *getSICSDataPointer(pSICSData self, int start, int end);
pSICSData createSICSData(void);
void assignSICSType(pSICSData self, int start, int end, int type);
int SICSDataFactory(SConnection * pCon, SicsInterp * pSics,
void *pData, int argc, char *argv[]);
int SICSDataAction(SConnection * pCon, SicsInterp * pSics,
void *pData, int argc, char *argv[]);
void clearSICSData(pSICSData self);
int getSICSDataInt(pSICSData self, int pos, int *value);
int getSICSDataFloat(pSICSData self, int pos, float *value);
int setSICSDataInt(pSICSData self, int pos, int value);
int setSICSDataFloat(pSICSData self, int pos, float value);
#endif