]> git.sesse.net Git - vlc/blobdiff - src/missing.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / missing.c
index e5be3950fcbc0b7e5d5f18a753265e32e97929d1..613e08069c2cf0c5f37ad7d39710c17de9eb0fb3 100644 (file)
@@ -344,42 +344,153 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
 
 int vlm_Control (vlm_t *vlm, int query, ...)
 {
+    VLC_UNUSED (vlm);
     assert (0);
 }
 
 void vlm_Delete (vlm_t *vlm)
 {
+    VLC_UNUSED (vlm);
     assert (0);
 }
 
 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
 {
+    VLC_UNUSED (vlm);
+    VLC_UNUSED (cmd);
+    VLC_UNUSED (pm);
     assert (0);
 }
 
 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
 {
+    VLC_UNUSED (a);
+    VLC_UNUSED (b);
     assert (0);
 }
 
 void vlm_MessageDelete (vlm_message_t *m)
 {
+    VLC_UNUSED (m);
     assert (0);
 }
 
 vlm_message_t *vlm_MessageSimpleNew (const char *a)
 {
+    VLC_UNUSED (a);
     return NULL;
 }
 
 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
 {
+    VLC_UNUSED (a);
+    VLC_UNUSED (fmt);
     return vlm_MessageSimpleNew (a);
 }
 
+#undef vlm_New
 vlm_t *vlm_New (vlc_object_t *obj)
 {
      msg_Err (obj, "VLM not compiled-in!");
      return NULL;
 }
 #endif /* !ENABLE_VLM */
+
+#ifndef MEDIA_LIBRARY
+#include<vlc_media_library.h>
+
+#undef ml_Hold
+media_library_t* ml_Hold ( vlc_object_t* p_this )
+{
+    VLC_UNUSED( p_this );
+    return NULL;
+}
+
+#undef ml_Release
+void ml_Release ( vlc_object_t* p_this )
+{
+    VLC_UNUSED( p_this );
+    assert( 0 );
+}
+
+media_library_t* ml_Create ( vlc_object_t *p_this, char* psz_name )
+{
+    VLC_UNUSED( p_this );
+    VLC_UNUSED( psz_name );
+    return NULL;
+}
+
+void ml_Destroy( vlc_object_t * p_this )
+{
+    VLC_UNUSED( p_this );
+    assert( 0 );
+}
+
+ml_media_t* media_New( media_library_t* p_ml, int id, ml_select_e select, bool reload )
+{
+    VLC_UNUSED( p_ml );
+    VLC_UNUSED( id );
+    VLC_UNUSED( select );
+    VLC_UNUSED( reload );
+    assert( 0 );
+    return NULL;
+}
+
+#undef ml_UpdateSimple
+int ml_UpdateSimple( media_library_t *p_media_library, ml_select_e selected_type,
+                                     const char* psz_lvalue, int id, ... )
+{
+    VLC_UNUSED( p_media_library );
+    VLC_UNUSED( selected_type );
+    VLC_UNUSED( psz_lvalue );
+    VLC_UNUSED( id );
+    assert( 0 );
+    return 0;
+}
+
+ml_ftree_t* ml_OpConnectChilds( ml_op_e op, ml_ftree_t* left, ml_ftree_t* right )
+{
+    VLC_UNUSED( op );
+    VLC_UNUSED( left );
+    VLC_UNUSED( right );
+    assert( 0 );
+    return NULL;
+}
+
+ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
+                                          char* sort )
+{
+    VLC_UNUSED( tree );
+    VLC_UNUSED( crit );
+    VLC_UNUSED( limit );
+    VLC_UNUSED( sort );
+    assert( 0 );
+    return NULL;
+}
+
+void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
+                                                ml_ftree_t* p_tree )
+{
+    VLC_UNUSED( p_ml );
+    VLC_UNUSED( p_tree );
+    assert( 0 );
+}
+
+void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
+{
+    VLC_UNUSED( p_media );
+    VLC_UNUSED( psz_role );
+    assert( 0 );
+}
+
+ml_person_t*  ml_GetPersonsFromMedia( media_library_t* p_ml,
+                                                    ml_media_t* p_media,
+                                                    const char *psz_role )
+{
+    VLC_UNUSED( p_ml );
+    VLC_UNUSED( p_media );
+    VLC_UNUSED( psz_role );
+    assert( 0 );
+    return NULL;
+}
+#endif /* !MEDIA_LIBRARY */