28 lines
No EOL
464 B
C
28 lines
No EOL
464 B
C
#ifndef CONTROLLER_CONTROLLER_H
|
|
#define CONTROLLER_CONTROLLER_H
|
|
|
|
#include <uuid/uuid.h>
|
|
#include <stdint.h>
|
|
|
|
#include <config.h>
|
|
#include <models/relay.h>
|
|
|
|
typedef struct controller {
|
|
uuid_t uuid;
|
|
char name[CONTROLLER_NAME_LENGTH];
|
|
uint16_t port;
|
|
uint8_t relay_count;
|
|
relay **relays;
|
|
|
|
} controller;
|
|
|
|
controller*
|
|
controller_create(void);
|
|
|
|
controller*
|
|
controller_read(void);
|
|
|
|
int
|
|
controller_save(controller* ci);
|
|
|
|
#endif //CONTROLLER_CONTROLLER_H
|