root / logic / trunk / src / init / devicelist.h @ 73
History | View | Annotate | Download (755 Bytes)
1 | 10 | Janez1 | #ifndef DEVICELIST_H_INCLUDED
|
---|---|---|---|
2 | #define DEVICELIST_H_INCLUDED
|
||
3 | |||
4 | typedef struct device_d |
||
5 | { |
||
6 | char *name;
|
||
7 | char *id;
|
||
8 | 19 | Janez1 | int readitv; //in seconds |
9 | 10 | Janez1 | char *action;
|
10 | char *param;
|
||
11 | 34 | Janez1 | int buf;
|
12 | int running;
|
||
13 | 10 | Janez1 | struct device_d *nxt;
|
14 | 25 | Janez1 | } device; |
15 | 10 | Janez1 | |
16 | 40 | Janez1 | int setNewDeviceList(); // ony called on startup |
17 | int getNumberOfDevices();
|
||
18 | 34 | Janez1 | device *getDevice(device *dev, char *devName);
|
19 | device *getAvailableDevice(device *dev); |
||
20 | 40 | Janez1 | int getLocalFormattedTime();
|
21 | 60 | Janez1 | int deleteDeviceList(device *dev);
|
22 | 10 | Janez1 | /*
|
23 | void updateDeviceList(device_d *deviceList); // called on HMI change
|
||
24 | char *getDeviceName();
|
||
25 | char *getDeviceID();
|
||
26 | ? requestDeviceUpdate(); //HMI naj nastavi parametre napravi
|
||
27 | /**/
|
||
28 | //check status?
|
||
29 | |||
30 | #endif // DEVICELIST_H_INCLUDED |