aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_uri.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-12 14:38:12 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-12 14:38:12 +0100
commitba528dd455716f73fbfb3191401b8978e9900453 (patch)
tree4c8521087eab07be002f2706e565d438f3cca5f0 /src/gnunet_chat_uri.h
parentafd5d7cb5fdb8d2cf20f50d3942f553be78ca0ca (diff)
downloadlibgnunetchat-ba528dd455716f73fbfb3191401b8978e9900453.tar.gz
libgnunetchat-ba528dd455716f73fbfb3191401b8978e9900453.zip
Implemented lobby functionality and uri solving to add contacts
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_uri.h')
-rw-r--r--src/gnunet_chat_uri.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/gnunet_chat_uri.h b/src/gnunet_chat_uri.h
new file mode 100644
index 0000000..0074123
--- /dev/null
+++ b/src/gnunet_chat_uri.h
@@ -0,0 +1,48 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2022 GNUnet e.V.
4
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
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20/*
21 * @author Tobias Frisch
22 * @file gnunet_chat_uri.h
23 */
24
25#ifndef GNUNET_CHAT_URI_H_
26#define GNUNET_CHAT_URI_H_
27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_identity_service.h>
31#include <gnunet/gnunet_util_lib.h>
32
33#include "gnunet_chat_util.h"
34
35struct GNUNET_CHAT_Uri
36{
37 struct GNUNET_IDENTITY_PublicKey zone;
38 char *label;
39};
40
41struct GNUNET_CHAT_Uri*
42uri_create (const struct GNUNET_IDENTITY_PublicKey *zone,
43 const char *label);
44
45void
46uri_destroy (struct GNUNET_CHAT_Uri *uri);
47
48#endif /* GNUNET_CHAT_URI_H_ */