- 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:
koennecke
2013-11-07 08:42:32 +00:00
parent d7311c6f68
commit 57b6dce6bf
6 changed files with 781 additions and 1 deletions

30
sicsget.h Normal file
View 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