2023-09-01 05:57:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2024-01-28 03:45:33 +00:00
|
|
|
#include <furi_hal_rtc.h>
|
2023-09-01 05:57:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Generates detailed/random name based on furi_hal flags
|
|
|
|
*
|
|
|
|
* @param name buffer to write random name
|
|
|
|
* @param max_name_size length of given buffer
|
|
|
|
* @param[in] prefix The prefix of the name
|
|
|
|
*/
|
|
|
|
void name_generator_make_auto(char* name, size_t max_name_size, const char* prefix);
|
2024-01-28 03:45:33 +00:00
|
|
|
void name_generator_make_auto_datetime(
|
|
|
|
char* name,
|
|
|
|
size_t max_name_size,
|
|
|
|
const char* prefix,
|
2024-02-15 11:08:10 +00:00
|
|
|
DateTime* custom_time);
|
2023-09-01 05:57:49 +00:00
|
|
|
|
2024-03-15 06:33:27 +00:00
|
|
|
// Generate name without prefix in random names
|
|
|
|
void name_generator_make_auto_basic(char* name, size_t max_name_size, const char* prefix);
|
|
|
|
|
2023-09-01 05:57:49 +00:00
|
|
|
/** Generates random name
|
|
|
|
*
|
|
|
|
* @param name buffer to write random name
|
|
|
|
* @param max_name_size length of given buffer
|
2024-01-28 03:45:33 +00:00
|
|
|
* @param[in] prefix The prefix of the name
|
2023-09-01 05:57:49 +00:00
|
|
|
*/
|
|
|
|
void name_generator_make_random(char* name, size_t max_name_size);
|
2024-01-28 03:45:33 +00:00
|
|
|
void name_generator_make_random_prefixed(char* name, size_t max_name_size, const char* prefix);
|
2023-09-01 05:57:49 +00:00
|
|
|
|
|
|
|
/** Generates detailed name
|
|
|
|
*
|
|
|
|
* @param name buffer to write random name
|
|
|
|
* @param max_name_size length of given buffer
|
|
|
|
* @param[in] prefix The prefix of the name
|
|
|
|
*/
|
|
|
|
void name_generator_make_detailed(char* name, size_t max_name_size, const char* prefix);
|
2024-01-28 03:45:33 +00:00
|
|
|
void name_generator_make_detailed_datetime(
|
|
|
|
char* name,
|
|
|
|
size_t max_name_size,
|
|
|
|
const char* prefix,
|
2024-02-15 11:08:10 +00:00
|
|
|
DateTime* custom_time);
|
2023-09-01 05:57:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|