Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2020-05-21 01:42:33 +0300
committerAntenore Gatta <antenore@simbiosi.org>2020-05-21 01:42:33 +0300
commitd007bf63569c402b8f795e9484fe2a47ef234a04 (patch)
tree56611359a519c661c43ef1e390b0fdb9e249272e /src/remmina_log.h
parent315787f77e0f0b9cc510ed173e2fb1f0d58f8677 (diff)
Refactoring remmina_debug to avoid memory leaks and overhead, should fix #2202
Signed-off-by: Antenore Gatta <antenore@simbiosi.org>
Diffstat (limited to 'src/remmina_log.h')
-rw-r--r--src/remmina_log.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remmina_log.h b/src/remmina_log.h
index d8508d50d..bae6fe6e1 100644
--- a/src/remmina_log.h
+++ b/src/remmina_log.h
@@ -35,12 +35,16 @@
#pragma once
+#include <stdarg.h>
+
G_BEGIN_DECLS
+#define remmina_debug(fmt, ...) _remmina_debug(__func__, fmt, ##__VA_ARGS__)
+
void remmina_log_start(void);
gboolean remmina_log_running(void);
void remmina_log_print(const gchar *text);
-void remmina_debug(const gchar *fmt, ...);
+void _remmina_debug(const gchar *fun, const gchar *fmt, ...);
void remmina_log_printf(const gchar *fmt, ...);
G_END_DECLS