]> git.sesse.net Git - vlc/blobdiff - src/libvlc.h
libvlccore: remove the threads count
[vlc] / src / libvlc.h
index 6c1f281b3d72dba6876ba502a4a6f29ffee4b7b6..334b74442ebf01283388fea49e04b16251450c60 100644 (file)
@@ -222,6 +222,8 @@ vlc_object_signal_maybe (vlc_object_t *p_this)
  */
 typedef struct libvlc_priv_t
 {
+    libvlc_int_t       public_data;
+
     /* Configuration */
     vlc_mutex_t        config_lock; ///< config file lock
     char *             psz_configfile;   ///< location of config file
@@ -254,20 +256,11 @@ typedef struct libvlc_priv_t
 
     /* Private playlist data (FIXME - playlist_t is too public...) */
     sout_instance_t   *p_sout; ///< kept sout instance (for playlist)
-
-    /* Thread support */
-    unsigned           threads_count;
-    vlc_mutex_t        threads_lock;
-    vlc_cond_t         threads_wait;
-
-#ifdef WIN32
-    vlc_object_t       *ipc_helper;
-#endif
 } libvlc_priv_t;
 
 static inline libvlc_priv_t *libvlc_priv (libvlc_int_t *libvlc)
 {
-    return (libvlc_priv_t *)(libvlc + 1);
+    return (libvlc_priv_t *)libvlc;
 }
 
 void playlist_ServicesDiscoveryKillAll( playlist_t *p_playlist );
@@ -322,8 +315,4 @@ void vlc_rewinddir (void *);
 #   define rewinddir vlc_rewinddir
 #endif
 
-#ifndef HAVE_POLL
-#   define _poll vlc_poll
-#endif
-
 #endif