syslog-ng source
decode.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016 Balabit
3  * Copyright (c) 2015-2016 Balázs Scheidler
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 #ifndef SYSLOG_NG_C_LITERAL_UNESCAPE_H_INCLUDED
25 #define SYSLOG_NG_C_LITERAL_UNESCAPE_H_INCLUDED
26 
27 #include "syslog-ng.h"
28 
29 typedef gboolean (*MatchDelimiterFunc)(const gchar *cur, const gchar **new_cur, gpointer user_data);
30 
31 typedef struct _StrReprDecodeOptions
32 {
35  gchar delimiter_chars[3];
37 
38 gboolean str_repr_decode(GString *value, const gchar *input, const gchar **end);
39 gboolean str_repr_decode_append(GString *value, const gchar *input, const gchar **end);
40 
41 gboolean str_repr_decode_with_options(GString *value, const gchar *input, const gchar **end,
42  const StrReprDecodeOptions *options);
43 gboolean str_repr_decode_append_with_options(GString *value, const gchar *input, const gchar **end,
44  const StrReprDecodeOptions *options);
45 
46 #endif
gboolean(* MatchDelimiterFunc)(const gchar *cur, const gchar **new_cur, gpointer user_data)
Definition: decode.h:29
gboolean str_repr_decode_with_options(GString *value, const gchar *input, const gchar **end, const StrReprDecodeOptions *options)
Definition: decode.c:277
gboolean str_repr_decode_append(GString *value, const gchar *input, const gchar **end)
Definition: decode.c:259
gboolean str_repr_decode(GString *value, const gchar *input, const gchar **end)
Definition: decode.c:270
gboolean str_repr_decode_append_with_options(GString *value, const gchar *input, const gchar **end, const StrReprDecodeOptions *options)
Definition: decode.c:234
Definition: decode.h:32
gpointer match_delimiter_data
Definition: decode.h:34
MatchDelimiterFunc match_delimiter
Definition: decode.h:33
GString * value
Definition: test_decode.c:28