BSB Developer Docs
Loading...
Searching...
No Matches
device_info.h File Reference

Device Info service. More...

#include <furi.h>
#include <toolbox/property.h>

Go to the source code of this file.

Macros

#define RECORD_DEVICE_INFO   "device_info"
 Type DeviceInfo*
 

Typedefs

typedef struct DeviceInfo DeviceInfo
 
typedef void(* DeviceInfoCallback) (PropertyValueCallback print_callback, char separator, void *info_context, void *print_context)
 

Functions

void device_info_register_segment (DeviceInfo *dev_info, DeviceInfoCallback callback, void *context)
 Register a callback that provides a piece of information about the system.
 
void device_info_unregister_segment (DeviceInfo *dev_info, DeviceInfoCallback callback)
 De-register a callback that provides a piece of information about the system.
 
void device_info_query (DeviceInfo *dev_info, PropertyValueCallback callback, char separator, void *context)
 Query all registered information about the system.
 

Detailed Description

Device Info service.

Aggregates info publishers and provides access to them to info queriers.

Function Documentation

◆ 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_infoDevice info service
[in]callbackFunction that will be called for each key-value pair of system information
[in]separatorPlaced in between parts of the key
[in,out]contextPassed 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_infoDevice info service
[in]callbackFunction that will be called when system information is requested
[in,out]contextPassed 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_infoDevice info service
[in]callbackFunction that will no longer be called when system information is requested