Statistics
| Revision:

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

History | View | Annotate | Download (696 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
    //d_bufr  *buf;
12
    int     buf;
13
    int     running;
14
    struct  device_d *nxt;
15
} device;
16

    
17
int setNewDeviceList(); // ony called on startup
18
int getNumberOfDevices();
19
device *getDevice(device *dev, char *devName);
20
device *getAvailableDevice(device *dev);
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