21#ifndef LIBVLC_DIALOG_H
22#define LIBVLC_DIALOG_H 1
76 const char *psz_title,
const char *psz_text,
77 const char *psz_default_username,
101 const char *psz_title,
const char *psz_text,
103 const char *psz_cancel,
const char *psz_action1,
104 const char *psz_action2);
126 const char *psz_title,
const char *psz_text,
127 bool b_indeterminate,
float f_position,
128 const char *psz_cancel);
150 float f_position,
const char *psz_text);
220 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:161
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.
struct libvlc_dialog_cbs libvlc_dialog_cbs
Dialog callbacks to be implemented.
@ 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:1282
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:75
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:149
void(* pf_cancel)(void *p_data, libvlc_dialog_id *p_id)
Called when a displayed dialog needs to be cancelled.
Definition: libvlc_dialog.h:139
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:100
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:125