EVT_ChangeConfigParm

Structure

  typedef struct EVT_ChangeConfigParm {
     int     type;
     char    *name;
     union {
            int    integer;
            int    boolean;
            char  *utf8Str;
            struct {
                   int             size;
                   unsigned char*  data; 
                   } binary;
           } value;
  } EVT_ChangeConfigParm;
  

Fields

type

indicates the type of the configuration parameters data.

Type

Value

EVT_CFG_TYPE_NULL

0

EVT_CFG_TYPE_BINARY

1

EVT_CFG_TYPE_INT

2

EVT_CFG_TYPE_STRING

3

EVT_CFG_TYPE_BOOLEAN

4

name

name of the configuration parameter.

integer

If the value of type is EVT_CFG_TYPE_INT, this contains the integer value of the configuration parameter. This value is accessed using a pointer to the integer, such as data -> value.integer.

boolean

If the value of type is EVT_CFG_TYPE_BOOLEAN, this contains the boolean value of the configuration parameter (0 = false, 1 = true). This value is accessed using a pointer to the boolean, such as data -> value.boolean.

utf8str

If the value of type is EVT_CFG_TYPE_STRING, this contains a pointer to the utf-8 string value of the configuration parameter. This value is accessed using a pointer to the string, such as data -> value.utf8str.

size

If the value of type is EVT_CFG_TYPE_BINARY, this contains the number of bytes in the value of the configuration parameter. This value is accessed using a pointer to the size, such as data -> value.binary.size.

data

If the value of type is EVT_CFG_TYPE_BINARY, this contains a pointer to an arry of the bytes in the value of the configuration parameter. This value is accessed using a pointer to the array, such as data -> value.binary.data.