controller-legacy/models/controller.h
Tobias Reisinger d8ad2c205a init
2019-11-15 01:23:43 +01:00

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