syslog-ng source
debugger.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Balabit
3  * Copyright (c) 2015 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 DEBUGGER_DEBUGGER_H_INCLUDED
25 #define DEBUGGER_DEBUGGER_H_INCLUDED 1
26 
27 #include "syslog-ng.h"
28 #include "cfg.h"
29 #include "mainloop.h"
30 
31 typedef struct _Debugger Debugger;
32 
33 typedef gchar *(*FetchCommandFunc)(void);
34 
35 
38 void debugger_exit(Debugger *self);
39 void debugger_start_console(Debugger *self);
40 gboolean debugger_perform_tracing(Debugger *self, LogPipe *pipe, LogMessage *msg);
41 gboolean debugger_stop_at_breakpoint(Debugger *self, LogPipe *pipe, LogMessage *msg);
42 
43 Debugger *debugger_new(MainLoop *main_loop, GlobalConfig *cfg);
44 void debugger_free(Debugger *self);
45 
46 
47 #endif
void debugger_free(Debugger *self)
Definition: debugger.c:505
void debugger_start_console(Debugger *self)
Definition: debugger.c:435
gchar * debugger_builtin_fetch_command(void)
Definition: debugger.c:290
gboolean debugger_stop_at_breakpoint(Debugger *self, LogPipe *pipe, LogMessage *msg)
Definition: debugger.c:450
gboolean debugger_perform_tracing(Debugger *self, LogPipe *pipe, LogMessage *msg)
Definition: debugger.c:465
void debugger_exit(Debugger *self)
Definition: debugger.c:481
Debugger * debugger_new(MainLoop *main_loop, GlobalConfig *cfg)
Definition: debugger.c:491
void debugger_register_command_fetcher(FetchCommandFunc fetcher)
Definition: debugger.c:314
gchar *(* FetchCommandFunc)(void)
Definition: debugger.h:33
Definition: debugger.c:39
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
MainLoop * main_loop
Definition: test_control_cmds.c:43
LogMessage * msg
Definition: test_rename.c:35