35 #define VLC_LIBVLC_H 1 37 #if defined (_WIN32) && defined (DLL_EXPORT) 38 # define LIBVLC_API __declspec(dllexport) 39 #elif defined (__GNUC__) && (__GNUC__ >= 4) 40 # define LIBVLC_API __attribute__((visibility("default"))) 47 # define LIBVLC_DEPRECATED 48 #elif defined(__GNUC__) && \ 49 (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) 50 # define LIBVLC_DEPRECATED __attribute__((deprecated)) 52 # define LIBVLC_DEPRECATED 178 libvlc_new(
int argc ,
const char *
const *argv );
224 void (*cb) (
void *),
void *opaque );
237 const char *
name,
const char *http );
251 const char *version,
const char *icon );
331 libvlc_event_type_t i_event_type,
344 libvlc_event_type_t i_event_type,
391 const char **module,
const char **
file,
unsigned *
line);
419 const char **
name,
const char **header, uintptr_t *
id);
434 const char *fmt, va_list args);
void libvlc_set_user_agent(libvlc_instance_t *p_instance, const char *name, const char *http)
Sets the application name.
const char * libvlc_get_version(void)
Retrieve libvlc version.
const char * libvlc_errmsg(void)
A human-readable error message for the last LibVLC error in the calling thread.
void(* libvlc_callback_t)(const struct libvlc_event_t *p_event, void *p_data)
Callback function notification.
Definition: libvlc.h:317
void libvlc_release(libvlc_instance_t *p_instance)
Decrement the reference count of a libvlc instance, and destroy it if it reaches zero.
const char * libvlc_get_compiler(void)
Retrieve libvlc compiler version.
void libvlc_log_set_file(libvlc_instance_t *p_instance, FILE *stream)
Sets up logging to a file.
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:304
libvlc_module_description_t * libvlc_video_filter_list_get(libvlc_instance_t *p_instance)
Returns a list of video filters that are available.
char * psz_shortname
Definition: libvlc.h:489
#define LIBVLC_API
Definition: libvlc.h:42
Description of a module.
Definition: libvlc.h:486
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.
const char * libvlc_get_changeset(void)
Retrieve libvlc changeset.
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.
void libvlc_module_description_list_release(libvlc_module_description_t *p_list)
Release a list of module descriptions.
struct libvlc_module_description_t libvlc_module_description_t
Description of a module.
static int64_t libvlc_delay(int64_t pts)
Return the delay (in microseconds) until a certain timestamp.
Definition: libvlc.h:555
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:433
char * psz_name
Definition: libvlc.h:488
int line
Source code file line number or -1.
Definition: vlc_messages.h:63
void libvlc_log_unset(libvlc_instance_t *p_instance)
Unsets the logging callback.
libvlc_log_level
Logging messages level.
Definition: libvlc.h:360
const char name[16]
Definition: httpd.c:1269
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_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.
libvlc_instance_t * libvlc_new(int argc, const char *const *argv)
Create and initialize a libvlc instance.
const char * file
Source code file name or NULL.
Definition: vlc_messages.h:62
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.
struct libvlc_module_description_t * p_next
Definition: libvlc.h:492
const char * libvlc_vprinterr(const char *fmt, va_list ap)
Sets the LibVLC error status and message for the current thread.
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition: libvlc.h:76
A LibVLC event.
Definition: libvlc_events.h:209
void libvlc_log_get_object(const libvlc_log_t *ctx, const char **name, const char **header, uintptr_t *id)
Gets log message info.
Debug message.
Definition: libvlc.h:362
char * psz_longname
Definition: libvlc.h:490
int64_t libvlc_time_t
Definition: libvlc.h:78
void libvlc_clearerr(void)
Clears the LibVLC error status for the current thread.
Warning (potential error) message.
Definition: libvlc.h:364
int64_t libvlc_clock(void)
Return the current time as defined by LibVLC.
Log message.
Definition: vlc_messages.h:56
char * psz_help
Definition: libvlc.h:491
void libvlc_log_get_context(const libvlc_log_t *ctx, const char **module, const char **file, unsigned *line)
Gets log message debug infos.
Error message.
Definition: libvlc.h:365
int libvlc_add_intf(libvlc_instance_t *p_instance, const char *name)
Try to start a user interface for the libvlc instance.
void libvlc_retain(libvlc_instance_t *p_instance)
Increments the reference count of a libvlc instance.
int libvlc_event_type_t
Type of a LibVLC event.
Definition: libvlc.h:306
Important informational message.
Definition: libvlc.h:363
void libvlc_log_set(libvlc_instance_t *p_instance, libvlc_log_cb cb, void *data)
Sets the logging callback for a LibVLC instance.
const char * libvlc_printerr(const char *fmt,...)
Sets the LibVLC error status and message for the current thread.