29 lines
405 B
C
Raw Normal View History

2024-07-27 15:31:17 +02:00
/**
* Device name management
*/
#pragma once
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Generate random device name, if not existent
*/
2024-07-27 16:15:35 +02:00
bool dev_generate_name();
2024-07-27 15:31:17 +02:00
/**
* Get current device name. This value MUST be freed after usage
*
* @return NULL if no name was already defined.
*/
char *dev_name();
#ifdef __cplusplus
}
#endif