SELKIELogger  1.0.0
LoggerDMap.h File Reference
#include "Logger.h"
Include dependency graph for LoggerDMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

device_callbacks dmap_getCallbacks (const char *source)
 Return device_callbacks structure for specified data source. More...
 
dc_parser dmap_getParser (const char *source)
 Get data source specific configuration handler. More...
 

Detailed Description

Provide runtime access to device specific functions based on defined string IDs

Definition in file LoggerDMap.h.

Function Documentation

◆ dmap_getCallbacks()

device_callbacks dmap_getCallbacks ( const char *  source)

Return device_callbacks structure for specified data source.

Iterate over the global device map, performing a case insensitive comparison between input string and the dmap.tag values.

If a match is found, call the associated device callback function and return the result.

Parameters
[in]sourceNull terminated string to compare against dmap.tag values
Returns
Return value of device callback function or NULLs if no match found

Definition at line 65 of file LoggerDMap.c.

◆ dmap_getParser()

dc_parser dmap_getParser ( const char *  source)

Get data source specific configuration handler.

Iterate over the global device map, performing a case insensitive comparison between input string and the dmap.tag values.

If a match is found, return a pointer to the associated device configuration parser

Parameters
[in]sourceNull terminated string to compare against dmap.tag values
Returns
Return pointer to device configuration parser or NULL if no match found

Definition at line 85 of file LoggerDMap.c.