~ubuntu-branches/ubuntu/precise/gst0.10-python/precise

« back to all changes in this revision

Viewing changes to gst/common.h

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2006-06-25 19:37:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060625193745-9yeg0wq56r24n57x
Tags: upstream-0.10.4
ImportĀ upstreamĀ versionĀ 0.10.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; ; c-file-style: "python" -*- */
 
2
/* gst-python
 
3
 * Copyright (C) 2004 Johan Dahlin
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 * 
 
20
 * Author: Johan Dahlin <johan@gnome.org>
 
21
 */
 
22
#ifndef __COMMON_H__
 
23
#define __COMMON_H__
 
24
 
 
25
#include <Python.h>
 
26
#include <pygobject.h>
 
27
#include <glib.h>
 
28
#include <glib-object.h>
 
29
#include <gst/gst.h>
 
30
 
 
31
#include "pygobject.h"
 
32
#include "pygstobject.h"
 
33
#include "pygstminiobject.h"
 
34
 
 
35
#if (defined HAVE_OLD_PYGTK && (PY_VERSION_HEX < 0x02030000))
 
36
  typedef destructor freefunc;
 
37
#endif
 
38
 
 
39
typedef struct {
 
40
        PyGObject *pad;
 
41
        GClosure *link_function;
 
42
        GClosure *event_function;
 
43
        GClosure *chain_function;
 
44
        GClosure *get_function; 
 
45
        GClosure *getcaps_function; 
 
46
} PyGstPadPrivate;
 
47
 
 
48
typedef struct {
 
49
     PyObject *func, *data;
 
50
} PyGstCustomNotify;
 
51
 
 
52
typedef struct {
 
53
    PyObject_HEAD
 
54
    GstIterator *iter;
 
55
} PyGstIterator;
 
56
 
 
57
PyTypeObject PyGstIterator_Type;
 
58
 
 
59
 
 
60
/* from gst-types.c */
 
61
GstCaps *pygst_caps_from_pyobject (PyObject *object, gboolean *copy);
 
62
PyObject* pygst_iterator_new(GstIterator *iter);
 
63
 
 
64
 
 
65
#endif /* __COMMON_H__ */