mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 07:36:21 +00:00
Add conf win callback
This commit is contained in:
@@ -203,13 +203,15 @@ win_create_muc(const char *const roomjid)
|
||||
}
|
||||
|
||||
ProfWin*
|
||||
win_create_config(const char *const roomjid, DataForm *form)
|
||||
win_create_config(const char *const roomjid, DataForm *form, ProfConfWinCallback submit, ProfConfWinCallback cancel)
|
||||
{
|
||||
ProfConfWin *new_win = malloc(sizeof(ProfConfWin));
|
||||
new_win->window.type = WIN_CONFIG;
|
||||
new_win->window.layout = _win_create_simple_layout();
|
||||
new_win->roomjid = strdup(roomjid);
|
||||
new_win->form = form;
|
||||
new_win->submit = submit;
|
||||
new_win->cancel = cancel;
|
||||
|
||||
new_win->memcheck = PROFCONFWIN_MEMCHECK;
|
||||
|
||||
@@ -1768,6 +1770,13 @@ win_handle_command_list(ProfWin *window, GSList *cmds)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
win_handle_command_exec_status(ProfWin *window, const char *const command, const char *const value)
|
||||
{
|
||||
assert(window != NULL);
|
||||
win_println(window, THEME_DEFAULT, '!', "%s %s", command, value);
|
||||
}
|
||||
|
||||
void
|
||||
win_handle_command_exec_result_note(ProfWin *window, const char *const type, const char *const value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user