play is obsolete

Original commit message from CVS:
play is obsolete
This commit is contained in:
Edward Hervey 2005-07-05 13:26:01 +00:00
parent fa5105c9f6
commit 95344205ec
3 changed files with 0 additions and 216 deletions

View file

@ -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
;;

View file

@ -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 <dlehn@users.sourceforge.net>
*/
%%
headers
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "common.h"
#include <gst/gst.h>
#include <gst/play/play.h>
%%
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

View file

@ -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 <dlehn@users.sourceforge.net>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
#include <pygobject.h>
#include <gst/gst.h>
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");
}
}