summaryrefslogtreecommitdiff
path: root/src/ui/new_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/new_platform.h')
-rw-r--r--src/ui/new_platform.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ui/new_platform.h b/src/ui/new_platform.h
index e2ec288..be2d481 100644
--- a/src/ui/new_platform.h
+++ b/src/ui/new_platform.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2021 GNUnet e.V.
+ Copyright (C) 2021--2022 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -41,10 +41,23 @@ typedef struct UI_NEW_PLATFORM_Handle
GtkButton *confirm_button;
} UI_NEW_PLATFORM_Handle;
+/**
+ * Initializes a handle for the new platform dialog
+ * of a given messenger application.
+ *
+ * @param app Messenger application
+ * @param handle New platform dialog handle
+ */
void
ui_new_platform_dialog_init(MESSENGER_Application *app,
UI_NEW_PLATFORM_Handle *handle);
+/**
+ * Cleans up the allocated resources and resets the
+ * state of a given new platform dialog handle.
+ *
+ * @param handle New platform dialog handle
+ */
void
ui_new_platform_dialog_cleanup(UI_NEW_PLATFORM_Handle *handle);