summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/Attic/protocols/protocol.c141
-rw-r--r--lasso/Attic/protocols/protocol.h76
2 files changed, 0 insertions, 217 deletions
diff --git a/lasso/Attic/protocols/protocol.c b/lasso/Attic/protocols/protocol.c
deleted file mode 100644
index 3bc2d280..00000000
--- a/lasso/Attic/protocols/protocol.c
+++ /dev/null
@@ -1,141 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Valery Febvre <vfebvre@easter-eggs.com>
- * Nicolas Clapies <nclapies@entrouvert.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 2 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, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <lasso/protocols/protocol.h>
-
-struct _LassoProtocolPrivate
-{
- gboolean dispose_has_run;
- gchar *type_name;
-};
-
-/*****************************************************************************/
-/* virtual public methods */
-/*****************************************************************************/
-
-/*****************************************************************************/
-/* virtual private methods */
-/*****************************************************************************/
-
-static void
-lasso_node_set_type(LassoProtocol *protocol,
- const xmlChar *type)
-{
- g_return_if_fail(LASSO_IS_PROTOCOL(protocol));
-
- LassoProtocolClass *class = LASSO_PROTOCOL_GET_CLASS(protocol);
- class->set_type(protocol, type);
-}
-
-/*****************************************************************************/
-/* implementation methods */
-/*****************************************************************************/
-
-static void
-lasso_protocol_impl_set_type(LassoProtocol *protocol,
- const xmlChar *type)
-{
- g_return_if_fail (LASSO_IS_PROTOCOL(protocol));
- g_return_if_fail (type != NULL);
-
- protocol->private->type_name = xmlStrdup(type);
-}
-
-/*****************************************************************************/
-/* instance and class init functions */
-/*****************************************************************************/
-
-static void
-lasso_protocol_instance_init(LassoProtocol *instance)
-{
- LassoProtocol *protocol = LASSO_PROTOCOL(instance);
-
- protocol->private = g_new (LassoProtocolPrivate, 1);
- protocol->private->dispose_has_run = FALSE;
- protocol->private->type_name = NULL;
-}
-
-/* overrided parent class methods */
-
-static void
-lasso_protocol_dispose(LassoProtocol *protocol)
-{
- if (protocol->private->dispose_has_run) {
- return;
- }
- protocol->private->dispose_has_run = TRUE;
-
- /* unref reference counted objects */
- /* we don't have any here */
- g_print("%s 0x%x disposed ...\n", protocol->private->type_name, protocol);
-}
-
-static void
-lasso_protocol_finalize(LassoProtocol *protocol)
-{
- g_print("%s 0x%x finalized ...\n", protocol->private->type_name, protocol);
- g_free (protocol->private->type_name);
-}
-
-static void
-lasso_protocol_class_init(LassoProtocolClass *class)
-{
- GObjectClass *gobject_class = G_OBJECT_CLASS(class);
-
- /* virtual public methods */
-
- /* virtual private methods */
- class->set_type = lasso_protocol_impl_set_type;
-
- /* override parent class methods */
- gobject_class->dispose = (void *)lasso_protocol_dispose;
- gobject_class->finalize = (void *)lasso_protocol_finalize;
-}
-
-GType lasso_protocol_get_type() {
- static GType this_type = 0;
-
- if (!this_type) {
- static const GTypeInfo this_info = {
- sizeof (LassoProtocolClass),
- NULL,
- NULL,
- (GClassInitFunc) lasso_protocol_class_init,
- NULL,
- NULL,
- sizeof(LassoProtocol),
- 0,
- (GInstanceInitFunc) lasso_protocol_instance_init,
- };
-
- this_type = g_type_register_static(G_TYPE_OBJECT , "LassoProtocol",
- &this_info, 0);
- }
- return this_type;
-}
-
-LassoProtocol* lasso_protocol_new() {
- return (LASSO_PROTOCOL(g_object_new(LASSO_TYPE_PROTOCOL, NULL)));
-}
diff --git a/lasso/Attic/protocols/protocol.h b/lasso/Attic/protocols/protocol.h
deleted file mode 100644
index f933af05..00000000
--- a/lasso/Attic/protocols/protocol.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* $Id$
- *
- * Lasso - A free implementation of the Liberty Alliance specifications.
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Valery Febvre <vfebvre@easter-eggs.com>
- * Nicolas Clapies <nclapies@entrouvert.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 2 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, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __LASSO_PROTOCOL_H__
-#define __LASSO_PROTOCOL_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include <lasso/protocols/protocols.h>
-
-#define LASSO_TYPE_PROTOCOL (lasso_protocol_get_type())
-#define LASSO_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_PROTOCOL, LassoProtocol))
-#define LASSO_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_PROTOCOL, LassoProtocolClass))
-#define LASSO_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_PROTOCOL))
-#define LASSO_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_PROTOCOL))
-#define LASSO_PROTOCOL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROTOCOL, LassoProtocolClass))
-
-typedef struct _LassoProtocol LassoProtocol;
-typedef struct _LassoProtocolClass LassoProtocolClass;
-typedef struct _LassoProtocolPrivate LassoProtocolPrivate;
-
-/**
- * _LassoProtocol:
- * @parent: the parent object
- * @private: private pointer structure
- **/
-struct _LassoProtocol {
- GObject parent;
- /*< public >*/
- LassoNode *node;
- /*< private >*/
- LassoProtocolPrivate *private;
-};
-
-struct _LassoProtocolClass {
- GObjectClass parent_class;
- /*< vtable >*/
- /*< public >*/
- /*< private >*/
- void (* set_type) (LassoProtocol *protocol,
- const xmlChar *type);
-};
-
-LASSO_EXPORT GType lasso_protocol_get_type (void);
-
-LASSO_EXPORT LassoProtocol* lasso_protocol_new (void);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __LASSO_PROTOCOL_H__ */