Statistics
| Revision:

root / logic / trunk / src / init / devicelist.h @ 41

History | View | Annotate | Download (785 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 40 Janez1
device *getDevice1(char *devName);
20
device *getDevice2(device *dev);
21 34 Janez1
device *getAvailableDevice(device *dev);
22 40 Janez1
int     getLocalFormattedTime();
23 34 Janez1
24 10 Janez1
/*
25
void updateDeviceList(device_d *deviceList); // called on HMI change
26
char *getDeviceName();
27
char *getDeviceID();
28
?    requestDeviceUpdate(); //HMI naj nastavi parametre napravi
29
/**/
30
//check status?
31
32
#endif // DEVICELIST_H_INCLUDED