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