]> git.sesse.net Git - vlc/blobdiff - include/vlc/vlc.h
Changing the order of parameters may be needed, but changing the parameters themselve...
[vlc] / include / vlc / vlc.h
index a42a17d8e5665e5f147abf187b14808f4f75260d..d8e00dcd9e3b4a78478704b10d5e96d01feac040 100644 (file)
@@ -158,11 +158,7 @@ struct vlc_list_t
 /*****************************************************************************
  * Shared library Export macros
  *****************************************************************************/
-#if defined(WIN32) && defined(DLL_EXPORT)
-#  define VLC_PUBLIC_API extern __declspec(dllexport)
-#elif HAVE_ATTRIBUTE_VISIBILITY
-#  define VLC_PUBLIC_API extern __attribute__((visibility("default")))
-#else
+#ifndef VLC_PUBLIC_API
 #  define VLC_PUBLIC_API extern
 #endif
 
@@ -254,7 +250,7 @@ VLC_PUBLIC_API int     VLC_Create( void );
  *  \param ppsz_argv an array of arguments
  *  \return VLC_SUCCESS on success
  */
-VLC_PUBLIC_API int     VLC_Init( int, int, char *[] );
+VLC_PUBLIC_API int     VLC_Init( int, int, const char *[] );
 
 /**
  * Add an interface
@@ -275,7 +271,7 @@ VLC_PUBLIC_API int     VLC_AddIntf( int, char const *, vlc_bool_t, vlc_bool_t );
 /**
  * Ask vlc to die
  *
- * This function sets p_vlc->b_die to VLC_TRUE, but does not do any other
+ * This function sets p_libvlc->b_die to VLC_TRUE, but does not do any other
  * task. It is your duty to call VLC_CleanUp and VLC_Destroy afterwards.
  *
  * \param i_object a vlc object id
@@ -362,7 +358,7 @@ VLC_PUBLIC_API int     VLC_VariableType( int, char const *, int * );
  * \param i_options the amount of options in the ppsz_options array
  * \param i_mode the insert mode to insert the target into the playlist (PLAYLIST_* defines)
  * \param i_pos the position at which to add the new target (PLAYLIST_END for end)
- * \return VLC_SUCCESS on success
+ * \return the item id on success and -1 on error
  */
 VLC_PUBLIC_API int     VLC_AddTarget( int, char const *, const char **, int, int, int );