Replace functions which called once with their bodies
[pidgin-git.git] / libpurple / plugins / simple.c
blob71cf187e6190651d9f0974bc223f46ff38ce4c39
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of the
5 * License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15 * 02111-1301, USA.
18 #include "internal.h"
19 #include <purple.h>
21 /** Plugin id : type-author-name (to guarantee uniqueness) */
22 #define SIMPLE_PLUGIN_ID "core-ewarmenhoven-simple"
24 static PurplePluginInfo *
25 plugin_query(GError **error)
27 const gchar * const authors[] = {
28 "Eric Warmenhoven <eric@warmenhoven.org>",
29 NULL
32 return purple_plugin_info_new(
33 "id", SIMPLE_PLUGIN_ID,
34 "name", N_("Simple Plugin"),
35 "version", DISPLAY_VERSION,
36 "category", N_("Testing"),
37 "summary", N_("Tests to see that most things are working."),
38 "description", N_("Tests to see that most things are working."),
39 "authors", authors,
40 "website", PURPLE_WEBSITE,
41 "abi-version", PURPLE_ABI_VERSION,
42 NULL
46 static gboolean
47 plugin_load(PurplePlugin *plugin, GError **error)
49 purple_debug(PURPLE_DEBUG_INFO, "simple", "simple plugin loaded.\n");
51 return TRUE;
54 static gboolean
55 plugin_unload(PurplePlugin *plugin, GError **error)
57 purple_debug(PURPLE_DEBUG_INFO, "simple", "simple plugin unloaded.\n");
59 return TRUE;
62 PURPLE_PLUGIN_INIT(simple, plugin_query, plugin_load, plugin_unload);