BSB Developer Docs
Loading...
Searching...
No Matches
device_info.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <furi.h>
10#include <toolbox/property.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct DeviceInfo DeviceInfo;
17
21#define RECORD_DEVICE_INFO "device_info"
22
23typedef void (*DeviceInfoCallback)(
24 PropertyValueCallback print_callback,
25 char separator,
26 void* info_context,
27 void* print_context);
28
36void device_info_register_segment(DeviceInfo* dev_info, DeviceInfoCallback callback, void* context);
37
44void device_info_unregister_segment(DeviceInfo* dev_info, DeviceInfoCallback callback);
45
55 DeviceInfo* dev_info,
56 PropertyValueCallback callback,
57 char separator,
58 void* context);
59
60#ifdef __cplusplus
61}
62#endif
void device_info_query(DeviceInfo *dev_info, PropertyValueCallback callback, char separator, void *context)
Query all registered information about the system.
Definition device_info.c:83
void device_info_register_segment(DeviceInfo *dev_info, DeviceInfoCallback callback, void *context)
Register a callback that provides a piece of information about the system.
Definition device_info.c:54
void device_info_unregister_segment(DeviceInfo *dev_info, DeviceInfoCallback callback)
De-register a callback that provides a piece of information about the system.
Definition device_info.c:67
Definition device_info.c:16