Loading...
Searching...
No Matches
property.h
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#include <stdbool.h>
8#include <core/string.h>
9
17typedef void (*PropertyValueCallback)(const char* key, const char* value, bool last, void* context);
18
19typedef struct {
22 PropertyValueCallback out;
23 char sep;
24 bool last;
25 void* context;
27
35void property_value_out(PropertyValueContext* ctx, const char* fmt, unsigned int nparts, ...);
36
37#ifdef __cplusplus
38}
39#endif
Furi string container.
Definition string.c:4
Definition property.h:19
void * context
user-defined context, passed through to out callback
Definition property.h:25
FuriString * value
value string buffer, must be initialised before use
Definition property.h:21
bool last
flag to indicate last element
Definition property.h:24
FuriString * key
key string buffer, must be initialised before use
Definition property.h:20
PropertyValueCallback out
output callback function
Definition property.h:22
char sep
separator character between key parts
Definition property.h:23