grim/guifications3
Clone
Summary
Browse
Changes
Graph
moved testcolor.c to gtester
2010-12-22, Gary Kramlich
5c9fc134b59e
moved testcolor.c to gtester
closes #674
/*
* 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
<gflib/gf_intl.h>
#include
<gflib/gf_native_plugin.h>
#include
"gf_unix_server_connection.h"
static
gboolean
initialized
=
FALSE
;
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 */
gf_unix_server_connection_register_type
(
plugin
);
/* and we're done... */
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
,
N_
(
"UNIX Socket connectivity for gflib"
),
N_
(
"This plugin provides client and server connections that talk over a "
"UNIX socket"
),
"Gary Kramlich <grim@reaperworld.com>"
,
"http://www.guifications.org/"
};
G_MODULE_EXPORT
GfPluginInfo
*
gf_native_plugin_query
(
GfPlugin
*
plugin
)
{
return
&
info
;
}