From 95344205ecebb237fa59f5fe99c5b7ed27933b82 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 5 Jul 2005 13:26:01 +0000 Subject: [PATCH] play is obsolete Original commit message from CVS: play is obsolete --- gst/play.defs | 122 ---------------------------------------------- gst/play.override | 44 ----------------- gst/playmodule.c | 50 ------------------- 3 files changed, 216 deletions(-) delete mode 100644 gst/play.defs delete mode 100644 gst/play.override delete mode 100644 gst/playmodule.c diff --git a/gst/play.defs b/gst/play.defs deleted file mode 100644 index 8599b61b0f..0000000000 --- a/gst/play.defs +++ /dev/null @@ -1,122 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object Play - (in-module "Gst") - (parent "GstPipeline") - (c-name "GstPlay") - (gtype-id "GST_TYPE_PLAY") -) - -;; Enumerations and flags ... - -(define-enum PlaySinkType - (in-module "Gst") - (c-name "GstPlaySinkType") - (gtype-id "GST_TYPE_PLAY_SINK_TYPE") - (values - '("audio" "GST_PLAY_SINK_TYPE_AUDIO") - '("video" "GST_PLAY_SINK_TYPE_VIDEO") - '("any" "GST_PLAY_SINK_TYPE_ANY") - ) -) - - -;; From /opt/gnome/include/gstreamer-0.7/gst/play/play.h - -(define-function gst_play_get_type - (c-name "gst_play_get_type") - (return-type "GType") -) - -(define-function gst_play_new - (c-name "gst_play_new") - (is-constructor-of "GstPlay") - (return-type "GstPlay*") - (parameters - '("GError**" "error") - ) -) - -(define-method set_data_src - (of-object "GstPlay") - (c-name "gst_play_set_data_src") - (return-type "gboolean") - (parameters - '("GstElement*" "data_src") - ) -) - -(define-method set_video_sink - (of-object "GstPlay") - (c-name "gst_play_set_video_sink") - (return-type "gboolean") - (parameters - '("GstElement*" "video_sink") - ) -) - -(define-method set_audio_sink - (of-object "GstPlay") - (c-name "gst_play_set_audio_sink") - (return-type "gboolean") - (parameters - '("GstElement*" "audio_sink") - ) -) - -(define-method set_visualization - (of-object "GstPlay") - (c-name "gst_play_set_visualization") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method connect_visualization - (of-object "GstPlay") - (c-name "gst_play_connect_visualization") - (return-type "gboolean") - (parameters - '("gboolean" "connect") - ) -) - -(define-method set_location - (of-object "GstPlay") - (c-name "gst_play_set_location") - (return-type "gboolean") - (parameters - '("const-char*" "location") - ) -) - -(define-method get_location - (of-object "GstPlay") - (c-name "gst_play_get_location") - (return-type "char*") -) - -(define-method seek_to_time - (of-object "GstPlay") - (c-name "gst_play_seek_to_time") - (return-type "gboolean") - (parameters - '("gint64" "time_nanos") - ) -) - -(define-method get_sink_element - (of-object "GstPlay") - (c-name "gst_play_get_sink_element") - (return-type "GstElement*") - (parameters - '("GstElement*" "element") - '("GstPlaySinkType" "sink_type") - ) -) - - -;; -;; interface definitions -;; diff --git a/gst/play.override b/gst/play.override deleted file mode 100644 index 0b9eca55a8..0000000000 --- a/gst/play.override +++ /dev/null @@ -1,44 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- */ -/* gst-python - * Copyright (C) 2004 David I. Lehn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 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 - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David I. Lehn - */ -%% -headers - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "common.h" - -#include -#include - -%% -modulename gst.play -%% -import gobject.GObject as PyGObject_Type -import gst.Element as PyGstElement_Type -import gst.Pipeline as PyGstPipeline_Type -%% -ignore-glob - _* - gstplay_*init - *_get_type diff --git a/gst/playmodule.c b/gst/playmodule.c deleted file mode 100644 index cc6755ec89..0000000000 --- a/gst/playmodule.c +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- */ -/* gst-python - * Copyright (C) 2004 David I. Lehn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 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 - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David I. Lehn - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -/* include this first, before NO_IMPORT_PYGOBJECT is defined */ -#include -#include - -void pyplay_register_classes (PyObject *d); -void pyplay_add_constants(PyObject *module, const gchar *strip_prefix); - -extern PyMethodDef pyplay_functions[]; - -DL_EXPORT(void) -initplay (void) -{ - PyObject *m, *d; - - m = Py_InitModule ("play", pyplay_functions); - d = PyModule_GetDict (m); - - pyplay_register_classes (d); - pyplay_add_constants (m, "GST_"); - - if (PyErr_Occurred ()) { - Py_FatalError ("can't initialize module gst.play"); - } -}