grim/guifications3

moved guificatoins-daemon-mpris to cmake, this sucker is way behind api wise and doesn't build, but it looks like I got everything for cmake
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
*
* 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/>.
*/
#if HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#include <gflib/gf_intl.h>
#include <gflib/gf_native_plugin.h>
#include <gflib-xmlrpc/gf_xmlrpc_private.h>
/******************************************************************************
* Globals
*****************************************************************************/
static gboolean initialized = FALSE;
static GfPluginInfo info = {
GF_NATIVE_PLUGIN_ABI_VERSION,
PACKAGE_NAME,
PACKAGE_VERSION,
N_("XMLRPC connectivity for gflib"),
N_("This plugin provides XMLRPC client and server connection "
"implementations for gflib"),
"Gary Kramlich <grim@reaperworld.com>",
"http://www.guifications.org/",
};
/******************************************************************************
* Plugin Exports
*****************************************************************************/
G_MODULE_EXPORT gboolean
gf_native_plugin_load(GfNativePlugin *plugin) {
if(initialized)
return TRUE;
#ifdef ENABLE_NLS
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
# ifdef HAVE_BIND_TEXTDOMAIN_CODESET
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
# endif /* HAVE_BIND_TEXTDOMAIN_CODESET */
#endif /* ENABLE_NLS */
/* initialize our types */
gf_xmlrpc_client_connection_register(plugin);
gf_xmlrpc_server_connection_register(plugin);
initialized = TRUE;
return TRUE;
}
G_MODULE_EXPORT gboolean
gf_native_plugin_unload(GfNativePlugin *plugin) {
#warning write me!
return FALSE;
}
G_MODULE_EXPORT GfPluginInfo *
gf_native_plugin_query(GfPlugin *plugin) {
return &info;
}