Device Info service.
More...
#include <furi.h>
#include <toolbox/property.h>
Go to the source code of this file.
|
|
#define | RECORD_DEVICE_INFO "device_info" |
| | Type DeviceInfo*
|
| |
|
|
typedef struct DeviceInfo | DeviceInfo |
| |
|
typedef void(* | DeviceInfoCallback) (PropertyValueCallback print_callback, char separator, void *info_context, void *print_context) |
| |
Device Info service.
Aggregates info publishers and provides access to them to info queriers.
◆ device_info_query()
| void device_info_query |
( |
DeviceInfo * | dev_info, |
|
|
PropertyValueCallback | callback, |
|
|
char | separator, |
|
|
void * | context ) |
Query all registered information about the system.
- Parameters
-
| [in,out] | dev_info | Device info service |
| [in] | callback | Function that will be called for each key-value pair of system information |
| [in] | separator | Placed in between parts of the key |
| [in,out] | context | Passed verbatim to callback parameter. May be NULL. |
◆ device_info_register_segment()
| void device_info_register_segment |
( |
DeviceInfo * | dev_info, |
|
|
DeviceInfoCallback | callback, |
|
|
void * | context ) |
Register a callback that provides a piece of information about the system.
- Parameters
-
| [in,out] | dev_info | Device info service |
| [in] | callback | Function that will be called when system information is requested |
| [in,out] | context | Passed verbatim to callback parameter. May be NULL. |
◆ device_info_unregister_segment()
| void device_info_unregister_segment |
( |
DeviceInfo * | dev_info, |
|
|
DeviceInfoCallback | callback ) |
De-register a callback that provides a piece of information about the system.
- Parameters
-
| [in,out] | dev_info | Device info service |
| [in] | callback | Function that will no longer be called when system information is requested |