diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-02-07 21:30:34 +0200 |
---|---|---|
committer | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-02-07 22:00:57 +0200 |
commit | 91b852d54264a37b8b2d88e5d2c084325f6b30a6 (patch) | |
tree | 7408d585b47d22945c2c252823ba4d533a8196d6 | |
parent | 674e943231bf519168f59769b4f135c8ae8cd255 (diff) |
Move src/text-factory to tpsip/text-manager
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/protocol.c | 4 | ||||
-rw-r--r-- | src/sip-connection.c | 4 | ||||
-rw-r--r-- | src/text-factory.h | 57 | ||||
-rw-r--r-- | tpsip/Makefile.am | 2 | ||||
-rw-r--r-- | tpsip/text-manager.c (renamed from src/text-factory.c) | 146 | ||||
-rw-r--r-- | tpsip/text-manager.h | 57 |
7 files changed, 137 insertions, 135 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 62ad84f..345dbbd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -88,8 +88,6 @@ libtpsip_convenience_la_SOURCES = \ media-factory.c \ protocol.h \ protocol.c \ - text-factory.h \ - text-factory.c \ sip-connection-helpers.h \ sip-connection-helpers.c \ sip-connection-private.h diff --git a/src/protocol.c b/src/protocol.c index f4aa767..e52d689 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -27,6 +27,7 @@ #include <tpsip/sofia-decls.h> #include <tpsip/handles.h> +#include <tpsip/text-manager.h> #include <sofia-sip/su_glib.h> #define DEBUG_FLAG TPSIP_DEBUG_CONNECTION @@ -34,7 +35,6 @@ #include "media-factory.h" #include "sip-connection.h" #include "sip-connection-helpers.h" -#include "text-factory.h" #define PROTOCOL_NAME "sip" #define ICON_NAME "im-" PROTOCOL_NAME @@ -417,7 +417,7 @@ get_connection_details (TpBaseProtocol *self, if (channel_managers != NULL) { GType types[] = { - TPSIP_TYPE_TEXT_FACTORY, + TPSIP_TYPE_TEXT_MANAGER, TPSIP_TYPE_MEDIA_FACTORY, G_TYPE_INVALID }; diff --git a/src/sip-connection.c b/src/sip-connection.c index 866aba7..8eacf28 100644 --- a/src/sip-connection.c +++ b/src/sip-connection.c @@ -38,10 +38,10 @@ #include <tpsip/event-target.h> #include <tpsip/handles.h> #include <tpsip/connection-aliasing.h> +#include <tpsip/text-manager.h> #include "sip-connection.h" #include "media-factory.h" -#include "text-factory.h" #include "sip-connection-enumtypes.h" #include "sip-connection-helpers.h" @@ -137,7 +137,7 @@ tpsip_connection_create_channel_managers (TpBaseConnection *conn) GPtrArray *channel_managers = g_ptr_array_sized_new (2); g_ptr_array_add (channel_managers, - g_object_new (TPSIP_TYPE_TEXT_FACTORY, + g_object_new (TPSIP_TYPE_TEXT_MANAGER, "connection", self, NULL)); priv->media_factory = g_object_new (TPSIP_TYPE_MEDIA_FACTORY, diff --git a/src/text-factory.h b/src/text-factory.h deleted file mode 100644 index 8a998d7..0000000 --- a/src/text-factory.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * text-factory.h - Text channel factory for SIP connection manager - * Copyright (C) 2007 Collabora Ltd. - * Copyright (C) 2007-2008 Nokia Corporation - * - * This work is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This work 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this work; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __TPSIP_TEXT_FACTORY_H__ -#define __TPSIP_TEXT_FACTORY_H__ - -#include <glib-object.h> - -G_BEGIN_DECLS - -typedef struct _TpsipTextFactory TpsipTextFactory; -typedef struct _TpsipTextFactoryClass TpsipTextFactoryClass; - -struct _TpsipTextFactoryClass { - GObjectClass parent_class; -}; - -struct _TpsipTextFactory { - GObject parent; -}; - -GType tpsip_text_factory_get_type(void); - -/* TYPE MACROS */ -#define TPSIP_TYPE_TEXT_FACTORY \ - (tpsip_text_factory_get_type()) -#define TPSIP_TEXT_FACTORY(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), TPSIP_TYPE_TEXT_FACTORY, TpsipTextFactory)) -#define TPSIP_TEXT_FACTORY_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), TPSIP_TYPE_TEXT_FACTORY, TpsipTextFactoryClass)) -#define TPSIP_IS_TEXT_FACTORY(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPSIP_TYPE_TEXT_FACTORY)) -#define TPSIP_IS_TEXT_FACTORY_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), TPSIP_TYPE_TEXT_FACTORY)) -#define TPSIP_TEXT_FACTORY_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), TPSIP_TYPE_TEXT_FACTORY, TpsipTextFactoryClass)) - -G_END_DECLS - -#endif diff --git a/tpsip/Makefile.am b/tpsip/Makefile.am index f12ea1a..cf07c99 100644 --- a/tpsip/Makefile.am +++ b/tpsip/Makefile.am @@ -23,6 +23,7 @@ tpsip_include_HEADERS = \ event-target.h \ handles.h \ debug.h \ + text-manager.h \ util.h BUILT_SOURCES = \ @@ -39,6 +40,7 @@ libtpsip_la_SOURCES = \ debug.c \ text-channel.h \ text-channel.c \ + text-manager.c \ util.c nodist_libtpsip_la_SOURCES = \ diff --git a/src/text-factory.c b/tpsip/text-manager.c index 04d0e68..f3ae185 100644 --- a/src/text-factory.c +++ b/tpsip/text-manager.c @@ -1,7 +1,7 @@ /* - * text-factory.c - Text channel factory for SIP connection manager + * text-manager.c - Text channel manager for SIP * Copyright (C) 2007-2008 Collabora Ltd. - * Copyright (C) 2007-2009 Nokia Corporation + * Copyright (C) 2007-2011 Nokia Corporation * * This work is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -18,7 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "text-factory.h" +#include "config.h" + +#include "tpsip/text-manager.h" #include <string.h> @@ -26,7 +28,7 @@ #include <telepathy-glib/dbus.h> #include <telepathy-glib/interfaces.h> -#include "sip-text-channel.h" +#include "tpsip/text-channel.h" #include "tpsip/base-connection.h" #include "tpsip/handles.h" @@ -40,10 +42,10 @@ static void channel_manager_iface_init (gpointer g_iface, gpointer iface_data); static void connection_status_changed_cb (TpBaseConnection *conn, - guint status, guint reason, TpsipTextFactory *self); -static void tpsip_text_factory_close_all (TpsipTextFactory *self); + guint status, guint reason, TpsipTextManager *self); +static void tpsip_text_manager_close_all (TpsipTextManager *self); -G_DEFINE_TYPE_WITH_CODE (TpsipTextFactory, tpsip_text_factory, +G_DEFINE_TYPE_WITH_CODE (TpsipTextManager, tpsip_text_manager, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (TP_TYPE_CHANNEL_MANAGER, channel_manager_iface_init)) @@ -54,8 +56,8 @@ enum LAST_PROPERTY }; -typedef struct _TpsipTextFactoryPrivate TpsipTextFactoryPrivate; -struct _TpsipTextFactoryPrivate +typedef struct _TpsipTextManagerPrivate TpsipTextManagerPrivate; +struct _TpsipTextManagerPrivate { TpBaseConnection *conn; /* guint handle => TpsipTextChannel *channel */ @@ -67,12 +69,12 @@ struct _TpsipTextFactoryPrivate gboolean dispose_has_run; }; -#define TPSIP_TEXT_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TPSIP_TYPE_TEXT_FACTORY, TpsipTextFactoryPrivate)) +#define TPSIP_TEXT_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TPSIP_TYPE_TEXT_MANAGER, TpsipTextManagerPrivate)) static void -tpsip_text_factory_init (TpsipTextFactory *fac) +tpsip_text_manager_init (TpsipTextManager *fac) { - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); priv->conn = NULL; priv->channels = g_hash_table_new_full (g_direct_hash, g_direct_equal, @@ -82,12 +84,12 @@ tpsip_text_factory_init (TpsipTextFactory *fac) } static void -tpsip_text_factory_constructed (GObject *object) +tpsip_text_manager_constructed (GObject *object) { - TpsipTextFactory *fac = TPSIP_TEXT_FACTORY (object); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManager *fac = TPSIP_TEXT_MANAGER (object); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); GObjectClass *parent_object_class = - G_OBJECT_CLASS (tpsip_text_factory_parent_class); + G_OBJECT_CLASS (tpsip_text_manager_parent_class); if (parent_object_class->constructed != NULL) parent_object_class->constructed (object); @@ -97,31 +99,31 @@ tpsip_text_factory_constructed (GObject *object) } static void -tpsip_text_factory_dispose (GObject *object) +tpsip_text_manager_dispose (GObject *object) { - TpsipTextFactory *fac = TPSIP_TEXT_FACTORY (object); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManager *fac = TPSIP_TEXT_MANAGER (object); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; - tpsip_text_factory_close_all (fac); + tpsip_text_manager_close_all (fac); g_assert (priv->channels == NULL); - if (G_OBJECT_CLASS (tpsip_text_factory_parent_class)->dispose) - G_OBJECT_CLASS (tpsip_text_factory_parent_class)->dispose (object); + if (G_OBJECT_CLASS (tpsip_text_manager_parent_class)->dispose) + G_OBJECT_CLASS (tpsip_text_manager_parent_class)->dispose (object); } static void -tpsip_text_factory_get_property (GObject *object, +tpsip_text_manager_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { - TpsipTextFactory *fac = TPSIP_TEXT_FACTORY (object); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManager *fac = TPSIP_TEXT_MANAGER (object); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); switch (property_id) { case PROP_CONNECTION: @@ -134,13 +136,13 @@ tpsip_text_factory_get_property (GObject *object, } static void -tpsip_text_factory_set_property (GObject *object, +tpsip_text_manager_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { - TpsipTextFactory *fac = TPSIP_TEXT_FACTORY (object); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManager *fac = TPSIP_TEXT_MANAGER (object); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); switch (property_id) { case PROP_CONNECTION: @@ -153,30 +155,30 @@ tpsip_text_factory_set_property (GObject *object, } static void -tpsip_text_factory_class_init (TpsipTextFactoryClass *klass) +tpsip_text_manager_class_init (TpsipTextManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec *param_spec; - g_type_class_add_private (klass, sizeof (TpsipTextFactoryPrivate)); + g_type_class_add_private (klass, sizeof (TpsipTextManagerPrivate)); - object_class->constructed = tpsip_text_factory_constructed; - object_class->get_property = tpsip_text_factory_get_property; - object_class->set_property = tpsip_text_factory_set_property; - object_class->dispose = tpsip_text_factory_dispose; + object_class->constructed = tpsip_text_manager_constructed; + object_class->get_property = tpsip_text_manager_get_property; + object_class->set_property = tpsip_text_manager_set_property; + object_class->dispose = tpsip_text_manager_dispose; param_spec = g_param_spec_object ("connection", "TpsipBaseConnection object", - "SIP connection that owns this text channel factory", + "SIP connection that owns this text channel manager", TPSIP_TYPE_BASE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_CONNECTION, param_spec); } static void -tpsip_text_factory_close_all (TpsipTextFactory *fac) +tpsip_text_manager_close_all (TpsipTextManager *fac) { - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); GHashTable *channels; if (priv->status_changed_id != 0) @@ -211,12 +213,12 @@ _foreach_slave (gpointer key, gpointer value, gpointer user_data) } static void -tpsip_text_factory_foreach_channel (TpChannelManager *manager, +tpsip_text_manager_foreach_channel (TpChannelManager *manager, TpExportableChannelFunc func, gpointer user_data) { - TpsipTextFactory *fac = TPSIP_TEXT_FACTORY (manager); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManager *fac = TPSIP_TEXT_MANAGER (manager); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); struct _ForeachData data; data.func = func; @@ -229,13 +231,13 @@ tpsip_text_factory_foreach_channel (TpChannelManager *manager, * text_channel_closed_cb: * * Signal callback for when a text channel is closed. Removes the references - * that #TpsipChannelFactory holds to them. + * that #TpsipChannelManager holds to them. */ static void channel_closed (TpsipTextChannel *chan, gpointer user_data) { - TpsipTextFactory *self = TPSIP_TEXT_FACTORY (user_data); - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (self); + TpsipTextManager *self = TPSIP_TEXT_MANAGER (user_data); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (self); TpHandle contact_handle; gboolean really_destroyed = TRUE; @@ -270,18 +272,18 @@ channel_closed (TpsipTextChannel *chan, gpointer user_data) * Creates a new empty TpsipTextChannel. */ static TpsipTextChannel * -tpsip_text_factory_new_channel (TpsipTextFactory *fac, +tpsip_text_manager_new_channel (TpsipTextManager *fac, TpHandle handle, TpHandle initiator, gpointer request_token) { - TpsipTextFactoryPrivate *priv; + TpsipTextManagerPrivate *priv; TpsipTextChannel *chan; gchar *object_path; TpBaseConnection *conn; GSList *request_tokens; - priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); conn = priv->conn; object_path = g_strdup_printf ("%s/TextChannel%u", @@ -329,7 +331,7 @@ static const gchar * const text_channel_allowed_properties[] = { }; static void -tpsip_text_factory_type_foreach_channel_class (GType type, +tpsip_text_manager_type_foreach_channel_class (GType type, TpChannelManagerTypeChannelClassFunc func, gpointer user_data) { @@ -354,12 +356,12 @@ tpsip_text_factory_type_foreach_channel_class (GType type, static gboolean -tpsip_text_factory_requestotron (TpsipTextFactory *self, +tpsip_text_manager_requestotron (TpsipTextManager *self, gpointer request_token, GHashTable *request_properties, gboolean require_new) { - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (self); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (self); TpBaseConnection *base_conn = (TpBaseConnection *) priv->conn; TpHandle handle; GError *error = NULL; @@ -388,7 +390,7 @@ tpsip_text_factory_requestotron (TpsipTextFactory *self, if (channel == NULL) { - tpsip_text_factory_new_channel (self, + tpsip_text_manager_new_channel (self, handle, base_conn->self_handle, request_token); return TRUE; } @@ -413,45 +415,45 @@ error: static gboolean -tpsip_text_factory_create_channel (TpChannelManager *manager, +tpsip_text_manager_create_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties) { - TpsipTextFactory *self = TPSIP_TEXT_FACTORY (manager); + TpsipTextManager *self = TPSIP_TEXT_MANAGER (manager); - return tpsip_text_factory_requestotron (self, request_token, + return tpsip_text_manager_requestotron (self, request_token, request_properties, TRUE); } static gboolean -tpsip_text_factory_request_channel (TpChannelManager *manager, +tpsip_text_manager_request_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties) { - TpsipTextFactory *self = TPSIP_TEXT_FACTORY (manager); + TpsipTextManager *self = TPSIP_TEXT_MANAGER (manager); - return tpsip_text_factory_requestotron (self, request_token, + return tpsip_text_manager_requestotron (self, request_token, request_properties, FALSE); } static gboolean -tpsip_text_factory_ensure_channel (TpChannelManager *manager, +tpsip_text_manager_ensure_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties) { - TpsipTextFactory *self = TPSIP_TEXT_FACTORY (manager); + TpsipTextManager *self = TPSIP_TEXT_MANAGER (manager); - return tpsip_text_factory_requestotron (self, request_token, + return tpsip_text_manager_requestotron (self, request_token, request_properties, FALSE); } static inline TpsipTextChannel * -tpsip_text_factory_lookup_channel (TpsipTextFactory *fac, +tpsip_text_manager_lookup_channel (TpsipTextManager *fac, TpHandle handle) { - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (fac); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (fac); return g_hash_table_lookup (priv->channels, GUINT_TO_POINTER(handle)); @@ -461,7 +463,7 @@ static gboolean tpsip_nua_i_message_cb (TpBaseConnection *conn, const TpsipNuaEvent *ev, tagi_t tags[], - TpsipTextFactory *fac) + TpsipTextManager *fac) { TpsipTextChannel *channel; TpHandle handle; @@ -576,10 +578,10 @@ tpsip_nua_i_message_cb (TpBaseConnection *conn, DEBUG("Got incoming message from <%s>", tpsip_handle_inspect (conn, handle)); - channel = tpsip_text_factory_lookup_channel (fac, handle); + channel = tpsip_text_manager_lookup_channel (fac, handle); if (!channel) - channel = tpsip_text_factory_new_channel (fac, + channel = tpsip_text_manager_new_channel (fac, handle, handle, NULL); tpsip_text_channel_receive (channel, @@ -597,9 +599,9 @@ static void connection_status_changed_cb (TpBaseConnection *conn, guint status, guint reason, - TpsipTextFactory *self) + TpsipTextManager *self) { - TpsipTextFactoryPrivate *priv = TPSIP_TEXT_FACTORY_GET_PRIVATE (self); + TpsipTextManagerPrivate *priv = TPSIP_TEXT_MANAGER_GET_PRIVATE (self); switch (status) { @@ -612,7 +614,7 @@ connection_status_changed_cb (TpBaseConnection *conn, break; case TP_CONNECTION_STATUS_DISCONNECTED: - tpsip_text_factory_close_all (self); + tpsip_text_manager_close_all (self); if (priv->message_received_id != 0) { @@ -631,10 +633,10 @@ channel_manager_iface_init (gpointer g_iface, gpointer iface_data) { TpChannelManagerIface *iface = g_iface; - iface->foreach_channel = tpsip_text_factory_foreach_channel; + iface->foreach_channel = tpsip_text_manager_foreach_channel; iface->type_foreach_channel_class = - tpsip_text_factory_type_foreach_channel_class; - iface->create_channel = tpsip_text_factory_create_channel; - iface->request_channel = tpsip_text_factory_request_channel; - iface->ensure_channel = tpsip_text_factory_ensure_channel; + tpsip_text_manager_type_foreach_channel_class; + iface->create_channel = tpsip_text_manager_create_channel; + iface->request_channel = tpsip_text_manager_request_channel; + iface->ensure_channel = tpsip_text_manager_ensure_channel; } diff --git a/tpsip/text-manager.h b/tpsip/text-manager.h new file mode 100644 index 0000000..cd4ea76 --- /dev/null +++ b/tpsip/text-manager.h @@ -0,0 +1,57 @@ +/* + * tpsip/text-manager.h - Text channel manager for SIP + * Copyright (C) 2007 Collabora Ltd. + * Copyright (C) 2007-2011 Nokia Corporation + * + * This work is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This work 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this work; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __TPSIP_TEXT_MANAGER_H__ +#define __TPSIP_TEXT_MANAGER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _TpsipTextManager TpsipTextManager; +typedef struct _TpsipTextManagerClass TpsipTextManagerClass; + +struct _TpsipTextManagerClass { + GObjectClass parent_class; +}; + +struct _TpsipTextManager { + GObject parent; +}; + +GType tpsip_text_manager_get_type(void); + +/* TYPE MACROS */ +#define TPSIP_TYPE_TEXT_MANAGER \ + (tpsip_text_manager_get_type()) +#define TPSIP_TEXT_MANAGER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), TPSIP_TYPE_TEXT_MANAGER, TpsipTextManager)) +#define TPSIP_TEXT_MANAGER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), TPSIP_TYPE_TEXT_MANAGER, TpsipTextManagerClass)) +#define TPSIP_IS_TEXT_MANAGER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPSIP_TYPE_TEXT_MANAGER)) +#define TPSIP_IS_TEXT_MANAGER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), TPSIP_TYPE_TEXT_MANAGER)) +#define TPSIP_TEXT_MANAGER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), TPSIP_TYPE_TEXT_MANAGER, TpsipTextManagerClass)) + +G_END_DECLS + +#endif |