Furi: record API.
More...
#include <stdbool.h>
#include "core_defines.h"
Go to the source code of this file.
◆ furi_record_close()
void furi_record_close |
( |
const char * | name | ) |
|
Close record.
- Parameters
-
- Note
- Thread safe. Open and close must be executed from the same thread.
◆ furi_record_create()
void furi_record_create |
( |
const char * | name, |
|
|
void * | data ) |
Create record.
- Parameters
-
name | record name |
data | data pointer |
- Note
- Thread safe. Create and destroy must be executed from the same thread.
◆ furi_record_destroy()
bool furi_record_destroy |
( |
const char * | name | ) |
|
Destroy record.
- Parameters
-
- Returns
- true if successful, false if still have holders or thread is not owner.
- Note
- Thread safe. Create and destroy must be executed from the same thread.
◆ furi_record_exists()
bool furi_record_exists |
( |
const char * | name | ) |
|
Check if record exists.
- Parameters
-
- Note
- Thread safe. Create and destroy must be executed from the same thread.
◆ furi_record_open()
FURI_RETURNS_NONNULL void * furi_record_open |
( |
const char * | name | ) |
|
Open record.
- Parameters
-
- Returns
- pointer to the record
- Note
- Thread safe. Open and close must be executed from the same thread. Suspends caller thread till record is available