summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-12-05 10:21:46 +0100
committerSebastien Helleu <flashcode@flashtux.org>2007-12-05 10:21:46 +0100
commit5e39a2c4775161622f65d1cbf5e6dc785829a395 (patch)
treea14137a93adff094f093c15dc0ee2629fa3a9329
parent26b659ae9e2434e2e3d3d76a8c012591cf041b21 (diff)
downloadweechat-5e39a2c4775161622f65d1cbf5e6dc785829a395.zip
Removed logger.h file in logger plugin
-rw-r--r--src/plugins/logger/Makefile.am2
-rw-r--r--src/plugins/logger/logger.c17
-rw-r--r--src/plugins/logger/logger.h27
3 files changed, 11 insertions, 35 deletions
diff --git a/src/plugins/logger/Makefile.am b/src/plugins/logger/Makefile.am
index 9376992f3..2b94c5b2d 100644
--- a/src/plugins/logger/Makefile.am
+++ b/src/plugins/logger/Makefile.am
@@ -20,6 +20,6 @@ libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = logger.la
-logger_la_SOURCES = logger.c logger.h logger-buffer.c logger-buffer.h
+logger_la_SOURCES = logger.c logger-buffer.c logger-buffer.h
logger_la_LDFLAGS = -module
logger_la_LIBADD = $(LOGGER_LFLAGS)
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c
index 1efd8a803..9fd6db6ed 100644
--- a/src/plugins/logger/logger.c
+++ b/src/plugins/logger/logger.c
@@ -35,20 +35,23 @@
#include <time.h>
#include "../weechat-plugin.h"
-#include "logger.h"
#include "logger-buffer.h"
-static struct t_weechat_plugin *weechat_plugin = NULL;
-static char *logger_path = NULL;
-static char *logger_time_format = NULL;
+char plugin_name[] = "logger";
+char plugin_version[] = "0.1";
+char plugin_description[] = "Logger plugin for WeeChat";
+
+struct t_weechat_plugin *weechat_plugin = NULL;
+char *logger_path = NULL;
+char *logger_time_format = NULL;
/*
* logger_config_read: read config options for logger plugin
*/
-static void
+void
logger_config_read ()
{
if (logger_path)
@@ -363,7 +366,7 @@ logger_end_all ()
* logger_event_cb: callback for event hook
*/
-static int
+int
logger_event_cb (void *data, char *event, void *pointer)
{
/* make C compiler happy */
@@ -386,7 +389,7 @@ logger_event_cb (void *data, char *event, void *pointer)
* logger_print_cb: callback for print hook
*/
-static int
+int
logger_print_cb (void *data, void *buffer, time_t date, char *prefix,
char *message)
{
diff --git a/src/plugins/logger/logger.h b/src/plugins/logger/logger.h
deleted file mode 100644
index 1d2a483aa..000000000
--- a/src/plugins/logger/logger.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
- * See README for License detail, AUTHORS for developers list.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-
-#ifndef __WEECHAT_LOGGER_H
-#define __WEECHAT_LOGGER_H 1
-
-char plugin_name[] = "logger";
-char plugin_version[] = "0.1";
-char plugin_description[] = "Logger plugin for WeeChat";
-
-#endif /* logger.h */