From 5e39a2c4775161622f65d1cbf5e6dc785829a395 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 5 Dec 2007 10:21:46 +0100 Subject: [PATCH] Removed logger.h file in logger plugin --- src/plugins/logger/Makefile.am | 2 +- src/plugins/logger/logger.c | 17 ++++++++++------- src/plugins/logger/logger.h | 27 --------------------------- 3 files changed, 11 insertions(+), 35 deletions(-) delete mode 100644 src/plugins/logger/logger.h 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 #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 - * 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 . - */ - - -#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 */