syslog-ng source
redis-worker.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Balabit
3  * Copyright (c) 2013 Tihamer Petrovics <tihameri@gmail.com>
4  * Copyright (c) 2014 Gergely Nagy <algernon@balabit.hu>
5  * Copyright (c) 2021 Szilárd Parrag
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 2 as published
9  * by the Free Software Foundation, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  * As an additional exemption you are allowed to compile & link against the
21  * OpenSSL libraries as published by the OpenSSL project. See the file
22  * COPYING for details.
23  *
24  */
25 
26 #ifndef REDIS_WORKER_H_INCLUDED
27 #define REDIS_WORKER_H_INCLUDED
28 
29 #pragma GCC diagnostic push
30 #pragma GCC diagnostic ignored "-Wswitch-default"
31 #include <hiredis/hiredis.h>
32 #pragma GCC diagnostic pop
33 
34 #include "syslog-ng.h"
36 
37 
38 typedef struct _RedisDestWorker
39 {
40  LogThreadedDestWorker super;
41  redisContext *c;
42  gint argc;
43  gchar **argv;
44  size_t *argvlen;
45 
47 
48 LogThreadedDestWorker *redis_worker_new(LogThreadedDestDriver *owner, gint worker_index);
49 
50 #endif
LogThreadedDestWorker * redis_worker_new(LogThreadedDestDriver *owner, gint worker_index)
Definition: redis-worker.c:358
Definition: redis-worker.h:39
gchar ** argv
Definition: redis-worker.h:43
gint argc
Definition: redis-worker.h:42
size_t * argvlen
Definition: redis-worker.h:44
redisContext * c
Definition: redis-worker.h:41
LogThreadedDestWorker super
Definition: redis-worker.h:40