Statistics
| Revision:

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

History | View | Annotate | Download (717 Bytes)

1
#ifndef DEVICELIST_H_INCLUDED
2
#define DEVICELIST_H_INCLUDED
3

    
4
typedef struct device_d
5
{
6
    char    *name;
7
    char    *id;
8
    int     readitv; //in seconds
9
    char    *action;
10
    char    *param;
11
    int     buf;
12
    int     running;
13
    struct  device_d *nxt;
14
} device;
15

    
16
int     setNewDeviceList(); // ony called on startup
17
int     getNumberOfDevices();
18
device *getDevice(device *dev, char *devName);
19
device *getAvailableDevice(device *dev);
20
int     getLocalFormattedTime();
21

    
22
/*
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