36 |
/** Parameter value type. */ |
/** Parameter value type. */ |
37 |
typedef enum _lscp_type_t |
typedef enum _lscp_type_t |
38 |
{ |
{ |
39 |
LSCP_TYPE_NONE = 0, |
LSCP_TYPE_NONE = 0, |
40 |
LSCP_TYPE_BOOL, |
LSCP_TYPE_BOOL, |
41 |
LSCP_TYPE_INT, |
LSCP_TYPE_INT, |
42 |
LSCP_TYPE_FLOAT, |
LSCP_TYPE_FLOAT, |
43 |
LSCP_TYPE_STRING |
LSCP_TYPE_STRING |
44 |
|
|
45 |
} lscp_type_t; |
} lscp_type_t; |
46 |
|
|
48 |
/** Common and simple key/value pair parameter tuple. */ |
/** Common and simple key/value pair parameter tuple. */ |
49 |
typedef struct _lscp_param_t |
typedef struct _lscp_param_t |
50 |
{ |
{ |
51 |
char * key; |
char * key; |
52 |
char * value; |
char * value; |
53 |
|
|
54 |
} lscp_param_t; |
} lscp_param_t; |
55 |
|
|
57 |
/** Common parameter info cache struct. */ |
/** Common parameter info cache struct. */ |
58 |
typedef struct _lscp_param_info_t |
typedef struct _lscp_param_info_t |
59 |
{ |
{ |
60 |
lscp_type_t type; |
lscp_type_t type; |
61 |
char * description; |
char * description; |
62 |
int mandatory; |
int mandatory; |
63 |
int fix; |
int fix; |
64 |
int multiplicity; |
int multiplicity; |
65 |
char ** depends; |
char ** depends; |
66 |
char * defaultv; |
char * defaultv; |
67 |
char * range_min; |
char * range_min; |
68 |
char * range_max; |
char * range_max; |
69 |
char ** possibilities; |
char ** possibilities; |
70 |
|
|
71 |
} lscp_param_info_t; |
} lscp_param_info_t; |
72 |
|
|
74 |
/** Common driver type info cache struct. */ |
/** Common driver type info cache struct. */ |
75 |
typedef struct _lscp_driver_info_t |
typedef struct _lscp_driver_info_t |
76 |
{ |
{ |
77 |
char * description; |
char * description; |
78 |
char * version; |
char * version; |
79 |
char ** parameters; |
char ** parameters; |
80 |
|
|
81 |
} lscp_driver_info_t; |
} lscp_driver_info_t; |
82 |
|
|
84 |
/** Common device info cache struct. */ |
/** Common device info cache struct. */ |
85 |
typedef struct _lscp_device_info_t |
typedef struct _lscp_device_info_t |
86 |
{ |
{ |
87 |
char * driver; |
char * driver; |
88 |
lscp_param_t *params; |
lscp_param_t *params; |
89 |
|
|
90 |
} lscp_device_info_t; |
} lscp_device_info_t; |
91 |
|
|
93 |
/** Common device channel/port info cache struct. */ |
/** Common device channel/port info cache struct. */ |
94 |
typedef struct _lscp_device_port_info_t |
typedef struct _lscp_device_port_info_t |
95 |
{ |
{ |
96 |
char * name; |
char * name; |
97 |
lscp_param_t *params; |
lscp_param_t *params; |
98 |
|
|
99 |
} lscp_device_port_info_t; |
} lscp_device_port_info_t; |
100 |
|
|