about summary refs log tree commit diff stats
path: root/src/ui/win_types.h
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2018-05-30 20:45:06 +0320
committerPaul Fariello <paul@fariello.eu>2018-09-05 13:51:00 +0200
commitb11d3a79df49970b4563bbd40c4db3f53c99dfeb (patch)
treefd728212d3ef74b13a59b6e8fd3fe9a3727611ee /src/ui/win_types.h
parenta952776b899dd29056ad6779b14dab75a4125924 (diff)
downloadprofani-tty-b11d3a79df49970b4563bbd40c4db3f53c99dfeb.tar.gz
Add conf win callback
Diffstat (limited to 'src/ui/win_types.h')
-rw-r--r--src/ui/win_types.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/win_types.h b/src/ui/win_types.h
index 28a785bf..c9dc623b 100644
--- a/src/ui/win_types.h
+++ b/src/ui/win_types.h
@@ -172,12 +172,17 @@ typedef struct prof_muc_win_t {
     char *message_char;
 } ProfMucWin;
 
-typedef struct prof_conf_win_t {
+typedef struct prof_conf_win_t ProfConfWin;
+typedef void (*ProfConfWinCallback)(ProfConfWin *);
+
+struct prof_conf_win_t {
     ProfWin window;
     char *roomjid;
     DataForm *form;
     unsigned long memcheck;
-} ProfConfWin;
+    ProfConfWinCallback submit;
+    ProfConfWinCallback cancel;
+};
 
 typedef struct prof_private_win_t {
     ProfWin window;