summaryrefslogtreecommitdiff
path: root/src/ui/accounts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/accounts.h')
-rw-r--r--src/ui/accounts.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/accounts.h b/src/ui/accounts.h
index a71e31e..9bfedff 100644
--- a/src/ui/accounts.h
+++ b/src/ui/accounts.h
@@ -39,14 +39,34 @@ typedef struct UI_ACCOUNTS_Handle
GtkButton *close_button;
} UI_ACCOUNTS_Handle;
+/**
+ * Initializes a handle for the accounts dialog
+ * of a given messenger application.
+ *
+ * @param app Messenger application
+ * @param handle Accounts dialog handle
+ */
void
ui_accounts_dialog_init(MESSENGER_Application *app,
UI_ACCOUNTS_Handle *handle);
+/**
+ * Refreshes a given accounts dialog handle with the
+ * current list of accounts from a messenger application.
+ *
+ * @param app Messenger application
+ * @param handle Accounts dialog handle
+ */
void
ui_accounts_dialog_refresh(MESSENGER_Application *app,
UI_ACCOUNTS_Handle *handle);
+/**
+ * Cleans up the allocated resources and resets the
+ * state of a given accounts dialog handle.
+ *
+ * @param handle Accounts dialog handle
+ */
void
ui_accounts_dialog_cleanup(UI_ACCOUNTS_Handle *handle);