builder.h

// SPDX-License-Identifier: MIT

elosRpnFilterResultE_t elosEventFilterBuilderCompile(elosRpnFilterBuilder_t *data)
[source]

Function: elosEventFilterBuilderCompile

Description: Converts tokens into fast to use instructions that

are validated by elosEventFilterBuilderFinalize() used later by elosEventFilterExecute().

Info: Used internally by elosEventFilterCreate(),

shouldn’t be called directly in normal use cases.

Input: Pointer to existing elosRpnFilterBuilder_t

Return: - FILTER_RESULT_OK on success,
  • FILTER_RESULT_ERROR on failure.

elosRpnFilterResultE_t elosEventFilterBuilderFinalize(elosRpnFilterBuilder_t *data, elosRpnFilter_t *filter)
[source]

Function: elosEventFilterBuilderFinalize

Description: Checks the results from elosEventFilterBuilderCompile()

for errors and copies the results into a elosRpnFilter_t structure that can be used by elosEventFilterExecute().

Info: Used internally by elosEventFilterCreate(),

shouldn’t be called directly in normal use cases.

Input: Pointers to existing elosRpnFilterBuilder_t

and elosRpnFilter_t structures.

Return: - FILTER_RESULT_OK on success,
  • FILTER_RESULT_ERROR on failure.