]> git.sesse.net Git - vlc/commitdiff
python bindings, vlcglue.h: move definition of vlcInstance, add a
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 29 May 2007 09:47:10 +0000 (09:47 +0000)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 29 May 2007 09:47:10 +0000 (09:47 +0000)
vlc_instance pointer to MediaControl object
by Jan David Mol)

bindings/python/vlcglue.h

index 4a1b98f5b9816c52c8df4189aac230ea30d9ff21..e94323f79b5e04836661606e4a8b07637d583e40 100644 (file)
@@ -80,6 +80,17 @@ PyObject *MediaControl_InvalidPosition;
 PyObject *MediaControl_PlaylistException;
 PyObject *vlcInstance_Exception;
 
+/**********************************************************************
+ * vlc.Instance Object
+ **********************************************************************/
+typedef struct
+{
+    PyObject_HEAD
+    libvlc_instance_t* p_instance;
+} vlcInstance;
+
+#define LIBVLC_INSTANCE ((vlcInstance*)self)
+
 /**********************************************************************
  * MediaControl Object
  **********************************************************************/
@@ -87,6 +98,7 @@ typedef struct
 {
     PyObject_HEAD
     mediacontrol_Instance* mc;
+    vlcInstance *vlc_instance;
 } MediaControl;
 
 /**********************************************************************
@@ -100,17 +112,6 @@ typedef struct
     PY_LONG_LONG value;
 } PyPosition;
 
-/**********************************************************************
- * vlc.Instance Object
- **********************************************************************/
-typedef struct
-{
-    PyObject_HEAD
-    libvlc_instance_t* p_instance;
-} vlcInstance;
-
-#define LIBVLC_INSTANCE ((vlcInstance*)self)
-
 /**********************************************************************
  * vlc.Input Object
  **********************************************************************/