diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-13 20:24:14 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-13 20:24:14 +0100 |
commit | 3af9a8c295a1a17adddb2127aa151723cd7c396c (patch) | |
tree | d1f7a885e7488077c0d541d7806fa11fb4460d6b /src/include | |
parent | 154d13fcb10205edf5fb56c12ac47e65abfec5a6 (diff) | |
download | gnunet-3af9a8c295a1a17adddb2127aa151723cd7c396c.tar.gz gnunet-3af9a8c295a1a17adddb2127aa151723cd7c396c.zip |
-add gns record plugin for messenger room entries
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnu_name_system_record_types.h | 10 | ||||
-rw-r--r-- | src/include/gnunet_messenger_service.h | 21 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/include/gnu_name_system_record_types.h b/src/include/gnu_name_system_record_types.h index b2cf45dc8..22b2c472e 100644 --- a/src/include/gnu_name_system_record_types.h +++ b/src/include/gnu_name_system_record_types.h | |||
@@ -127,6 +127,16 @@ extern "C" { | |||
127 | */ | 127 | */ |
128 | #define GNUNET_GNSRECORD_TYPE_EDKEY 65556 | 128 | #define GNUNET_GNSRECORD_TYPE_EDKEY 65556 |
129 | 129 | ||
130 | /** | ||
131 | * Encoding for Robust Immutable Storage (ERIS) binary read capability | ||
132 | */ | ||
133 | #define GNUNET_GNSRECORD_TYPE_ERIS_READ_CAPABILITY 65557 | ||
134 | |||
135 | /** | ||
136 | * Record type to share an entry of a messenger room | ||
137 | */ | ||
138 | #define GNUNET_GNSRECORD_TYPE_MESSENGER_ROOM_ENTRY 65558 | ||
139 | |||
130 | 140 | ||
131 | #if 0 /* keep Emacsens' auto-indent happy */ | 141 | #if 0 /* keep Emacsens' auto-indent happy */ |
132 | { | 142 | { |
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h index b54567aa7..96d48b411 100644 --- a/src/include/gnunet_messenger_service.h +++ b/src/include/gnunet_messenger_service.h | |||
@@ -75,6 +75,27 @@ struct GNUNET_MESSENGER_Room; | |||
75 | */ | 75 | */ |
76 | struct GNUNET_MESSENGER_Contact; | 76 | struct GNUNET_MESSENGER_Contact; |
77 | 77 | ||
78 | GNUNET_NETWORK_STRUCT_BEGIN | ||
79 | |||
80 | /** | ||
81 | * A room entry record specifies which peer is hosting a given room and | ||
82 | * may also specify the key to enter it. | ||
83 | */ | ||
84 | struct GNUNET_MESSENGER_RoomEntryRecord | ||
85 | { | ||
86 | /** | ||
87 | * The peer identity of an open door to a room. | ||
88 | */ | ||
89 | struct GNUNET_PeerIdentity door; | ||
90 | |||
91 | /** | ||
92 | * The hash identifying the port of the room. | ||
93 | */ | ||
94 | struct GNUNET_HashCode key; | ||
95 | }; | ||
96 | |||
97 | GNUNET_NETWORK_STRUCT_END | ||
98 | |||
78 | /** | 99 | /** |
79 | * Enum for the different supported kinds of messages | 100 | * Enum for the different supported kinds of messages |
80 | */ | 101 | */ |