|
VLC
3.0.22-rc1
|
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) |
Typedefs | |
| typedef struct vlc_dialog_cbs | vlc_dialog_cbs |
| Dialog callbacks to be implemented. More... | |
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. More... | |
| void | vlc_dialog_id_set_context (vlc_dialog_id *p_id, void *p_context) |
| Associate an opaque pointer with the dialog id. More... | |
| void * | vlc_dialog_id_get_context (vlc_dialog_id *p_id) |
| Return the opaque pointer associated with the dialog id. More... | |
| 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. More... | |
| int | vlc_dialog_id_post_action (vlc_dialog_id *p_id, int i_action) |
| Post a question answer. More... | |
| int | vlc_dialog_id_dismiss (vlc_dialog_id *p_id) |
| Dismiss a dialog. More... | |
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) |
| typedef struct vlc_dialog_cbs vlc_dialog_cbs |
Dialog callbacks to be implemented.
| 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 |
< Not enough memory
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_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().
1.8.16