![]() |
Diffusion C API 6.12.0
|
A topic selector identifies one or more topics and are created from a pattern expression. More...
Typedefs | |
| typedef struct DIFFUSION_TOPIC_SELECTOR_T | DIFFUSION_TOPIC_SELECTOR_T |
| Opaque Topic Selector struct. | |
Functions | |
| DIFFUSION_TOPIC_SELECTOR_T * | diffusion_topic_selector_create (char *expression, DIFFUSION_API_ERROR *error) |
| Return a DIFFUSION_TOPIC_SELECTOR_T struct for the given expression. | |
| bool | diffusion_topic_selector_selects (DIFFUSION_TOPIC_SELECTOR_T *topic_selector, char *topic_path) |
| Evaluate a topic selector against a topic path. | |
| void | diffusion_topic_selector_free (DIFFUSION_TOPIC_SELECTOR_T *topic_selector) |
| Free a topic selector. | |
A topic selector identifies one or more topics and are created from a pattern expression.
| DIFFUSION_TOPIC_SELECTOR_T * diffusion_topic_selector_create | ( | char * | expression, |
| DIFFUSION_API_ERROR * | error ) |
Return a DIFFUSION_TOPIC_SELECTOR_T struct for the given expression.
| expression | The expression to be used for evaluating topic paths. |
| error | Populated on API error. Can be NULL. |
| void diffusion_topic_selector_free | ( | DIFFUSION_TOPIC_SELECTOR_T * | topic_selector | ) |
Free a topic selector.
| topic_selector | The topic selector. |
| bool diffusion_topic_selector_selects | ( | DIFFUSION_TOPIC_SELECTOR_T * | topic_selector, |
| char * | topic_path ) |
Evaluate a topic selector against a topic path.
| topic_selector | The topic selector. |
| topic_path | The topic path to evaluate against. |