grim/guifications3
Clone
Summary
Browse
Changes
Graph
converted guifications-daemon-web to cmake, this is behind a bit when it comes to api and needs to have the updates completed yet
cmake
2010-12-13, Gary Kramlich
d4bbd9f88813
converted guifications-daemon-web to cmake, this is behind a bit when it comes to api and needs to have the updates completed yet
/*
* 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/>.
*/
#ifdef HAVE_CONFIG_H
#
include
<config.h>
#endif
/* HAVE_CONFIG_H */
#include
<eggdbus/eggdbus.h>
#include
<gflib/gf_lib.h>
#include
"gfeggdbusserverconnection.h"
/******************************************************************************
* Globals
*****************************************************************************/
static
gboolean
initialized
=
FALSE
;
/******************************************************************************
* Plugin Stuff
*****************************************************************************/
G_MODULE_EXPORT
gboolean
gf_native_plugin_load
(
GfNativePlugin
*
plugin
)
{
GModule
*
gmodule
=
NULL
;
if
(
initialized
)
return
TRUE
;
gmodule
=
gf_native_plugin_get_module
(
plugin
);
g_module_make_resident
(
gmodule
);
gf_eggdbus_server_connection_register
(
plugin
);
initialized
=
TRUE
;
return
TRUE
;
}
G_MODULE_EXPORT
gboolean
gf_native_plugin_unload
(
GfNativePlugin
*
plugin
)
{
return
FALSE
;
}
static
GfPluginInfo
info
=
{
GF_NATIVE_PLUGIN_ABI_VERSION
,
PACKAGE_NAME
,
PACKAGE_VERSION
,
"D-Bus connectivity for gflib using eggdbus"
,
"This plugin provides D-Bus client and server connection implementations for gflib"
,
"Gary Kramlich <grim@reaperworld.com>"
,
"http://www.guifications.org/"
};
G_MODULE_EXPORT
GfPluginInfo
*
gf_native_plugin_query
(
GfPlugin
*
plugin
)
{
return
&
info
;
}