summaryrefslogtreecommitdiffstats
path: root/fluent-bit/examples/filter_rust_clib/rust_clib_filter.c
blob: ca19d516a816d518988772713b2b518d45f4338f (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "filter_rust_clib.h"

char* rust_clib_filter(char* tag, int len, uint32_t sec, uint32_t nsec, char* record, int record_len)
{
  return (char *)rust_filter(tag, strlen(tag), sec, nsec, record, strlen(record));
}