- Added messagepipe.c
- Added initial version of sicsget. This is a more generalised way of reading and writing SICS data wherever it is. The thing is extendable if reading something the current way is to slow. This has both a C interface and an interpreter interface.
This commit is contained in:
30
sicsget.h
Normal file
30
sicsget.h
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* This is a generalized SICS get/put routine. It tries to hard to match a name
|
||||
* with the data.
|
||||
*
|
||||
* copyright: see file COPYRIGHT
|
||||
*
|
||||
*/
|
||||
#ifndef __SICSGET
|
||||
#define __SICSGET
|
||||
#include <hipadaba.h>
|
||||
|
||||
/**
|
||||
* Get a SICS value
|
||||
* @param name The name of the value to get
|
||||
* @param v The output hdbValue
|
||||
* @return 1 on success, 0 on failure
|
||||
*/
|
||||
int sget(char *name, hdbValue *v);
|
||||
/**
|
||||
* Put a SICS value
|
||||
* @param name The name of the value to write to
|
||||
* @param v The hdbValue to write
|
||||
* @return 1 on success, 0 on failure
|
||||
*/
|
||||
int sput(char *name, hdbValue v);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user