Imported Upstream version 2.4.3

This commit is contained in:
arnaud.quette@free.fr 2010-03-26 00:20:59 +01:00
commit 26fb71b504
446 changed files with 148951 additions and 0 deletions

26
include/extstate.h Normal file
View file

@ -0,0 +1,26 @@
/* external state structures used by things like upsd */
#ifndef EXTSTATE_H_SEEN
#define EXTSTATE_H_SEEN 1
/* this could be made dynamic if someone really needs more than this... */
#define ST_MAX_VALUE_LEN 256
/* state tree flags */
#define ST_FLAG_RW 0x0001
#define ST_FLAG_STRING 0x0002
#define ST_FLAG_IMMUTABLE 0x0004
/* list of possible ENUM values */
struct enum_t {
char *val;
struct enum_t *next;
};
/* list of instant commands */
struct cmdlist_t {
char *name;
struct cmdlist_t *next;
};
#endif /* EXTSTATE_H_SEEN */