jsfw/client.h

30 lines
552 B
C
Raw Normal View History

2022-08-30 17:54:56 -05:00
// vi:ft=c
#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 12:41:17 -05:00
char *tag;
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;
2023-03-18 12:41:17 -05:00
} ClientSlot;
typedef struct {
ClientSlot *slots;
size_t slot_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