]> git.sesse.net Git - vlc/blobdiff - src/missing.c
aout: macro-vectorize aout_ChannelsReorder()
[vlc] / src / missing.c
index 3e678cfe8408be258baf4973f58e1c985aee02b8..4dccd82b5c878844e45fa1f14c6371f596429794 100644 (file)
@@ -3,19 +3,19 @@
  *****************************************************************************
  * Copyright (C) 2008 RĂ©mi Denis-Courmont
  *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 /** \file
@@ -32,9 +32,9 @@
 #ifndef ENABLE_HTTPD
 # include <vlc_httpd.h>
 
-char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip)
+char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port)
 {
-    (void) cl; (void) psz_ip;
+    (void) cl; (void) psz_ip; (void) port;
     assert (0);
 }
 
@@ -59,12 +59,11 @@ httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
 httpd_file_t *httpd_FileNew (httpd_host_t *host,
                              const char *url, const char *content_type,
                              const char *login, const char *password,
-                             const vlc_acl_t *acl,
                              httpd_file_callback_t cb, httpd_file_sys_t *data)
 {
     (void) host;
     (void) url; (void) content_type;
-    (void) login; (void) password; (void) acl;
+    (void) login; (void) password;
     (void) cb; (void) data;
     assert (0);
 }
@@ -77,12 +76,11 @@ httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
 
 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
                                    const char *login, const char *password,
-                                   const vlc_acl_t *acl,
                                    httpd_handler_callback_t cb,
                                    httpd_handler_sys_t *data)
 {
     (void) host; (void) url;
-    (void) login; (void) password; (void) acl;
+    (void) login; (void) password;
     (void) cb; (void) data;
     assert (0);
 }
@@ -93,9 +91,22 @@ void httpd_HostDelete (httpd_host_t *h)
     assert (0);
 }
 
-httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
+httpd_host_t *vlc_http_HostNew (vlc_object_t *obj)
 {
-    return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
+    msg_Err (obj, "HTTP server not compiled-in!");
+    return NULL;
+}
+
+httpd_host_t *vlc_https_HostNew (vlc_object_t *obj)
+{
+    msg_Err (obj, "HTTPS server not compiled-in!");
+    return NULL;
+}
+
+httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj)
+{
+    msg_Err (obj, "RTSP server not compiled-in!");
+    return NULL;
 }
 
 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
@@ -123,9 +134,9 @@ httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
     assert (0);
 }
 
-char *httpd_ServerIP (const httpd_client_t *client, char *ip)
+char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
 {
-    (void) client; (void) ip;
+    (void) client; (void) ip; (void) port;
     assert (0);
 }
 
@@ -143,11 +154,10 @@ int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
 
 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
                                  const char *url, const char *content_type,
-                                 const char *login, const char *password,
-                                 const vlc_acl_t *acl)
+                                 const char *login, const char *password)
 {
     (void) host; (void) url; (void) content_type;
-    (void) login; (void) password; (void) acl;
+    (void) login; (void) password;
     assert (0);
 }
 
@@ -157,16 +167,6 @@ int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
     assert (0);
 }
 
-httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
-                                const char *cert, const char *key,
-                                const char *ca, const char *crl)
-{
-     (void) host; (void) port;
-     (void) cert; (void) key; (void) ca; (void) crl;
-     msg_Err (obj, "VLC httpd support not compiled-in!");
-     return NULL;
-}
-
 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
                     httpd_callback_sys_t *data)
 {
@@ -181,18 +181,9 @@ void httpd_UrlDelete (httpd_url_t *url)
 }
 
 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
-                           const char *login, const char *password,
-                           const vlc_acl_t *acl)
+                           const char *login, const char *password)
 {
-    (void) host; (void) url; (void) login; (void) password; (void) acl;
-    assert (0);
-}
-
-httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
-                                 const char *login, const char *password,
-                                 const vlc_acl_t *acl)
-{
-    (void) host; (void) url; (void) login; (void) password; (void) acl;
+    (void) host; (void) url; (void) login; (void) password;
     assert (0);
 }
 #endif /* !ENABLE_HTTPD */
@@ -251,11 +242,9 @@ ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
 #undef sout_AnnounceRegisterSDP
 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
                                                 const char *sdp,
-                                                const char *dst,
-                                                announce_method_t *method)
+                                                const char *dst)
 {
     msg_Err (obj, "SDP export not compiled-in!");
-    assert (method == NULL);
     return NULL;
 }
 
@@ -272,11 +261,6 @@ encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
     return NULL;
 }
 
-void sout_MethodRelease (announce_method_t *method)
-{
-    (void)method;
-}
-
 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
 {
     assert (0);
@@ -292,34 +276,30 @@ void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
     assert (0);
 }
 
-sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
-                         sout_access_out_t *out)
+int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
 {
     assert (0);
 }
 
-void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
+sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
+                         sout_access_out_t *out)
 {
     assert (0);
 }
 
-announce_method_t *sout_SAPMethod (void)
-{
-    return NULL;
-}
-
-void sout_StreamDelete (sout_stream_t *stream)
+void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
 {
     assert (0);
 }
 
-sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
+void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
 {
     assert (0);
 }
 
-void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
-                           int value)
+sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
+                                    sout_stream_t *p_next,
+                                    sout_stream_t **pp_last)
 {
     assert (0);
 }
@@ -337,37 +317,189 @@ 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_MessageNew (const char *a, const char *fmt, ...)
+vlm_message_t *vlm_MessageSimpleNew (const char *a)
 {
+    VLC_UNUSED (a);
     return NULL;
 }
 
-vlm_t *__vlm_New (vlc_object_t *obj)
+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_Get
+media_library_t* ml_Get ( vlc_object_t* p_this )
+{
+    VLC_UNUSED( p_this );
+    return NULL;
+}
+
+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_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 */
+
+#ifndef OSDMENU
+# include <vlc_osd.h>
+
+osd_menu_t *(osd_MenuCreate) (vlc_object_t *obj, const char *file)
+{
+    msg_Err (obj, "OSD menu not supported: %s", file);
+    return NULL;
+}
+
+void (osd_MenuDelete) (vlc_object_t *obj, osd_menu_t *osd)
+{
+    (void) obj; (void) osd;
+    assert (0);
+}
+
+void (osd_MenuShow) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuHide) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuActivate) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuNext) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuPrev) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuUp) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+void (osd_MenuDown) (vlc_object_t *obj)
+{
+    msg_Err (obj, "OSD menu not supported");
+}
+
+osd_button_t *(osd_ButtonFind) (vlc_object_t *obj, int x, int y,
+                                int wh, int ww, int sw, int sh)
+{
+    (void) obj; (void) x; (void) y; (void) wh; (void) ww; (void) sw; (void) sh;
+    return NULL;
+}
+
+void (osd_ButtonSelect) (vlc_object_t *obj, osd_button_t *btn)
+{
+    (void) obj; (void) btn;
+    assert (0);
+}
+#endif