]> git.sesse.net Git - vlc/blobdiff - src/libvlc.h
vlc_.*dir: declare internally, as it's only used with libvlc
[vlc] / src / libvlc.h
index 9b00320e981475eca34eb7f9310b98391070b4e5..93658ddf6e4a4e64187aaaa562950adb9784c16b 100644 (file)
@@ -111,6 +111,8 @@ void msg_StackDestroy (void *);
 /*
  * Unicode stuff
  */
+char *vlc_fix_readdir (const char *);
+bool vlc_current_charset (char **);
 
 /*
  * LibVLC objects stuff
@@ -145,7 +147,7 @@ typedef struct libvlc_global_data_t
 {
     VLC_COMMON_MEMBERS
 
-   /* Object structure data */
+    /* Object structure data */
     int                    i_counter;   ///< object counter
     int                    i_objects;   ///< Attached objects count
     vlc_object_t **        pp_objects;  ///< Array of all objects
@@ -181,7 +183,9 @@ struct vlc_object_internals_t
     vlc_spinlock_t   ref_spin;
     unsigned         i_refcount;
     vlc_destructor_t pf_destructor;
-    bool             b_attached;
+
+    vlc_object_t   **pp_children;
+    int              i_children;
 };
 
 #define ZOOM_SECTION N_("Zoom")
@@ -248,4 +252,29 @@ extern const size_t libvlc_config_count;
  */
 void var_OptionParse (vlc_object_t *, const char *, bool trusted);
 
+/*
+ * Replacement functions
+ */
+# ifndef HAVE_DIRENT_H
+typedef void DIR;
+#  ifndef FILENAME_MAX
+#      define FILENAME_MAX (260)
+#  endif
+struct dirent
+{
+    long            d_ino;          /* Always zero. */
+    unsigned short  d_reclen;       /* Always zero. */
+    unsigned short  d_namlen;       /* Length of name in d_name. */
+    char            d_name[FILENAME_MAX]; /* File name. */
+};
+#  define opendir vlc_opendir
+#  define readdir vlc_readdir
+#  define closedir vlc_closedir
+#  define rewinddir vlc_rewindir
+void *vlc_opendir (const char *);
+void *vlc_readdir (void *);
+int   vlc_closedir(void *);
+void  vlc_rewinddir(void *);
+# endif
+
 #endif