]> git.sesse.net Git - vlc/blobdiff - include/vlc/vlc.h
* include/vlc/vlc.h: added a new pi_types field to vlc_list_t. This field will be...
[vlc] / include / vlc / vlc.h
index 769acc894f62493e171f6e08368dd0c1a2a2095a..8658f45769937e497ae6af268d6facea759d838c 100644 (file)
@@ -2,7 +2,7 @@
  * vlc.h: global header for vlc
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc.h,v 1.17 2002/10/17 13:15:30 sam Exp $
+ * $Id: vlc.h,v 1.21 2002/12/15 16:28:20 gbazin Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,20 +30,32 @@ extern "C" {
  * Our custom types
  *****************************************************************************/
 typedef int vlc_bool_t;
+typedef struct vlc_list_t vlc_list_t;
+typedef struct vlc_object_t vlc_object_t;
 
 typedef union
 {
-    int         i_int;
-    vlc_bool_t  b_bool;
-    float       f_float;
-    char *      psz_string;
-    void *      p_address;
+    int             i_int;
+    vlc_bool_t      b_bool;
+    float           f_float;
+    char *          psz_string;
+    void *          p_address;
+    vlc_object_t *  p_object;
+    vlc_list_t *    p_list;
 
     /* Make sure the structure is at least 64bits */
     struct { char a, b, c, d, e, f, g, h; } padding;
 
 } vlc_value_t;
 
+struct vlc_list_t
+{
+    int             i_count;
+    vlc_value_t *   p_values;
+    int *           pi_types;
+
+};
+
 /*****************************************************************************
  * Error values
  *****************************************************************************/
@@ -74,10 +86,11 @@ typedef union
  *****************************************************************************/
 
 /* Used by playlist_Add */
-#define PLAYLIST_INSERT      0x0001
-#define PLAYLIST_REPLACE     0x0002
-#define PLAYLIST_APPEND      0x0004
-#define PLAYLIST_GO          0x0008
+#define PLAYLIST_INSERT          0x0001
+#define PLAYLIST_REPLACE         0x0002
+#define PLAYLIST_APPEND          0x0004
+#define PLAYLIST_GO              0x0008
+#define PLAYLIST_CHECK_INSERT    0x0010
 
 #define PLAYLIST_END           -666