grim/guifications3

moved gflib-gtk to the new cmake module
cmake
2010-12-15, Gary Kramlich
b6418db658c1
moved gflib-gtk to the new cmake module
/*
* 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_server_connection.h>
#include <gflib/gf_intl.h>
/******************************************************************************
* Structs
*****************************************************************************/
/******************************************************************************
* Enums
*****************************************************************************/
enum {
PROP_ZERO = 0,
PROP_LAST
};
/******************************************************************************
* Globals
*****************************************************************************/
/******************************************************************************
* Object Stuff
*****************************************************************************/
/******************************************************************************
* Connection API
*****************************************************************************/
GType
gf_server_connection_get_type(void) {
static GType type = 0;
if(type == 0) {
static const GTypeInfo info = {
sizeof(GfServerConnectionClass),
NULL,
NULL,
NULL,
NULL,
NULL,
sizeof(GfServerConnection),
0,
NULL,
NULL
};
type = g_type_register_static(GF_TYPE_CONNECTION,
"GfServerConnection",
&info, G_TYPE_FLAG_ABSTRACT);
}
return type;
}
/**
* gf_server_connection_listen:
* @connection : The #GfServerConnection instance.
* @error : The return address for an error, if any.
*
* Puts @connection into a listening state.
*
* Return Value: TRUE if listening was successful.
*/
gboolean
gf_server_connection_listen(GfServerConnection *connection, GError **error) {
GfServerConnectionClass *klass;
g_return_val_if_fail(GF_IS_SERVER_CONNECTION(connection), FALSE);
klass = GF_SERVER_CONNECTION_GET_CLASS(connection);
if(klass && klass->listen)
return klass->listen(connection, error);
return FALSE;
}