Statistics
| Revision:

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

History | View | Annotate | Download (785 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 *getDevice1(char *devName);
20
device *getDevice2(device *dev);
21
device *getAvailableDevice(device *dev);
22
int     getLocalFormattedTime();
23

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