#include <common/common.h>
#include <common/sessiond-comm/jul.h>
+#include <common/compat/endian.h>
+
#include "jul.h"
#include "ust-app.h"
#include "utils.h"
*
* Return a new object else NULL on error.
*/
-struct jul_event *jul_create_event(const char *name)
+struct jul_event *jul_create_event(const char *name,
+ struct lttng_filter_bytecode *filter)
{
struct jul_event *event;
lttng_ht_node_init_str(&event->node, event->name);
}
+ if (filter) {
+ event->filter = filter;
+ }
+
error:
return event;
}