aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/messenger_api_list_tunnels.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messenger/messenger_api_list_tunnels.h')
-rw-r--r--src/messenger/messenger_api_list_tunnels.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/messenger/messenger_api_list_tunnels.h b/src/messenger/messenger_api_list_tunnels.h
index c952da3c2..0e086ee5e 100644
--- a/src/messenger/messenger_api_list_tunnels.h
+++ b/src/messenger/messenger_api_list_tunnels.h
@@ -67,7 +67,8 @@ clear_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels);
67 * @param[in] peer Peer identity of tunnel 67 * @param[in] peer Peer identity of tunnel
68 */ 68 */
69void 69void
70add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer); 70add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
71 const struct GNUNET_PeerIdentity *peer);
71 72
72/** 73/**
73 * Searches linearly through the list of tunnels peer identities for matching a 74 * Searches linearly through the list of tunnels peer identities for matching a
@@ -85,7 +86,9 @@ add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct
85 * @return Element in the list with matching peer identity 86 * @return Element in the list with matching peer identity
86 */ 87 */
87struct GNUNET_MESSENGER_ListTunnel* 88struct GNUNET_MESSENGER_ListTunnel*
88find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer, size_t *index); 89find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
90 const struct GNUNET_PeerIdentity *peer,
91 size_t *index);
89 92
90/** 93/**
91 * Tests linearly if the list of tunnels peer identities contains a specific 94 * Tests linearly if the list of tunnels peer identities contains a specific
@@ -96,7 +99,8 @@ find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GN
96 * @return #GNUNET_YES on success, otherwise #GNUNET_NO 99 * @return #GNUNET_YES on success, otherwise #GNUNET_NO
97 */ 100 */
98int 101int
99contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer); 102contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
103 const struct GNUNET_PeerIdentity *peer);
100 104
101/** 105/**
102 * Removes a specific <i>element</i> from the list of tunnels peer identities and returns 106 * Removes a specific <i>element</i> from the list of tunnels peer identities and returns
@@ -107,7 +111,8 @@ contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struc
107 * @return Next element in the list 111 * @return Next element in the list
108 */ 112 */
109struct GNUNET_MESSENGER_ListTunnel* 113struct GNUNET_MESSENGER_ListTunnel*
110remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, struct GNUNET_MESSENGER_ListTunnel *element); 114remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
115 struct GNUNET_MESSENGER_ListTunnel *element);
111 116
112/** 117/**
113 * Loads the list of tunnels peer identities from a file under a given <i>path</i>. 118 * Loads the list of tunnels peer identities from a file under a given <i>path</i>.
@@ -116,7 +121,8 @@ remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, struct G
116 * @param[in] path Path of file 121 * @param[in] path Path of file
117 */ 122 */
118void 123void
119load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *path); 124load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
125 const char *path);
120 126
121/** 127/**
122 * Saves the list of tunnels peer identities to a file under a given <i>path</i>. 128 * Saves the list of tunnels peer identities to a file under a given <i>path</i>.
@@ -125,6 +131,7 @@ load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *pat
125 * @param[in] path Path of file 131 * @param[in] path Path of file
126 */ 132 */
127void 133void
128save_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *path); 134save_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels,
135 const char *path);
129 136
130#endif //GNUNET_MESSENGER_API_LIST_TUNNELS_H 137#endif //GNUNET_MESSENGER_API_LIST_TUNNELS_H