/[svn]/liblscp/trunk/lscp/device.h
ViewVC logotype

Diff of /liblscp/trunk/lscp/device.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 951 by capela, Sun Sep 24 12:55:48 2006 UTC revision 952 by capela, Tue Nov 28 22:46:32 2006 UTC
# Line 36  extern "C" { Line 36  extern "C" {
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    
# Line 48  typedef enum _lscp_type_t Line 48  typedef enum _lscp_type_t
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    
# Line 57  typedef struct _lscp_param_t Line 57  typedef struct _lscp_param_t
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    
# Line 74  typedef struct _lscp_param_info_t Line 74  typedef struct _lscp_param_info_t
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    
# Line 84  typedef struct _lscp_driver_info_t Line 84  typedef struct _lscp_driver_info_t
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    
# Line 93  typedef struct _lscp_device_info_t Line 93  typedef struct _lscp_device_info_t
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    

Legend:
Removed from v.951  
changed lines
  Added in v.952

  ViewVC Help
Powered by ViewVC