[vlc-devel] [PATCH 01/10] Adds a flag field in input_item_t. Adds browsable and already browsed flags enum definition

Julien 'Lta' BALLET elthariel at gmail.com
Mon May 26 11:41:41 CEST 2014


From: Julien 'Lta' BALLET <contact at lta.io>

---
 include/vlc_input_item.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index bc5b2e5..846db38 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -86,6 +86,7 @@ struct input_item_t
     vlc_mutex_t lock;                 /**< Lock for the item */
 
     uint8_t     i_type;              /**< Type (file, disc, ... see input_item_type_e) */
+    uint8_t     i_flags;             /**< Flags (browsable/browsed) */
     bool        b_fixed_name;        /**< Can the interface change the name ?*/
     bool        b_error_when_reading;/**< Error When Reading */
 };
@@ -108,6 +109,12 @@ enum input_item_type_e
     ITEM_TYPE_NUMBER
 };
 
+enum input_item_flag_e
+{
+    ITEM_FLAG_BROWSABLE         = 0x0001,   /**< This item is browsable */
+    ITEM_FLAG_BROWSED           = 0x0002,   /**< This item has been browsed already */
+};
+
 struct input_item_node_t
 {
     input_item_t *         p_item;
-- 
1.9.3




More information about the vlc-devel mailing list