luasandbox  1.4.0
Generic Lua sandbox for dynamic data analysis
Typedefs | Functions
heka_message_matcher.h File Reference

Hindsight/Heka message matcher. More...

#include <stdbool.h>
#include "heka_message.h"
Include dependency graph for heka_message_matcher.h:

Go to the source code of this file.

Typedefs

typedef struct lsb_message_matcher lsb_message_matcher
 

Functions

LSB_UTIL_EXPORT lsb_message_matcherlsb_create_message_matcher (const char *exp)
 Parses a message matcher expression and returns the matcher. More...
 
LSB_UTIL_EXPORT void lsb_destroy_message_matcher (lsb_message_matcher *mm)
 Frees all memory associated with a message matcher instance. More...
 
LSB_UTIL_EXPORT bool lsb_eval_message_matcher (lsb_message_matcher *mm, lsb_heka_message *m)
 Evaluates the message matcher against the provided message. More...
 

Detailed Description

Hindsight/Heka message matcher.

Definition in file heka_message_matcher.h.

Typedef Documentation

Definition at line 16 of file heka_message_matcher.h.

Function Documentation

LSB_UTIL_EXPORT lsb_message_matcher* lsb_create_message_matcher ( const char *  exp)

Parses a message matcher expression and returns the matcher.

Parameters
expExpression to parse into a matcher
Returns
lsb_message_matcher*
LSB_UTIL_EXPORT void lsb_destroy_message_matcher ( lsb_message_matcher mm)

Frees all memory associated with a message matcher instance.

Parameters
mmMessage matcher
LSB_UTIL_EXPORT bool lsb_eval_message_matcher ( lsb_message_matcher mm,
lsb_heka_message m 
)

Evaluates the message matcher against the provided message.

Parameters
mmMessage matcher
mHeka message
Returns
bool True if the message is a match