2022-08-30 17:54:56 -05:00
|
|
|
// vi:ft=c
|
2022-08-31 11:54:14 -05:00
|
|
|
#ifndef CLIENT_H_
|
|
|
|
#define CLIENT_H_
|
2022-08-30 11:45:53 -05:00
|
|
|
#include <stdint.h>
|
2022-10-07 18:36:53 -05:00
|
|
|
#include <time.h>
|
2022-08-29 17:27:03 -05:00
|
|
|
|
2022-10-07 18:36:53 -05:00
|
|
|
void client_run(char *address, uint16_t port, char *config_path);
|
|
|
|
|
|
|
|
typedef struct {
|
2023-03-18 10:31:33 -05:00
|
|
|
char **tags;
|
|
|
|
size_t tag_count;
|
2022-10-07 18:36:53 -05:00
|
|
|
int32_t device_vendor;
|
|
|
|
int32_t device_product;
|
|
|
|
char *device_name;
|
|
|
|
} ClientController;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ClientController *controllers;
|
2022-10-12 15:28:50 -05:00
|
|
|
size_t controller_count;
|
2022-10-07 18:36:53 -05:00
|
|
|
|
|
|
|
char *fifo_path;
|
|
|
|
struct timespec retry_delay;
|
|
|
|
} ClientConfig;
|
2022-08-29 17:27:03 -05:00
|
|
|
|
|
|
|
#endif
|