comparison mcabber/modules/fifo/fifo.c @ 2079:8da280d34b48

Rename FIFO module file name Module: fifo_module.c -> fifo.c Code: fifo.c -> fifo_internal.c Previous scheme didn't seem go well along with new autotools since they were expecting fifo_module.* object files.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 29 Sep 2013 14:31:14 +0200
parents mcabber/modules/fifo/fifo_module.c@2256d0626730
children
comparison
equal deleted inserted replaced
2078:2a62243f6da9 2079:8da280d34b48
1 /*
2 * Module "fifo" -- Reads and executes command from FIFO pipe
3 *
4 * Copyright 2009, 2010 Myhailo Danylenko
5 *
6 * This file is part of mcabber.
7 *
8 * mcabber is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21 #include <glib.h>
22 #include <gmodule.h>
23
24 #include <mcabber/fifo.h>
25 #include <mcabber/modules.h>
26 #include <mcabber/config.h>
27
28 module_info_t info_fifo = {
29 .branch = MCABBER_BRANCH,
30 .api = MCABBER_API_VERSION,
31 .version = MCABBER_VERSION,
32 .requires = NULL,
33 .init = NULL,
34 .uninit = NULL,
35 .description = "Reads and executes command from FIFO pipe\n"
36 "Recognizes options fifo_name (required), fifo_hide_commands and fifo_ignore.",
37 .next = NULL,
38 };
39
40 gchar *g_module_check_init(GModule *module)
41 {
42 if (fifo_init() == -1)
43 return "FIFO initialization failed";
44 else
45 return NULL;
46 }
47
48 void g_module_unload(GModule *module)
49 {
50 fifo_deinit();
51 }
52
53 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */