]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/vlc.h
LUA intf: fix lock_and_wait, and stop using vlc_object_wait()
[vlc] / modules / misc / lua / vlc.h
index c4cb9a4abdb232fd4895c3a6dbbb400aecfc424a..94d69f6357a5b200bc181491410d47d25467c284 100644 (file)
@@ -122,6 +122,19 @@ int __vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *,
                                     input_item_t *, bool );
 #define vlclua_playlist_add_internal(a,b,c,d,e) __vlclua_playlist_add_internal(VLC_OBJECT(a),b,c,d,e)
 
+/**
+ * Per-interface private state
+ */
+struct intf_sys_t
+{
+    char *psz_filename;
+    lua_State *L;
+
+    vlc_thread_t thread;
+    vlc_mutex_t lock;
+    vlc_cond_t wait;
+    bool exiting;
+};
 
 #endif /* VLC_LUA_H */