controller-legacy/models/controller.h

28 lines
464 B
C
Raw Normal View History

2019-11-15 00:23:43 +00:00
#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