Revision 24 logic/trunk/src/init/devicelist.c
devicelist.c | ||
---|---|---|
48 | 48 |
|
49 | 49 |
curr->id = (char *)malloc(sizeof(node->value.element.attrs->value)); |
50 | 50 |
strcpy(curr->id, node->value.element.attrs->value); |
51 |
printf("id:\t %s\n", curr->id ); |
|
51 | 52 |
|
52 | 53 |
// getting data for individual device |
53 | 54 |
mxml_node_t *mxml_deviceNode; |
... | ... | |
56 | 57 |
curr->name = (char *)malloc(sizeof(mxml_deviceNode->value.element.attrs->value)); |
57 | 58 |
strcpy(curr->name, mxml_deviceNode->value.element.attrs->value); |
58 | 59 |
mxml_deviceNode= mxml_deviceNode->next; |
60 |
printf("name:\t %s\n", curr->name ); |
|
59 | 61 |
|
60 | 62 |
curr->readitv = atoi(mxml_deviceNode->value.element.attrs->value); |
61 | 63 |
mxml_deviceNode= mxml_deviceNode->next; |
64 |
printf("readitv:\t %d s\n", curr->readitv ); |
|
62 | 65 |
|
63 | 66 |
curr->action = (char *)malloc(sizeof(mxml_deviceNode->value.element.attrs->value)); |
64 | 67 |
strcpy(curr->action, mxml_deviceNode->value.element.attrs->value); |
65 | 68 |
mxml_deviceNode= mxml_deviceNode->next; |
69 |
printf("action:\t %s\n", curr->action ); |
|
66 | 70 |
|
67 | 71 |
curr->param = (char *)malloc(sizeof(mxml_deviceNode->value.element.attrs->value)); |
68 | 72 |
strcpy(curr->param, mxml_deviceNode->value.element.attrs->value); |
73 |
printf("param:\t %s\n", curr->param ); |
|
74 |
|
|
69 | 75 |
// done |
70 | 76 |
/* |
77 |
// TA DEL KODE V TEM KOMENTARJU NE BO UPORABLJEN, IGNORE! |
|
71 | 78 |
// TODO create buffer |
72 | 79 |
curr->buf = init_buf((int)(HISTORY_LENGTH/curr->readitv)); |
73 | 80 |
// -------------- buffer test-----------------------------! |
Also available in: Unified diff