21#ifndef LIBVLC_DIALOG_H
22#define LIBVLC_DIALOG_H 1
81 const char *psz_title,
const char *psz_text,
82 const char *psz_default_username,
106 const char *psz_title,
const char *psz_text,
108 const char *psz_cancel,
const char *psz_action1,
109 const char *psz_action2);
131 const char *psz_title,
const char *psz_text,
132 bool b_indeterminate,
float f_position,
133 const char *psz_cancel);
155 float f_position,
const char *psz_text);
226 const char *psz_password,
bool b_store);
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition libvlc.h:76
LIBVLC_API void libvlc_dialog_set_error_callback(libvlc_instance_t *p_instance, libvlc_dialog_error_cbs p_cbs, void *p_data)
libvlc_dialog_question_type
Definition libvlc_dialog.h:41
LIBVLC_API int libvlc_dialog_dismiss(libvlc_dialog_id *p_id)
Dismiss a dialog.
LIBVLC_API int libvlc_dialog_post_action(libvlc_dialog_id *p_id, int i_action)
Post a question answer.
LIBVLC_API void libvlc_dialog_set_callbacks(libvlc_instance_t *p_instance, const libvlc_dialog_cbs *p_cbs, void *p_data)
Register callbacks in order to handle VLC dialogs.
LIBVLC_API void libvlc_dialog_set_context(libvlc_dialog_id *p_id, void *p_context)
Associate an opaque pointer with the dialog id.
void(* libvlc_dialog_error_cbs)(void *p_data, const char *psz_title, const char *psz_text)
Called when an error message needs to be displayed.
Definition libvlc_dialog.h:166
LIBVLC_API int libvlc_dialog_post_login(libvlc_dialog_id *p_id, const char *psz_username, const char *psz_password, bool b_store)
Post a login answer.
LIBVLC_API void * libvlc_dialog_get_context(libvlc_dialog_id *p_id)
Return the opaque pointer associated with the dialog id.
@ LIBVLC_DIALOG_QUESTION_WARNING
Definition libvlc_dialog.h:43
@ LIBVLC_DIALOG_QUESTION_CRITICAL
Definition libvlc_dialog.h:44
@ LIBVLC_DIALOG_QUESTION_NORMAL
Definition libvlc_dialog.h:42
#define LIBVLC_API
Definition libvlc.h:42
int i_type
Definition httpd.c:1299
struct libvlc_dialog_id libvlc_dialog_id
Definition libvlc_dialog.h:30
Dialog callbacks to be implemented.
Definition libvlc_dialog.h:57
void(* pf_display_login)(void *p_data, libvlc_dialog_id *p_id, const char *psz_title, const char *psz_text, const char *psz_default_username, bool b_ask_store)
Called when a login dialog needs to be displayed.
Definition libvlc_dialog.h:80
void(* pf_update_progress)(void *p_data, libvlc_dialog_id *p_id, float f_position, const char *psz_text)
Called when a progress dialog needs to be updated.
Definition libvlc_dialog.h:154
void(* pf_cancel)(void *p_data, libvlc_dialog_id *p_id)
Called when a displayed dialog needs to be cancelled.
Definition libvlc_dialog.h:144
uint32_t version
Version of struct libvlc_dialog_cbs.
Definition libvlc_dialog.h:61
void(* pf_display_question)(void *p_data, libvlc_dialog_id *p_id, const char *psz_title, const char *psz_text, libvlc_dialog_question_type i_type, const char *psz_cancel, const char *psz_action1, const char *psz_action2)
Called when a question dialog needs to be displayed.
Definition libvlc_dialog.h:105
void(* pf_display_progress)(void *p_data, libvlc_dialog_id *p_id, const char *psz_title, const char *psz_text, bool b_indeterminate, float f_position, const char *psz_cancel)
Called when a progress dialog needs to be displayed.
Definition libvlc_dialog.h:130