- Adapted indenation to new agreed upon system

- Added support for second generation scriptcontext based counter
This commit is contained in:
koennecke
2009-02-13 09:00:03 +00:00
parent a3dcad2bfa
commit 91d4af0541
405 changed files with 88101 additions and 88173 deletions

60
obpar.h
View File

@ -21,53 +21,53 @@
----------------------------------------------------------------------------*/
#ifndef SICSARPAR
#define SICSARPAR
typedef struct {
char *name;
float fVal;
int iCode;
} ObPar;
typedef struct {
char *name;
float fVal;
int iCode;
} ObPar;
/* quick access internally, self is the ObPar array, i is the parameter
number, nice to have defines for some, better than handling ints
*/
float ObVal(ObPar *self, int i);
*/
float ObVal(ObPar * self, int i);
int ObParLength(ObPar *self);
int ObParLength(ObPar * self);
/*
finds the length of an ObPar array
*/
ObPar *ObParFind(ObPar *self, char *name);
finds the length of an ObPar array
*/
ObPar *ObParFind(ObPar * self, char *name);
/*
finds a ObPar struct for a name, return NULL if none
*/
int ObParIndex(ObPar *self, char *name);
int ObParIndex(ObPar * self, char *name);
/*
finds an index for name in self. Returns -1 on failure
*/
finds an index for name in self. Returns -1 on failure
*/
int ObParInit(ObPar *self,int i, char *name, float fVal, int iCode);
int ObParInit(ObPar * self, int i, char *name, float fVal, int iCode);
/*
sets a ObPar entry. self is a pointer to the array
*/
int ObParSet(ObPar *self, char *obname,char *name, float fVal, SConnection *pCon);
sets a ObPar entry. self is a pointer to the array
*/
int ObParSet(ObPar * self, char *obname, char *name, float fVal,
SConnection * pCon);
/*
checks if the connections permissions are alright and changes value
if so. Returns 1 on success, 0 on failure. Prints errors directly to
pCon. The parameter obmane is the name of the object the parameters belong
to. Needed for error printing. name is the parameter name, fVal the new
value.
*/
void ObParDelete(ObPar *self);
*/
void ObParDelete(ObPar * self);
/*
Deletes an ObPar array
*/
ObPar *ObParCreate(int iArrayLong);
/*
creates an array with iArrayLong entries
*/
#endif
*/
ObPar *ObParCreate(int iArrayLong);
/*
creates an array with iArrayLong entries
*/
#endif