VLC 4.0.0-dev
|
Need to be implemented by GUI modules or libvlc. More...
Data Structures | |
struct | vlc_dialog_cbs |
Dialog callbacks to be implemented. More... | |
Macros | |
#define | vlc_dialog_provider_set_callbacks(a, b, c) vlc_dialog_provider_set_callbacks(VLC_OBJECT(a), b, c) |
#define | vlc_dialog_provider_set_error_callback(a, b, c) vlc_dialog_provider_set_error_callback(VLC_OBJECT(a), b, c) |
Typedefs | |
typedef struct vlc_dialog_cbs | vlc_dialog_cbs |
Dialog callbacks to be implemented. | |
typedef void(* | vlc_dialog_error_cbs) (void *p_data, const char *psz_title, const char *psz_text) |
Called when an error message needs to be displayed. | |
Functions | |
void | vlc_dialog_provider_set_callbacks (vlc_object_t *p_obj, const vlc_dialog_cbs *p_cbs, void *p_data) |
Register callbacks to handle VLC dialogs. | |
void | vlc_dialog_provider_set_error_callback (vlc_object_t *p_obj, vlc_dialog_error_cbs p_cbs, void *p_data) |
Register callbacks to handle VLC error messages. | |
void | vlc_dialog_id_set_context (vlc_dialog_id *p_id, void *p_context) |
Associate an opaque pointer with the dialog id. | |
void * | vlc_dialog_id_get_context (vlc_dialog_id *p_id) |
Return the opaque pointer associated with the dialog id. | |
int | vlc_dialog_id_post_login (vlc_dialog_id *p_id, const char *psz_username, const char *psz_password, bool b_store) |
Post a login answer. | |
int | vlc_dialog_id_post_action (vlc_dialog_id *p_id, int i_action) |
Post a question answer. | |
int | vlc_dialog_id_dismiss (vlc_dialog_id *p_id) |
Dismiss a dialog. | |
Need to be implemented by GUI modules or libvlc.
#define vlc_dialog_provider_set_callbacks | ( | a, | |
b, | |||
c | |||
) | vlc_dialog_provider_set_callbacks(VLC_OBJECT(a), b, c) |
#define vlc_dialog_provider_set_error_callback | ( | a, | |
b, | |||
c | |||
) | vlc_dialog_provider_set_error_callback(VLC_OBJECT(a), b, c) |
typedef struct vlc_dialog_cbs vlc_dialog_cbs |
Dialog callbacks to be implemented.
typedef void(* vlc_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 |
int vlc_dialog_id_dismiss | ( | vlc_dialog_id * | p_id | ) |
Dismiss a dialog.
After this call, p_id won't be valid anymore
p_id | id of the dialog |
References dialog_id_post().
void * vlc_dialog_id_get_context | ( | vlc_dialog_id * | p_id | ) |
Return the opaque pointer associated with the dialog id.
References vlc_dialog_id::lock, vlc_dialog_id::p_context, vlc_mutex_lock(), and vlc_mutex_unlock().
int vlc_dialog_id_post_action | ( | vlc_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 |
References dialog_id_post(), dialog_answer::i_action, dialog_answer::i_type, and VLC_DIALOG_QUESTION.
int vlc_dialog_id_post_login | ( | vlc_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 |
References dialog_answer::b_store, dialog_id_post(), dialog_answer::i_type, dialog_answer::login, dialog_answer::psz_password, dialog_answer::psz_username, strdup(), dialog_answer::u, VLC_DIALOG_LOGIN, and VLC_ENOMEM.
void vlc_dialog_id_set_context | ( | vlc_dialog_id * | p_id, |
void * | p_context | ||
) |
Associate an opaque pointer with the dialog id.
References vlc_dialog_id::lock, vlc_dialog_id::p_context, vlc_mutex_lock(), and vlc_mutex_unlock().
void vlc_dialog_provider_set_callbacks | ( | vlc_object_t * | p_obj, |
const vlc_dialog_cbs * | p_cbs, | ||
void * | p_data | ||
) |
Register callbacks to handle VLC dialogs.
p_obj | the VLC object to get the dialog provider from |
p_cbs | a pointer to callbacks, or NULL to unregister callbacks. |
p_data | opaque pointer for the callback |
References vlc_dialog_provider::cbs, dialog_clear_all_locked(), get_dialog_provider(), vlc_dialog_provider::lock, vlc_dialog_provider::p_cbs_data, vlc_mutex_lock(), and vlc_mutex_unlock().
void vlc_dialog_provider_set_error_callback | ( | vlc_object_t * | p_obj, |
vlc_dialog_error_cbs | p_cbs, | ||
void * | p_data | ||
) |
Register callbacks to handle VLC error messages.
p_obj | the VLC object to get the dialog provider from |
p_cbs | a pointer to the callback, or NULL to unregister the callback. |
p_data | opaque pointer for the callback |
References vlc_dialog_provider::err_cbs, get_dialog_provider(), vlc_dialog_provider::lock, vlc_dialog_provider::p_err_cbs_data, vlc_mutex_lock(), and vlc_mutex_unlock().