VLC 4.0.0-dev
|
Files | |
file | libvlc_dialog.h |
LibVLC dialog external API. | |
Data Structures | |
struct | libvlc_dialog_cbs |
Dialog callbacks to be implemented. More... | |
Typedefs | |
typedef enum libvlc_dialog_question_type | libvlc_dialog_question_type |
typedef struct libvlc_dialog_cbs | libvlc_dialog_cbs |
Dialog callbacks to be implemented. | |
typedef 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. | |
Enumerations | |
enum | libvlc_dialog_question_type { LIBVLC_DIALOG_QUESTION_NORMAL , LIBVLC_DIALOG_QUESTION_WARNING , LIBVLC_DIALOG_QUESTION_CRITICAL } |
Functions | |
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_error_callback (libvlc_instance_t *p_instance, libvlc_dialog_error_cbs p_cbs, void *p_data) |
LIBVLC_API void | libvlc_dialog_set_context (libvlc_dialog_id *p_id, void *p_context) |
Associate an opaque pointer with the dialog id. | |
LIBVLC_API void * | libvlc_dialog_get_context (libvlc_dialog_id *p_id) |
Return the opaque pointer associated with the dialog id. | |
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 int | libvlc_dialog_post_action (libvlc_dialog_id *p_id, int i_action) |
Post a question answer. | |
LIBVLC_API int | libvlc_dialog_dismiss (libvlc_dialog_id *p_id) |
Dismiss a dialog. | |
typedef struct libvlc_dialog_cbs libvlc_dialog_cbs |
Dialog callbacks to be implemented.
typedef 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.
p_data | opaque pointer for the callback |
psz_title | title of the dialog |
psz_text | text of the dialog |
typedef enum libvlc_dialog_question_type libvlc_dialog_question_type |
LIBVLC_API int libvlc_dialog_dismiss | ( | libvlc_dialog_id * | p_id | ) |
Dismiss a dialog.
After this call, p_id won't be valid anymore
p_id | id of the dialog |
LIBVLC_API void * libvlc_dialog_get_context | ( | libvlc_dialog_id * | p_id | ) |
Return the opaque pointer associated with the dialog id.
LIBVLC_API int libvlc_dialog_post_action | ( | libvlc_dialog_id * | p_id, |
int | i_action | ||
) |
Post a question answer.
After this call, p_id won't be valid anymore
p_id | id of the dialog |
i_action | 1 for action1, 2 for action2 |
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.
After this call, p_id won't be valid anymore
p_id | id of the dialog |
psz_username | valid and non empty string |
psz_password | valid string (can be empty) |
b_store | if true, store the credentials |
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.
p_instance | the libvlc instance to attach the dialog callbacks to |
p_cbs | a pointer to callbacks, or NULL to unregister callbacks. |
p_data | opaque pointer for the callback |
LIBVLC_API void libvlc_dialog_set_context | ( | libvlc_dialog_id * | p_id, |
void * | p_context | ||
) |
Associate an opaque pointer with the dialog id.
LIBVLC_API void libvlc_dialog_set_error_callback | ( | libvlc_instance_t * | p_instance, |
libvlc_dialog_error_cbs | p_cbs, | ||
void * | p_data | ||
) |