Revision 25
logic/trunk/src/init/devicelist.c | ||
---|---|---|
49 | 49 |
curr->id = (char *)malloc(sizeof(node->value.element.attrs->value)); |
50 | 50 |
strcpy(curr->id, node->value.element.attrs->value); |
51 | 51 |
printf("id:\t %s\n", curr->id ); |
52 |
|
|
52 |
/* |
|
53 | 53 |
// getting data for individual device |
54 | 54 |
mxml_node_t *mxml_deviceNode; |
55 | 55 |
mxml_deviceNode=node->child; |
... | ... | |
98 | 98 |
//delete obsolete xml tree |
99 | 99 |
mxmlDelete(tree); |
100 | 100 |
mxmlDelete(node); |
101 |
//*
|
|
101 |
/* |
|
102 | 102 |
// TODO delete - test |
103 | 103 |
hDevice=head; |
104 | 104 |
curr=head; |
105 | 105 |
printf("test device list\n"); |
106 |
/* |
|
107 | 106 |
// DEBUG |
108 | 107 |
while(curr) |
109 | 108 |
{ |
logic/trunk/src/init/devicelist.h | ||
---|---|---|
19 | 19 |
d_bufr *buf; |
20 | 20 |
//TODO add circular buffer for each device |
21 | 21 |
struct device_d *nxt; |
22 |
}device; |
|
22 |
} device;
|
|
23 | 23 |
|
24 | 24 |
int setNewDeviceList(); // ony called on startup |
25 | 25 |
/* |
Also available in: Unified diff