aboutsummaryrefslogtreecommitdiff
path: root/src/ui/picker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/picker.h')
-rw-r--r--src/ui/picker.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ui/picker.h b/src/ui/picker.h
index 3313956..9c21bc9 100644
--- a/src/ui/picker.h
+++ b/src/ui/picker.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -57,10 +57,25 @@ typedef struct UI_PICKER_Handle
57 GtkButton *settings_button; 57 GtkButton *settings_button;
58} UI_PICKER_Handle; 58} UI_PICKER_Handle;
59 59
60/**
61 * Allocates and creates a new picker handle to
62 * manage emoji selection in a chat for a given
63 * messenger application.
64 *
65 * @param app Messenger application
66 * @param chat Chat handle
67 * @return New picker handle
68 */
60UI_PICKER_Handle* 69UI_PICKER_Handle*
61ui_picker_new(MESSENGER_Application *app, 70ui_picker_new(MESSENGER_Application *app,
62 UI_CHAT_Handle *chat); 71 UI_CHAT_Handle *chat);
63 72
73/**
74 * Frees its resources and destroys a given picker
75 * handle.
76 *
77 * @param handle Picker handle
78 */
64void 79void
65ui_picker_delete(UI_PICKER_Handle *handle); 80ui_picker_delete(UI_PICKER_Handle *handle);
66 81