syslog-ng source
journald-helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2014 Balabit
3  * Copyright (c) 2010-2014 Viktor Juhasz <viktor.juhasz@balabit.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 #ifndef JOURNALD_HELPER_H_INCLUDED
24 #define JOURNALD_HELPER_H_INCLUDED
25 
26 #include "syslog-ng.h"
27 #include "journald-subsystem.h"
28 
29 typedef void (*FOREACH_DATA_CALLBACK)(gchar *key, gsize key_len, gchar *value, gsize value_len, gpointer user_data);
30 
31 void journald_foreach_data(sd_journal *self, FOREACH_DATA_CALLBACK func, gpointer user_data);
32 
33 void journald_foreach_data(sd_journal *journal, FOREACH_DATA_CALLBACK func, gpointer user_data);
34 int journald_filter_this_boot(sd_journal *journal);
35 
36 #endif
void(* FOREACH_DATA_CALLBACK)(gchar *key, gsize key_len, gchar *value, gsize value_len, gpointer user_data)
Definition: journald-helper.h:29
int journald_filter_this_boot(sd_journal *journal)
Definition: journald-helper.c:71
void journald_foreach_data(sd_journal *self, FOREACH_DATA_CALLBACK func, gpointer user_data)
Definition: journald-helper.c:47
GString * value
Definition: test_decode.c:28
struct tm key
Definition: cache.c:63