#include <swapi_utils.h>
Data Fields | |
char * | name |
int | type |
int | size |
int * | id |
void * | value |
enum stat_update | update_mode |
You can automatically initialize a variable if you set the configuration in this structure. The id of the initialized variable is stored in the id pointer and you can also initialize the variable with a value if the pointer value is set to any non-NULL value.
Set update_mode to READ to automatically read the contents of the variable at the beggining of every timeslot (with the contents at value with fixed length size).
Set update_mode to WRITE to automatically set the contents of the variable at the end of every timeslot (with the contents at value with fixed length size).
char* utils_stat::name |
Name of the variable