2018-02-08 15:42:49 +01:00
|
|
|
#ifndef DEVICE_H
|
|
|
|
#define DEVICE_H
|
|
|
|
|
2019-03-02 23:52:22 +01:00
|
|
|
#include <stdbool.h>
|
2018-02-08 15:42:49 +01:00
|
|
|
|
2019-09-29 22:36:56 +02:00
|
|
|
#include "config.h"
|
2021-01-08 19:15:29 +01:00
|
|
|
#include "coords.h"
|
2019-11-24 11:53:00 +01:00
|
|
|
#include "util/net.h"
|
2018-02-08 15:42:49 +01:00
|
|
|
|
|
|
|
#define DEVICE_NAME_FIELD_LENGTH 64
|
|
|
|
|
|
|
|
// name must be at least DEVICE_NAME_FIELD_LENGTH bytes
|
2019-03-02 23:52:22 +01:00
|
|
|
bool
|
2019-05-31 16:08:30 +02:00
|
|
|
device_read_info(socket_t device_socket, char *device_name, struct size *size);
|
2018-02-08 15:42:49 +01:00
|
|
|
|
|
|
|
#endif
|