Changeset cd5ed364efe9cdf752c48e0fa158ff680964ceeb
- Timestamp:
- 03/02/07 23:01:20 (2 years ago)
- git-parent:
- Files:
-
- configure.ac (modified) (1 diff)
- include/vlc/libvlc.h (modified) (70 diffs)
- include/vlc/vlc.h (modified) (39 diffs)
- include/vlc_common.h (modified) (3 diffs)
- src/Makefile.am (modified) (2 diffs)
- src/vlc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
configure.ac
rebf11a9 rcd5ed36 5603 5603 FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll" 5604 5604 VLC_ADD_PLUGINS([${BUILTINS}]) 5605 VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT]) 5605 5606 BUILTINS="" 5606 5607 ], [ include/vlc/libvlc.h
ra2d6f90 rcd5ed36 62 62 * \param p_exception the exception to initialize 63 63 */ 64 void libvlc_exception_init( libvlc_exception_t *p_exception );64 VLC_PUBLIC_API void libvlc_exception_init( libvlc_exception_t *p_exception ); 65 65 66 66 /** … … 69 69 * \return 0 if no exception raised, 1 else 70 70 */ 71 int libvlc_exception_raised( libvlc_exception_t *p_exception );71 VLC_PUBLIC_API int libvlc_exception_raised( libvlc_exception_t *p_exception ); 72 72 73 73 /** … … 76 76 * \param psz_message the exception message 77 77 */ 78 void libvlc_exception_raise( libvlc_exception_t *p_exception, const char *psz_format, ... );78 VLC_PUBLIC_API void libvlc_exception_raise( libvlc_exception_t *p_exception, const char *psz_format, ... ); 79 79 80 80 /** … … 83 83 * \param p_exception the exception to clear 84 84 */ 85 void libvlc_exception_clear( libvlc_exception_t * );85 VLC_PUBLIC_API void libvlc_exception_clear( libvlc_exception_t * ); 86 86 87 87 /** … … 91 91 * for example) 92 92 */ 93 char* libvlc_exception_get_message( libvlc_exception_t *p_exception );93 VLC_PUBLIC_API char* libvlc_exception_get_message( libvlc_exception_t *p_exception ); 94 94 95 95 /**@} */ … … 114 114 * \param exception an initialized exception pointer 115 115 */ 116 libvlc_instance_t * libvlc_new( int , char **, libvlc_exception_t *);116 VLC_PUBLIC_API libvlc_instance_t * libvlc_new( int , char **, libvlc_exception_t *); 117 117 118 118 /** … … 122 122 * \param p_instance the instance 123 123 */ 124 int libvlc_get_vlc_id( libvlc_instance_t *p_instance );124 VLC_PUBLIC_API int libvlc_get_vlc_id( libvlc_instance_t *p_instance ); 125 125 126 126 /** … … 128 128 * \param p_instance the instance to destroy 129 129 */ 130 void libvlc_destroy( libvlc_instance_t *, libvlc_exception_t * );130 VLC_PUBLIC_API void libvlc_destroy( libvlc_instance_t *, libvlc_exception_t * ); 131 131 132 132 /** @}*/ … … 144 144 * Set loop variable 145 145 */ 146 void libvlc_playlist_loop( libvlc_instance_t* , vlc_bool_t,147 libvlc_exception_t * );146 VLC_PUBLIC_API void libvlc_playlist_loop( libvlc_instance_t* , vlc_bool_t, 147 libvlc_exception_t * ); 148 148 149 149 /** … … 157 157 * \param p_exception an initialized exception 158 158 */ 159 void libvlc_playlist_play( libvlc_instance_t*, int, int, char **,160 libvlc_exception_t * );159 VLC_PUBLIC_API void libvlc_playlist_play( libvlc_instance_t*, int, int, char **, 160 libvlc_exception_t * ); 161 161 162 162 /** … … 165 165 * \param p_exception an initialized exception 166 166 */ 167 void libvlc_playlist_pause( libvlc_instance_t *, libvlc_exception_t * );167 VLC_PUBLIC_API void libvlc_playlist_pause( libvlc_instance_t *, libvlc_exception_t * ); 168 168 169 169 /** … … 173 173 * \return 0 if the playlist is stopped or paused, 1 if it is running 174 174 */ 175 int libvlc_playlist_isplaying( libvlc_instance_t *, libvlc_exception_t * );175 VLC_PUBLIC_API int libvlc_playlist_isplaying( libvlc_instance_t *, libvlc_exception_t * ); 176 176 177 177 /** … … 181 181 * \return the number of items 182 182 */ 183 int libvlc_playlist_items_count( libvlc_instance_t *, libvlc_exception_t * );183 VLC_PUBLIC_API int libvlc_playlist_items_count( libvlc_instance_t *, libvlc_exception_t * ); 184 184 185 185 /** … … 188 188 * \param p_exception an initialized exception 189 189 */ 190 void libvlc_playlist_stop( libvlc_instance_t *, libvlc_exception_t * );190 VLC_PUBLIC_API void libvlc_playlist_stop( libvlc_instance_t *, libvlc_exception_t * ); 191 191 192 192 /** … … 195 195 * \param p_exception an initialized exception 196 196 */ 197 void libvlc_playlist_next( libvlc_instance_t *, libvlc_exception_t * );197 VLC_PUBLIC_API void libvlc_playlist_next( libvlc_instance_t *, libvlc_exception_t * ); 198 198 199 199 /** … … 202 202 * \param p_exception an initialized exception 203 203 */ 204 void libvlc_playlist_prev( libvlc_instance_t *, libvlc_exception_t * );204 VLC_PUBLIC_API void libvlc_playlist_prev( libvlc_instance_t *, libvlc_exception_t * ); 205 205 206 206 /** … … 209 209 * \param p_exception an initialized exception 210 210 */ 211 void libvlc_playlist_clear( libvlc_instance_t *, libvlc_exception_t * );211 VLC_PUBLIC_API void libvlc_playlist_clear( libvlc_instance_t *, libvlc_exception_t * ); 212 212 213 213 /** … … 219 219 * \return the identifier of the new item 220 220 */ 221 int libvlc_playlist_add( libvlc_instance_t *, const char *, const char *,222 libvlc_exception_t * );221 VLC_PUBLIC_API int libvlc_playlist_add( libvlc_instance_t *, const char *, const char *, 222 libvlc_exception_t * ); 223 223 224 224 /** … … 232 232 * \return the identifier of the new item 233 233 */ 234 int libvlc_playlist_add_extended( libvlc_instance_t *, const char *,235 const char *, int, const char **,236 libvlc_exception_t * );234 VLC_PUBLIC_API int libvlc_playlist_add_extended( libvlc_instance_t *, const char *, 235 const char *, int, const char **, 236 libvlc_exception_t * ); 237 237 238 238 /** … … 243 243 * \return 244 244 */ 245 int libvlc_playlist_delete_item( libvlc_instance_t *, int,246 libvlc_exception_t * );245 VLC_PUBLIC_API int libvlc_playlist_delete_item( libvlc_instance_t *, int, 246 libvlc_exception_t * ); 247 247 248 248 typedef struct libvlc_input_t libvlc_input_t; … … 253 253 * \return an input object 254 254 */ 255 libvlc_input_t *libvlc_playlist_get_input( libvlc_instance_t *,256 libvlc_exception_t * );255 VLC_PUBLIC_API libvlc_input_t *libvlc_playlist_get_input( libvlc_instance_t *, 256 libvlc_exception_t * ); 257 257 258 258 /** @}*/ … … 270 270 * \param p_input the input to free 271 271 */ 272 void libvlc_input_free( libvlc_input_t * );272 VLC_PUBLIC_API void libvlc_input_free( libvlc_input_t * ); 273 273 274 274 /// \bug This might go away ... to be replaced by a broader system 275 vlc_int64_t libvlc_input_get_length ( libvlc_input_t *, libvlc_exception_t *);276 vlc_int64_t libvlc_input_get_time ( libvlc_input_t *, libvlc_exception_t *);277 void libvlc_input_set_time ( libvlc_input_t *, vlc_int64_t, libvlc_exception_t *);278 float libvlc_input_get_position ( libvlc_input_t *, libvlc_exception_t *);279 void libvlc_input_set_position ( libvlc_input_t *, float, libvlc_exception_t *);280 vlc_bool_t libvlc_input_will_play ( libvlc_input_t *, libvlc_exception_t *);281 float libvlc_input_get_rate ( libvlc_input_t *, libvlc_exception_t *);282 void libvlc_input_set_rate ( libvlc_input_t *, float, libvlc_exception_t *);283 int libvlc_input_get_state ( libvlc_input_t *, libvlc_exception_t *);275 VLC_PUBLIC_API vlc_int64_t libvlc_input_get_length ( libvlc_input_t *, libvlc_exception_t *); 276 VLC_PUBLIC_API vlc_int64_t libvlc_input_get_time ( libvlc_input_t *, libvlc_exception_t *); 277 VLC_PUBLIC_API void libvlc_input_set_time ( libvlc_input_t *, vlc_int64_t, libvlc_exception_t *); 278 VLC_PUBLIC_API float libvlc_input_get_position ( libvlc_input_t *, libvlc_exception_t *); 279 VLC_PUBLIC_API void libvlc_input_set_position ( libvlc_input_t *, float, libvlc_exception_t *); 280 VLC_PUBLIC_API vlc_bool_t libvlc_input_will_play ( libvlc_input_t *, libvlc_exception_t *); 281 VLC_PUBLIC_API float libvlc_input_get_rate ( libvlc_input_t *, libvlc_exception_t *); 282 VLC_PUBLIC_API void libvlc_input_set_rate ( libvlc_input_t *, float, libvlc_exception_t *); 283 VLC_PUBLIC_API int libvlc_input_get_state ( libvlc_input_t *, libvlc_exception_t *); 284 284 285 285 /** @} */ … … 314 314 * \param p_exception an initialized exception 315 315 */ 316 vlc_bool_t libvlc_input_has_vout( libvlc_input_t *, libvlc_exception_t *);317 float libvlc_input_get_fps( libvlc_input_t *, libvlc_exception_t *);316 VLC_PUBLIC_API vlc_bool_t libvlc_input_has_vout( libvlc_input_t *, libvlc_exception_t *); 317 VLC_PUBLIC_API float libvlc_input_get_fps( libvlc_input_t *, libvlc_exception_t *); 318 318 319 319 /** … … 322 322 * \param p_exception an initialized exception 323 323 */ 324 void libvlc_toggle_fullscreen( libvlc_input_t *, libvlc_exception_t * );324 VLC_PUBLIC_API void libvlc_toggle_fullscreen( libvlc_input_t *, libvlc_exception_t * ); 325 325 326 326 /** … … 330 330 * \param p_exception an initialized exception 331 331 */ 332 void libvlc_set_fullscreen( libvlc_input_t *, int, libvlc_exception_t * );332 VLC_PUBLIC_API void libvlc_set_fullscreen( libvlc_input_t *, int, libvlc_exception_t * ); 333 333 334 334 /** … … 338 338 * \return the fullscreen status (boolean) 339 339 */ 340 int libvlc_get_fullscreen( libvlc_input_t *, libvlc_exception_t * );340 VLC_PUBLIC_API int libvlc_get_fullscreen( libvlc_input_t *, libvlc_exception_t * ); 341 341 342 342 /** … … 346 346 * \return the video height 347 347 */ 348 int libvlc_video_get_height( libvlc_input_t *, libvlc_exception_t * );348 VLC_PUBLIC_API int libvlc_video_get_height( libvlc_input_t *, libvlc_exception_t * ); 349 349 350 350 /** … … 354 354 * \return the video width 355 355 */ 356 int libvlc_video_get_width( libvlc_input_t *, libvlc_exception_t * );356 VLC_PUBLIC_API int libvlc_video_get_width( libvlc_input_t *, libvlc_exception_t * ); 357 357 358 358 /** … … 362 362 * \return the video aspect ratio 363 363 */ 364 char *libvlc_video_get_aspect_ratio( libvlc_input_t *, libvlc_exception_t * );364 VLC_PUBLIC_API char *libvlc_video_get_aspect_ratio( libvlc_input_t *, libvlc_exception_t * ); 365 365 366 366 /** … … 370 370 * \param p_exception an initialized exception 371 371 */ 372 void libvlc_video_set_aspect_ratio( libvlc_input_t *, char *, libvlc_exception_t * );372 VLC_PUBLIC_API void libvlc_video_set_aspect_ratio( libvlc_input_t *, char *, libvlc_exception_t * ); 373 373 374 374 /** … … 378 378 * \return the crop filter geometry 379 379 */ 380 char *libvlc_video_get_crop_geometry( libvlc_input_t *, libvlc_exception_t * );380 VLC_PUBLIC_API char *libvlc_video_get_crop_geometry( libvlc_input_t *, libvlc_exception_t * ); 381 381 382 382 /** … … 386 386 * \param p_exception an initialized exception 387 387 */ 388 void libvlc_video_set_crop_geometry( libvlc_input_t *, char *, libvlc_exception_t * );388 VLC_PUBLIC_API void libvlc_video_set_crop_geometry( libvlc_input_t *, char *, libvlc_exception_t * ); 389 389 390 390 /** … … 394 394 * \param p_exception an initialized exception 395 395 */ 396 void libvlc_video_take_snapshot( libvlc_input_t *, char *, libvlc_exception_t * );397 398 int libvlc_video_destroy( libvlc_input_t *, libvlc_exception_t *);396 VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_input_t *, char *, libvlc_exception_t * ); 397 398 VLC_PUBLIC_API int libvlc_video_destroy( libvlc_input_t *, libvlc_exception_t *); 399 399 400 400 /** … … 406 406 * \return the success status (boolean) 407 407 */ 408 void libvlc_video_resize( libvlc_input_t *, int, int, libvlc_exception_t *);408 VLC_PUBLIC_API void libvlc_video_resize( libvlc_input_t *, int, int, libvlc_exception_t *); 409 409 410 410 /** … … 415 415 * \return the success status (boolean) 416 416 */ 417 int libvlc_video_reparent( libvlc_input_t *, libvlc_drawable_t, libvlc_exception_t * );417 VLC_PUBLIC_API int libvlc_video_reparent( libvlc_input_t *, libvlc_drawable_t, libvlc_exception_t * ); 418 418 419 419 /** … … 424 424 * \param p_exception an initialized exception 425 425 */ 426 void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * );426 VLC_PUBLIC_API void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * ); 427 427 428 428 /** … … 434 434 * \param p_exception an initialized exception 435 435 */ 436 void libvlc_video_set_size( libvlc_instance_t *, int, int, libvlc_exception_t * );436 VLC_PUBLIC_API void libvlc_video_set_size( libvlc_instance_t *, int, int, libvlc_exception_t * ); 437 437 438 438 /** … … 444 444 * \param p_exception an initialized exception 445 445 */ 446 void libvlc_video_set_viewport( libvlc_instance_t *, const libvlc_rectangle_t *, const libvlc_rectangle_t *, libvlc_exception_t * );446 VLC_PUBLIC_API void libvlc_video_set_viewport( libvlc_instance_t *, const libvlc_rectangle_t *, const libvlc_rectangle_t *, libvlc_exception_t * ); 447 447 448 448 … … 468 468 * \return void 469 469 */ 470 void libvlc_audio_toggle_mute( libvlc_instance_t *, libvlc_exception_t * );470 VLC_PUBLIC_API void libvlc_audio_toggle_mute( libvlc_instance_t *, libvlc_exception_t * ); 471 471 472 472 /** … … 476 476 * \return the mute status (boolean) 477 477 */ 478 vlc_bool_t libvlc_audio_get_mute( libvlc_instance_t *, libvlc_exception_t * );478 VLC_PUBLIC_API vlc_bool_t libvlc_audio_get_mute( libvlc_instance_t *, libvlc_exception_t * ); 479 479 480 480 /** … … 485 485 * \return void 486 486 */ 487 void libvlc_audio_set_mute( libvlc_instance_t *, vlc_bool_t , libvlc_exception_t * );487 VLC_PUBLIC_API void libvlc_audio_set_mute( libvlc_instance_t *, vlc_bool_t , libvlc_exception_t * ); 488 488 489 489 /** … … 493 493 * \return the audio level (int) 494 494 */ 495 int libvlc_audio_get_volume( libvlc_instance_t *, libvlc_exception_t * );495 VLC_PUBLIC_API int libvlc_audio_get_volume( libvlc_instance_t *, libvlc_exception_t * ); 496 496 497 497 /** … … 501 501 * \param p_exception an initialized exception 502 502 */ 503 void libvlc_audio_set_volume( libvlc_instance_t *, int, libvlc_exception_t *);503 VLC_PUBLIC_API void libvlc_audio_set_volume( libvlc_instance_t *, int, libvlc_exception_t *); 504 504 505 505 /** … … 509 509 + * \return the audio track (int) 510 510 + */ 511 int libvlc_audio_get_track( libvlc_input_t *, libvlc_exception_t * );511 VLC_PUBLIC_API int libvlc_audio_get_track( libvlc_input_t *, libvlc_exception_t * ); 512 512 513 513 /** … … 517 517 * \param p_exception an initialized exception 518 518 */ 519 void libvlc_audio_set_track( libvlc_input_t *, int, libvlc_exception_t * );519 VLC_PUBLIC_API void libvlc_audio_set_track( libvlc_input_t *, int, libvlc_exception_t * ); 520 520 521 521 /** … … 525 525 * \return the audio channel (int) 526 526 */ 527 int libvlc_audio_get_channel( libvlc_instance_t *, libvlc_exception_t * );527 VLC_PUBLIC_API int libvlc_audio_get_channel( libvlc_instance_t *, libvlc_exception_t * ); 528 528 529 529 /** … … 533 533 * \param p_exception an initialized exception 534 534 */ 535 void libvlc_audio_set_channel( libvlc_instance_t *, int, libvlc_exception_t * );535 VLC_PUBLIC_API void libvlc_audio_set_channel( libvlc_instance_t *, int, libvlc_exception_t * ); 536 536 537 537 /** @} */ … … 550 550 * \param p_exception an initialized exception 551 551 */ 552 void libvlc_vlm_add_broadcast( libvlc_instance_t *, char *, char *, char* ,553 int, char **, int, int, libvlc_exception_t * );552 VLC_PUBLIC_API void libvlc_vlm_add_broadcast( libvlc_instance_t *, char *, char *, char* , 553 int, char **, int, int, libvlc_exception_t * ); 554 554 555 555 /** … … 559 559 * \param p_exception an initialized exception 560 560 */ 561 void libvlc_vlm_del_media( libvlc_instance_t *, char *, libvlc_exception_t * );561 VLC_PUBLIC_API void libvlc_vlm_del_media( libvlc_instance_t *, char *, libvlc_exception_t * ); 562 562 563 563 /** … … 568 568 * \param p_exception an initialized exception 569 569 */ 570 void libvlc_vlm_set_enabled( libvlc_instance_t *, char *, int,571 libvlc_exception_t *);570 VLC_PUBLIC_API void libvlc_vlm_set_enabled( libvlc_instance_t *, char *, int, 571 libvlc_exception_t *); 572 572 573 573 /** … … 578 578 * \param p_exception an initialized exception 579 579 */ 580 void libvlc_vlm_set_output( libvlc_instance_t *, char *, char*,581 libvlc_exception_t *);580 VLC_PUBLIC_API void libvlc_vlm_set_output( libvlc_instance_t *, char *, char*, 581 libvlc_exception_t *); 582 582 583 583 /** … … 589 589 * \param p_exception an initialized exception 590 590 */ 591 void libvlc_vlm_set_input( libvlc_instance_t *, char *, char*,592 libvlc_exception_t *);591 VLC_PUBLIC_API void libvlc_vlm_set_input( libvlc_instance_t *, char *, char*, 592 libvlc_exception_t *); 593 593 594 594 /** … … 599 599 * \param p_exception an initialized exception 600 600 */ 601 void libvlc_vlm_set_loop( libvlc_instance_t *, char *, int,602 libvlc_exception_t *);601 VLC_PUBLIC_API void libvlc_vlm_set_loop( libvlc_instance_t *, char *, int, 602 libvlc_exception_t *); 603 603 604 604 /** … … 615 615 * \param p_exception an initialized exception 616 616 */ 617 void libvlc_vlm_change_media( libvlc_instance_t *, char *, char *, char* ,618 int, char **, int, int, libvlc_exception_t * );617 VLC_PUBLIC_API void libvlc_vlm_change_media( libvlc_instance_t *, char *, char *, char* , 618 int, char **, int, int, libvlc_exception_t * ); 619 619 620 620 /** … … 624 624 * \param p_exception an initialized exception 625 625 */ 626 void libvlc_vlm_play_media ( libvlc_instance_t *, char *, libvlc_exception_t * );626 VLC_PUBLIC_API void libvlc_vlm_play_media ( libvlc_instance_t *, char *, libvlc_exception_t * ); 627 627 628 628 /** … … 632 632 * \param p_exception an initialized exception 633 633 */ 634 void libvlc_vlm_stop_media ( libvlc_instance_t *, char *, libvlc_exception_t * );634 VLC_PUBLIC_API void libvlc_vlm_stop_media ( libvlc_instance_t *, char *, libvlc_exception_t * ); 635 635 636 636 /** … … 640 640 * \param p_exception an initialized exception 641 641 */ 642 void libvlc_vlm_pause_media( libvlc_instance_t *, char *, libvlc_exception_t * );642 VLC_PUBLIC_API void libvlc_vlm_pause_media( libvlc_instance_t *, char *, libvlc_exception_t * ); 643 643 644 644 /** … … 649 649 * \param p_exception an initialized exception 650 650 */ 651 void libvlc_vlm_seek_media( libvlc_instance_t *, char *,652 float, libvlc_exception_t * );651 VLC_PUBLIC_API void libvlc_vlm_seek_media( libvlc_instance_t *, char *, 652 float, libvlc_exception_t * ); 653 653 654 654 /** … … 658 658 * \param p_exception an initialized exception 659 659 */ 660 char* libvlc_vlm_show_media( libvlc_instance_t *, char *, libvlc_exception_t * );660 VLC_PUBLIC_API char* libvlc_vlm_show_media( libvlc_instance_t *, char *, libvlc_exception_t * ); 661 661 662 662 #define LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( attr, returnType, getType, default)\ … … 664 664 char *, int , libvlc_exception_t * ); 665 665 666 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( position, float, Float, -1);667 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( time, int, Integer, -1);668 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( length, int, Integer, -1);669 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( rate, int, Integer, -1);670 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( title, int, Integer, 0);671 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( chapter, int, Integer, 0);672 LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( seekable, int, Bool, 0);666 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( position, float, Float, -1); 667 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( time, int, Integer, -1); 668 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( length, int, Integer, -1); 669 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( rate, int, Integer, -1); 670 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( title, int, Integer, 0); 671 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( chapter, int, Integer, 0); 672 VLC_PUBLIC_API LIBVLC_VLM_GET_MEDIA_ATTRIBUTE( seekable, int, Bool, 0); 673 673 674 674 #undef LIBVLC_VLM_GET_MEDIA_ATTRIBUTE … … 708 708 * \param exception an initialized exception pointer 709 709 */ 710 unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance, libvlc_exception_t *p_e ); 710 VLC_PUBLIC_API unsigned libvlc_get_log_verbosity( const libvlc_instance_t *p_instance, 711 libvlc_exception_t *p_e ); 711 712 712 713 /** … … 715 716 * \param exception an initialized exception pointer 716 717 */ 717 void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level, libvlc_exception_t *p_e ); 718 VLC_PUBLIC_API void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level, 719 libvlc_exception_t *p_e ); 718 720 719 721 /** … … 722 724 * \param exception an initialized exception pointer 723 725 */ 724 libvlc_log_t *libvlc_log_open( const libvlc_instance_t *, libvlc_exception_t *);726 VLC_PUBLIC_API libvlc_log_t *libvlc_log_open( const libvlc_instance_t *, libvlc_exception_t *); 725 727 726 728 /** … … 729 731 * \param exception an initialized exception pointer 730 732 */ 731 void libvlc_log_close( libvlc_log_t *, libvlc_exception_t *);733 VLC_PUBLIC_API void libvlc_log_close( libvlc_log_t *, libvlc_exception_t *); 732 734 733 735 /** … … 736 738 * \param exception an initialized exception pointer 737 739 */ 738 unsigned libvlc_log_count( const libvlc_log_t *, libvlc_exception_t *);740 VLC_PUBLIC_API unsigned libvlc_log_count( const libvlc_log_t *, libvlc_exception_t *); 739 741 740 742 /** … … 744 746 * \param exception an initialized exception pointer 745 747 */ 746 void libvlc_log_clear( libvlc_log_t *, libvlc_exception_t *);748 VLC_PUBLIC_API void libvlc_log_clear( libvlc_log_t *, libvlc_exception_t *); 747 749 748 750 /** … … 751 753 * \param exception an initialized exception pointer 752 754 */ 753 libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *, libvlc_exception_t *);755 VLC_PUBLIC_API libvlc_log_iterator_t *libvlc_log_get_iterator( const libvlc_log_t *, libvlc_exception_t *); 754 756 755 757 /** … … 758 760 * \param exception an initialized exception pointer 759 761 */ 760 void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter, libvlc_exception_t *p_e );762 VLC_PUBLIC_API void libvlc_log_iterator_free( libvlc_log_iterator_t *p_iter, libvlc_exception_t *p_e ); 761 763 762 764 /** … … 765 767 * \param exception an initialized exception pointer 766 768 */ 767 int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter, libvlc_exception_t *p_e );769 VLC_PUBLIC_API int libvlc_log_iterator_has_next( const libvlc_log_iterator_t *p_iter, libvlc_exception_t *p_e ); 768 770 769 771 /** … … 773 775 * \param exception an initialized exception pointer 774 776 */ 775 libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter,776 struct libvlc_log_message_t *buffer,777 libvlc_exception_t *p_e );777 VLC_PUBLIC_API libvlc_log_message_t *libvlc_log_iterator_next( libvlc_log_iterator_t *p_iter, 778 struct libvlc_log_message_t *buffer, 779 libvlc_exception_t *p_e ); 778 780 779 781 /** @} */ include/vlc/vlc.h
rb28e412 rcd5ed36 157 157 158 158 /***************************************************************************** 159 * Shared library Export macros 160 *****************************************************************************/ 161 #if defined(WIN32) && defined(DLL_EXPORT) 162 # define VLC_PUBLIC_API extern __declspec(dllexport) 163 #else 164 # define VLC_PUBLIC_API extern 165 #endif 166 167 /***************************************************************************** 159 168 * Exported libvlc API 160 169 *****************************************************************************/ … … 166 175 * \return a string containing the libvlc version 167 176 */ 168 char const * VLC_Version ( void );177 VLC_PUBLIC_API char const * VLC_Version ( void ); 169 178 170 179 /** … … 173 182 * \return a string containing the libvlc compile time 174 183 */ 175 char const * VLC_CompileTime ( void );184 VLC_PUBLIC_API char const * VLC_CompileTime ( void ); 176 185 177 186 /** … … 180 189 * \return a string containing the username of the libvlc builder 181 190 */ 182 char const * VLC_CompileBy ( void );191 VLC_PUBLIC_API char const * VLC_CompileBy ( void ); 183 192 184 193 /** … … 187 196 * \return a string containing the host of the libvlc builder 188 197 */ 189 char const * VLC_CompileHost ( void );198 VLC_PUBLIC_API char const * VLC_CompileHost ( void ); 190 199 191 200 /** … … 194 203 * \return a string containing the domain name of the host of the libvlc builder 195 204 */ 196 char const * VLC_CompileDomain ( void );205 VLC_PUBLIC_API char const * VLC_CompileDomain ( void ); 197 206 198 207 /** … … 201 210 * \return a string containing the libvlc compiler version 202 211 */ 203 char const * VLC_Compiler ( void );212 VLC_PUBLIC_API char const * VLC_Compiler ( void ); 204 213 205 214 /** … … 208 217 * \return a string containing the libvlc subversion changeset 209 218 */ 210 char const * VLC_Changeset ( void );219 VLC_PUBLIC_API char const * VLC_Changeset ( void ); 211 220 212 221 /** … … 216 225 * \return an error string 217 226 */ 218 char const * VLC_Error ( int i_err );227 VLC_PUBLIC_API char const * VLC_Error ( int i_err ); 219 228 220 229 #endif /* __LIBVLC__ */ … … 228 237 * \return vlc object id or an error code 229 238 */ 230 int VLC_Create( void );239 VLC_PUBLIC_API int VLC_Create( void ); 231 240 232 241 /** … … 244 253 * \return VLC_SUCCESS on success 245 254 */ 246 int VLC_Init( int, int, char *[] );255 VLC_PUBLIC_API int VLC_Init( int, int, char *[] ); 247 256 248 257 /** … … 260 269 * \return VLC_SUCCESS on success 261 270 */ 262 int VLC_AddIntf( int, char const *, vlc_bool_t, vlc_bool_t );271 VLC_PUBLIC_API int VLC_AddIntf( int, char const *, vlc_bool_t, vlc_bool_t ); 263 272 264 273 /** … … 271 280 * \return VLC_SUCCESS on success 272 281 */ 273 int VLC_Die( int );282 VLC_PUBLIC_API int VLC_Die( int ); 274 283 275 284 /** … … 284 293 * \return VLC_SUCCESS on success 285 294 */ 286 int VLC_CleanUp( int );295 VLC_PUBLIC_API int VLC_CleanUp( int ); 287 296 288 297 /** … … 296 305 * \return VLC_SUCCESS on success 297 306 */ 298 int VLC_Destroy( int );307 VLC_PUBLIC_API int VLC_Destroy( int ); 299 308 300 309 /** … … 310 319 * \return VLC_SUCCESS on success 311 320 */ 312 int VLC_VariableSet( int, char const *, vlc_value_t );321 VLC_PUBLIC_API int VLC_VariableSet( int, char const *, vlc_value_t ); 313 322 314 323 /** … … 325 334 * \return VLC_SUCCESS on success 326 335 */ 327 int VLC_VariableGet( int, char const *, vlc_value_t * );336 VLC_PUBLIC_API int VLC_VariableGet( int, char const *, vlc_value_t * ); 328 337 329 338 /** … … 338 347 * \return VLC_SUCCESS on success 339 348 */ 340 int VLC_VariableType( int, char const *, int * );349 VLC_PUBLIC_API int VLC_VariableType( int, char const *, int * ); 341 350 342 351 /** … … 354 363 * \return VLC_SUCCESS on success 355 364 */ 356 int VLC_AddTarget( int, char const *, const char **, int, int, int );365 VLC_PUBLIC_API int VLC_AddTarget( int, char const *, const char **, int, int, int ); 357 366 358 367 /** … … 366 375 * \return VLC_SUCCESS on success 367 376 */ 368 int VLC_Play( int );377 VLC_PUBLIC_API int VLC_Play( int ); 369 378 370 379 /** … … 377 386 * \return VLC_SUCCESS on success 378 387 */ 379 int VLC_Pause( int );388 VLC_PUBLIC_API int VLC_Pause( int ); 380 389 381 390 /** … … 390 399 * \return VLC_SUCCESS on success 391 400 */ 392 int VLC_Stop( int );401 VLC_PUBLIC_API int VLC_Stop( int ); 393 402 394 403 /** … … 401 410 * \return VLC_TRUE or VLC_FALSE 402 411 */ 403 vlc_bool_t VLC_IsPlaying( int );412 VLC_PUBLIC_API vlc_bool_t VLC_IsPlaying( int ); 404 413 405 414 /** … … 413 422 * \return a float in the range of 0.0 - 1.0 414 423 */ 415 float VLC_PositionGet( int );424 VLC_PUBLIC_API float VLC_PositionGet( int ); 416 425 417 426 /** … … 426 435 * \return a float in the range of 0.0 - 1.0 427 436 */ 428 float VLC_PositionSet( int, float );437 VLC_PUBLIC_API float VLC_PositionSet( int, float ); 429 438 430 439 /** … … 437 446 * \return the offset from 0:00 in seconds 438 447 */ 439 int VLC_TimeGet( int );448 VLC_PUBLIC_API int VLC_TimeGet( int ); 440 449 441 450 /** … … 452 461 * \return VLC_SUCCESS on success 453 462 */ 454 int VLC_TimeSet( int, int, vlc_bool_t );463 VLC_PUBLIC_API int VLC_TimeSet( int, int, vlc_bool_t ); 455 464 456 465 /** … … 463 472 * \return the length in seconds 464 473 */ 465 int VLC_LengthGet( int );474 VLC_PUBLIC_API int VLC_LengthGet( int ); 466 475 467 476 /** … … 474 483 * \return the current speedrate 475 484 */ 476 float VLC_SpeedFaster( int );485 VLC_PUBLIC_API float VLC_SpeedFaster( int ); 477 486 478 487 /** … … 485 494 * \return the current speedrate 486 495 */ 487 float VLC_SpeedSlower( int );496 VLC_PUBLIC_API float VLC_SpeedSlower( int ); 488 497 489 498 /** … … 493 502 * \return the index of the playlistitem that is currently selected for play 494 503 */ 495 int VLC_PlaylistIndex( int );504 VLC_PUBLIC_API int VLC_PlaylistIndex( int ); 496 505 497 506 /** … … 501 510 * \return amount of playlist items 502 511 */ 503 int VLC_PlaylistNumberOfItems( int );512 VLC_PUBLIC_API int VLC_PlaylistNumberOfItems( int ); 504 513 505 514 /** … … 511 520 * \return VLC_SUCCESS on success 512 521 */ 513 int VLC_PlaylistNext( int );522 VLC_PUBLIC_API int VLC_PlaylistNext( int ); 514 523 515 524 /** … … 521 530 * \return VLC_SUCCESS on success 522 531 */ 523 int VLC_PlaylistPrev( int );532 VLC_PUBLIC_API int VLC_PlaylistPrev( int ); 524 533 525 534 /** … … 533 542 * \return VLC_SUCCESS on success 534 543 */ 535 int VLC_PlaylistClear( int );544 VLC_PUBLIC_API int VLC_PlaylistClear( int ); 536 545 537 546 /** … … 542 551 * \return the new volume (range 0-200 %) 543 552 */ 544 int VLC_VolumeSet( int, int );553 VLC_PUBLIC_API int VLC_VolumeSet( int, int ); 545 554 546 555 /** … … 552 561 * \return the current volume (range 0-200 %) 553 562 */ 554 int VLC_VolumeGet( int );563 VLC_PUBLIC_API int VLC_VolumeGet( int ); 555 564 556 565 /** … … 560 569 * \return VLC_SUCCESS on success 561 570 */ 562 int VLC_VolumeMute( int );571 VLC_PUBLIC_API int VLC_VolumeMute( int ); 563 572 564 573 /** … … 570 579 * \return VLC_SUCCESS on success 571 580 */ 572 int VLC_FullScreen( int );581 VLC_PUBLIC_API int VLC_FullScreen( int ); 573 582 574 583 include/vlc_common.h
r1360a81 rcd5ed36 473 473 #include "vlc_modules_macros.h" 474 474 475 #if !defined (__PLUGIN__) || defined (HAVE_SHARED_LIBVLC) 475 #if defined (WIN32) && defined (DLL_EXPORT) 476 # ifdef __cplusplus 477 # define VLC_EXPORT( type, name, args ) extern "C" __declspec(dllexport) type name args 478 # define VLC_INTERNAL( type, name, args ) extern "C" type name args 479 # else 480 # define VLC_EXPORT( type, name, args ) __declspec(dllexport) type name args 481 # define VLC_INTERNAL( type, name, args ) type name args 482 # endif 483 #else 484 # if !defined (__PLUGIN__) || defined (HAVE_SHARED_LIBVLC) 476 485 # ifdef __cplusplus 477 486 # define VLC_EXPORT( type, name, args ) extern "C" type name args … … 479 488 # define VLC_EXPORT( type, name, args ) type name args 480 489 # endif 481 # else490 # else 482 491 # define VLC_EXPORT( type, name, args ) struct _u_n_u_s_e_d_ 483 492 extern module_symbols_t* p_symbols; 484 #endif 485 #define VLC_INTERNAL( type, name, args ) VLC_EXPORT (type, name, args) 493 # endif 494 # define VLC_INTERNAL( type, name, args ) VLC_EXPORT (type, name, args) 495 #endif 486 496 487 497 /***************************************************************************** … … 988 998 VLC_INTERNAL( void *, vlc_wopendir, ( const wchar_t * ) ); 989 999 VLC_INTERNAL( struct _wdirent *, vlc_wreaddir, ( void * ) ); 990 VLC_ INTERNAL( int, vlc_wclosedir, ( void * ) );1000 VLC_EXPORT( int, vlc_wclosedir, ( void * ) ); 991 1001 VLC_INTERNAL( void, vlc_rewinddir, ( void * ) ); 992 1002 VLC_INTERNAL( void, vlc_seekdir, ( void *, long ) ); src/Makefile.am
r9d52c6b rcd5ed36 1 ############################################################################### 1 2 2 # Automake targets and declarations 3 3 ############################################################################### … … 157 157 DATA_noinst_libvlc = libvlc$(LIBEXT) libvlc$(LIBEXT).a 158 158 159 libvlc.dll.a : libvlc$(LIBEXT)160 $(DLLTOOL) - -export-all-symbols -l $@-D $< $(libvlc_a_OBJECTS)159 libvlc.dll.a libvlc.def: libvlc$(LIBEXT) 160 $(DLLTOOL) -z libvlc.def -l libvlc.dll.a -D $< $(libvlc_a_OBJECTS) 161 161 162 162 libvlc$(LIBEXT): $(libvlc_a_OBJECTS) src/vlc.c
rd5a9c50 rcd5ed36 76 76 #endif 77 77 78 rootwrap (); 79 78 #if defined (HAVE_GETEUID) && !defined (SYS_BEOS) 79 rootwrap (); 80 #endif 81 80 82 /* Create a libvlc structure */ 81 83 i_ret = VLC_Create();
