summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author <rob.taylor@collabora.co.uk>2006-01-15 21:19:32 +0000
committer <rob.taylor@collabora.co.uk>2006-01-15 21:19:32 +0000
commit90152f5f7a7a54024f8097e74988bf76f5002684 (patch)
treee967b915024909ab83327a7862e8de830f4c7901 /src
parenta849b195641d28a7c69d6dca167fad08745956c3 (diff)
moved src to test as thats the server bindings, *doh*!
Diffstat (limited to 'src')
-rw-r--r--src/.git-darcs-dir0
-rw-r--r--src/Makefile.am69
-rw-r--r--src/telepathy-errors.h55
-rw-r--r--src/tp-media-session-handler-signals-marshal.list1
-rw-r--r--src/tp-media-session-handler.c148
-rw-r--r--src/tp-media-session-handler.h62
6 files changed, 0 insertions, 335 deletions
diff --git a/src/.git-darcs-dir b/src/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
--- a/src/.git-darcs-dir
+++ /dev/null
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 9eb3bf6..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,69 +0,0 @@
-BUILT_SOURCES = \
- tp-media-session-handler-glue.h \
- tp-media-session-handler-signals-marshal.h \
- tp-media-session-handler-signals-marshal.c \
- tp-media-stream-handler-glue.h \
- tp-media-stream-handler-signals-marshal.h \
- tp-media-stream-handler-signals-marshal.c \
- telepathy-errors-enumtypes.h \
- telepathy-errors-enumtypes.c
-
-# correctly clean the generated source files
-CLEANFILES = $(BUILT_SOURCES)
-
-bin_PROGRAMS=telepathy-gabble
-
-CORE_SOURCES = \
- tp-media-session-handler.c \
- tp-media-stream-handler.c \
- telepathy-errors.c \
- $(BUILT_SOURCES)
-
-libgabble_convenience_la_SOURCES = \
- $(CORE_SOURCES)
-
-telepathy_gabble_SOURCES = \
- voip-engine.c
-
-telepathy_gabble_LDADD = libgabble-convenience.la
-
-noinst_LTLIBRARIES = libgabble-convenience.la
-
-AM_CFLAGS = $(ERROR_CFLAGS) @DBUS_CFLAGS@ @GLIB_CFLAGS@ @LOUDMOUTH_CFLAGS@
-AM_LDFLAGS = @DBUS_LIBS@ @GLIB_LIBS@ @LOUDMOUTH_LIBS@
-
-
-# rule to generate the binding headers
-%-glue.h: ../%.xml Makefile
- dbus-binding-tool --mode=glib-server --output=$@ --prefix=$(subst -,_,$*) $<
-
-%-signals-marshal.h: %-signals-marshal.list Makefile
- glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
-
-%-signals-marshal.c: %-signals-marshal.list Makefile
- glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
-
-%-marshal.h: %-marshal.list Makefile
- glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
-
-%-marshal.c: %-marshal.list Makefile
- glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
-
-
-# rules for making the glib enum objects
-%-enumtypes.h: %.h Makefile
- glib-mkenums \
- --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
- --fprod "/* enumerations from \"@filename@\" */\n" \
- --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
- --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
- $< > $@
-
-%-enumtypes.c: %.h Makefile
- glib-mkenums \
- --fhead "#include <$*.h>" \
- --fprod "\n/* enumerations from \"@filename@\" */" \
- --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
- --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
- --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
- $< > $@
diff --git a/src/telepathy-errors.h b/src/telepathy-errors.h
deleted file mode 100644
index dbfdef4..0000000
--- a/src/telepathy-errors.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * telepathy-errors.h - Header for Telepathy error types
- * Copyright (C) 2005 Collabora Ltd.
- * Copyright (C) 2005 Nokia Corporation
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef __TELEPATHY_ERRORS_H__
-#define __TELEPATHY_ERRORS_H__
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-typedef enum
-{
- InvalidHandle, /** The contact name specified is unknown on this channel
- * or connection.
- */
- Disconnected, /** The connection is not currently connected and cannot be
- * used.
- */
- InvalidArgument, /** Raised when one of the provided arguments is invalid.
- */
- NetworkError, /** Raised when there is an error reading from or writing
- * to the network.
- */
- PermissionDenied, /** The user is not permitted to perform the requested
- * operation.
- */
- NotAvailable, /** Raised when the requested functionality is temporarily
- * unavailable.
- */
- NotImplemented, /** Raised when the requested method, channel, etc is not
- * available on this connection.
- */
-} TelepathyErrors;
-
-
-G_END_DECLS
-
-#endif /* #ifndef __TELEPATHY_ERRORS_H__*/
diff --git a/src/tp-media-session-handler-signals-marshal.list b/src/tp-media-session-handler-signals-marshal.list
deleted file mode 100644
index a73684a..0000000
--- a/src/tp-media-session-handler-signals-marshal.list
+++ /dev/null
@@ -1 +0,0 @@
-VOID:STRING,INT,INT
diff --git a/src/tp-media-session-handler.c b/src/tp-media-session-handler.c
deleted file mode 100644
index dd050bc..0000000
--- a/src/tp-media-session-handler.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * tp-media-session-handler.c - Source for TpMediaSessionHandler
- * Copyright (C) 2005 Collabora Ltd.
- * Copyright (C) 2005 Nokia Corporation
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include <dbus/dbus-glib.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "tp-media-session-handler.h"
-#include "tp-media-session-handler-signals-marshal.h"
-
-#include "tp-media-session-handler-glue.h"
-
-G_DEFINE_TYPE(TpMediaSessionHandler, tp_media_session_handler, G_TYPE_OBJECT)
-
-/* signal enum */
-enum
-{
- NEW_MEDIA_STREAM_HANDLER,
- LAST_SIGNAL
-};
-
-static guint signals[LAST_SIGNAL] = {0};
-
-/* private structure */
-typedef struct _TpMediaSessionHandlerPrivate TpMediaSessionHandlerPrivate;
-
-struct _TpMediaSessionHandlerPrivate
-{
- gboolean dispose_has_run;
-};
-
-#define TP_MEDIA_SESSION_HANDLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TP_TYPE_MEDIA_SESSION_HANDLER, TpMediaSessionHandlerPrivate))
-
-static void
-tp_media_session_handler_init (TpMediaSessionHandler *obj)
-{
- TpMediaSessionHandlerPrivate *priv = TP_MEDIA_SESSION_HANDLER_GET_PRIVATE (obj);
-
- /* allocate any data required by the object here */
-}
-
-static void tp_media_session_handler_dispose (GObject *object);
-static void tp_media_session_handler_finalize (GObject *object);
-
-static void
-tp_media_session_handler_class_init (TpMediaSessionHandlerClass *tp_media_session_handler_class)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (tp_media_session_handler_class);
-
- g_type_class_add_private (tp_media_session_handler_class, sizeof (TpMediaSessionHandlerPrivate));
-
- object_class->dispose = tp_media_session_handler_dispose;
- object_class->finalize = tp_media_session_handler_finalize;
-
- signals[NEW_MEDIA_STREAM_HANDLER] =
- g_signal_new ("new-media-stream-handler",
- G_OBJECT_CLASS_TYPE (tp_media_session_handler_class),
- G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
- 0,
- NULL, NULL,
- tp_media_session_handler_marshal_VOID__STRING_INT_INT,
- G_TYPE_NONE, 3, DBUS_TYPE_G_OBJECT_PATH, G_TYPE_INT, G_TYPE_INT);
-
- dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (tp_media_session_handler_class), &dbus_glib_tp_media_session_handler_object_info);
-}
-
-void
-tp_media_session_handler_dispose (GObject *object)
-{
- TpMediaSessionHandler *self = TP_MEDIA_SESSION_HANDLER (object);
- TpMediaSessionHandlerPrivate *priv = TP_MEDIA_SESSION_HANDLER_GET_PRIVATE (self);
-
- if (priv->dispose_has_run)
- return;
-
- priv->dispose_has_run = TRUE;
-
- /* release any references held by the object here */
-
- if (G_OBJECT_CLASS (tp_media_session_handler_parent_class)->dispose)
- G_OBJECT_CLASS (tp_media_session_handler_parent_class)->dispose (object);
-}
-
-void
-tp_media_session_handler_finalize (GObject *object)
-{
- TpMediaSessionHandler *self = TP_MEDIA_SESSION_HANDLER (object);
- TpMediaSessionHandlerPrivate *priv = TP_MEDIA_SESSION_HANDLER_GET_PRIVATE (self);
-
- /* free any data held directly by the object here */
-
- G_OBJECT_CLASS (tp_media_session_handler_parent_class)->finalize (object);
-}
-
-
-
-/**
- * tp_media_session_handler_error
- *
- * Implements DBus method Error
- * on interface org.freedesktop.Telepathy.Media.SessionHandler
- *
- * @error: Used to return a pointer to a GError detailing any error
- * that occured, DBus will throw the error only if this
- * function returns false.
- *
- * Returns: TRUE if successful, FALSE if an error was thrown.
- */
-gboolean tp_media_session_handler_error (TpMediaSessionHandler *obj, gint errno, const gchar * message, GError **error)
-{
- return TRUE;
-}
-
-
-/**
- * tp_media_session_handler_introspect
- *
- * Implements DBus method Introspect
- * on interface org.freedesktop.DBus.Introspectable
- *
- * @error: Used to return a pointer to a GError detailing any error
- * that occured, DBus will throw the error only if this
- * function returns false.
- *
- * Returns: TRUE if successful, FALSE if an error was thrown.
- */
-gboolean tp_media_session_handler_introspect (TpMediaSessionHandler *obj, gchar ** ret, GError **error)
-{
- return TRUE;
-}
-
diff --git a/src/tp-media-session-handler.h b/src/tp-media-session-handler.h
deleted file mode 100644
index c906ea1..0000000
--- a/src/tp-media-session-handler.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * tp-media-session-handler.h - Header for TpMediaSessionHandler
- * Copyright (C) 2005 Collabora Ltd.
- * Copyright (C) 2005 Nokia Corporation
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef __TP_MEDIA_SESSION_HANDLER_H__
-#define __TP_MEDIA_SESSION_HANDLER_H__
-
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-typedef struct _TpMediaSessionHandler TpMediaSessionHandler;
-typedef struct _TpMediaSessionHandlerClass TpMediaSessionHandlerClass;
-
-struct _TpMediaSessionHandlerClass {
- GObjectClass parent_class;
-};
-
-struct _TpMediaSessionHandler {
- GObject parent;
-};
-
-GType tp_media_session_handler_get_type(void);
-
-/* TYPE MACROS */
-#define TP_TYPE_MEDIA_SESSION_HANDLER \
- (tp_media_session_handler_get_type())
-#define TP_MEDIA_SESSION_HANDLER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj), TP_TYPE_MEDIA_SESSION_HANDLER, TpMediaSessionHandler))
-#define TP_MEDIA_SESSION_HANDLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass), TP_TYPE_MEDIA_SESSION_HANDLER, TpMediaSessionHandlerClass))
-#define TP_IS_MEDIA_SESSION_HANDLER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj), TP_TYPE_MEDIA_SESSION_HANDLER))
-#define TP_IS_MEDIA_SESSION_HANDLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass), TP_TYPE_MEDIA_SESSION_HANDLER))
-#define TP_MEDIA_SESSION_HANDLER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_MEDIA_SESSION_HANDLER, TpMediaSessionHandlerClass))
-
-
-gboolean tp_media_session_handler_error (TpMediaSessionHandler *obj, gint errno, const gchar * message, GError **error);
-gboolean tp_media_session_handler_introspect (TpMediaSessionHandler *obj, gchar ** ret, GError **error);
-
-
-G_END_DECLS
-
-#endif /* #ifndef __TP_MEDIA_SESSION_HANDLER_H__*/