Go to the documentation of this file.
36 #define VLC_LIBVLC_H 1
38 #if defined (_WIN32) && defined (DLL_EXPORT)
39 # define LIBVLC_API __declspec(dllexport)
40 #elif defined (__GNUC__) && (__GNUC__ >= 4)
41 # define LIBVLC_API __attribute__((visibility("default")))
48 # define LIBVLC_DEPRECATED
49 #elif defined(__GNUC__) && \
50 (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
51 # define LIBVLC_DEPRECATED __attribute__((deprecated))
53 # define LIBVLC_DEPRECATED
184 libvlc_new(
int argc ,
const char *
const *argv );
231 void (*cb) (
void *),
void *opaque );
244 const char *
name,
const char *http );
258 const char *version,
const char *icon );
405 const char **module,
const char **
file,
unsigned *
line);
433 const char **
name,
const char **header, uintptr_t *
id);
448 const char *fmt, va_list args);
void libvlc_retain(libvlc_instance_t *p_instance)
Increments the reference count of a libvlc instance.
libvlc_instance_t * libvlc_new(int argc, const char *const *argv)
Create and initialize a libvlc instance.
void libvlc_log_set_file(libvlc_instance_t *p_instance, FILE *stream)
Sets up logging to a file.
void libvlc_release(libvlc_instance_t *p_instance)
Decrement the reference count of a libvlc instance, and destroy it if it reaches zero.
void libvlc_set_exit_handler(libvlc_instance_t *p_instance, void(*cb)(void *), void *opaque)
Registers a callback for the LibVLC exit event.
void libvlc_clearerr(void)
Clears the LibVLC error status for the current thread.
void libvlc_free(void *ptr)
Frees an heap allocation returned by a LibVLC function.
libvlc_module_description_t * libvlc_audio_filter_list_get(libvlc_instance_t *p_instance)
Returns a list of audio filters that are available.
void libvlc_log_get_context(const libvlc_log_t *ctx, const char **module, const char **file, unsigned *line)
Gets log message debug infos.
libvlc_log_level
Logging messages level.
Definition: libvlc.h:373
const char * libvlc_get_compiler(void)
Retrieve libvlc compiler version.
Debug message.
Definition: libvlc.h:375
const char * libvlc_printerr(const char *fmt,...)
Sets the LibVLC error status and message for the current thread.
struct libvlc_event_manager_t libvlc_event_manager_t
Event manager that belongs to a libvlc object, and from whom events can be received.
Definition: libvlc.h:310
struct libvlc_module_description_t * p_next
Definition: libvlc.h:505
const char * libvlc_get_changeset(void)
Retrieve libvlc changeset.
static int64_t libvlc_delay(int64_t pts)
Return the delay (in microseconds) until a certain timestamp.
Definition: libvlc.h:568
int libvlc_add_intf(libvlc_instance_t *p_instance, const char *name)
Try to start a user interface for the libvlc instance.
void(* libvlc_log_cb)(void *data, int level, const libvlc_log_t *ctx, const char *fmt, va_list args)
Callback prototype for LibVLC log message handler.
Definition: libvlc.h:446
void libvlc_module_description_list_release(libvlc_module_description_t *p_list)
Release a list of module descriptions.
void libvlc_event_detach(libvlc_event_manager_t *p_event_manager, libvlc_event_type_t i_event_type, libvlc_callback_t f_callback, void *p_user_data)
Unregister an event notification.
Description of a module.
Definition: libvlc.h:499
int libvlc_event_type_t
Type of a LibVLC event.
Definition: libvlc.h:312
const char * file
Source code file name or NULL.
Definition: vlc_messages.h:61
void libvlc_set_user_agent(libvlc_instance_t *p_instance, const char *name, const char *http)
Sets the application name.
char * psz_name
Definition: libvlc.h:501
const char * libvlc_get_version(void)
Retrieve libvlc version.
Important informational message.
Definition: libvlc.h:376
void libvlc_log_unset(libvlc_instance_t *p_instance)
Unsets the logging callback.
int line
Source code file line number or -1.
Definition: vlc_messages.h:62
void libvlc_log_set(libvlc_instance_t *p_instance, libvlc_log_cb cb, void *data)
Sets the logging callback for a LibVLC instance.
#define LIBVLC_API
Definition: libvlc.h:42
libvlc_module_description_t * libvlc_video_filter_list_get(libvlc_instance_t *p_instance)
Returns a list of video filters that are available.
void(* libvlc_callback_t)(const struct libvlc_event_t *p_event, void *p_data)
Callback function notification.
Definition: libvlc.h:323
Warning (potential error) message.
Definition: libvlc.h:377
void libvlc_log_get_object(const libvlc_log_t *ctx, const char **name, const char **header, uintptr_t *id)
Gets log message info.
char * psz_longname
Definition: libvlc.h:503
const char name[16]
Definition: httpd.c:1249
const char * libvlc_event_type_name(libvlc_event_type_t event_type)
Get an event's type name.
int64_t libvlc_time_t
Definition: libvlc.h:78
Error message.
Definition: libvlc.h:378
char * psz_shortname
Definition: libvlc.h:502
int libvlc_event_attach(libvlc_event_manager_t *p_event_manager, libvlc_event_type_t i_event_type, libvlc_callback_t f_callback, void *user_data)
Register for an event notification.
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition: libvlc.h:76
char * psz_help
Definition: libvlc.h:504
const char * libvlc_errmsg(void)
A human-readable error message for the last LibVLC error in the calling thread.
const char * libvlc_vprinterr(const char *fmt, va_list ap)
Sets the LibVLC error status and message for the current thread.
struct libvlc_module_description_t libvlc_module_description_t
Description of a module.
int64_t libvlc_clock(void)
Return the current time as defined by LibVLC.
Log message.
Definition: vlc_messages.h:55
void libvlc_set_app_id(libvlc_instance_t *p_instance, const char *id, const char *version, const char *icon)
Sets some meta-information about the application.
A LibVLC event.
Definition: libvlc_events.h:134