WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file cadet/gnunet-service-cadet_peer.h
* @return Static string for it's ID.
*/
const char *
-GCP_2s (const struct CadetPeer *peer);
+GCP_2s(const struct CadetPeer *peer);
/**
* NULL if unknown and not requested @a create
*/
struct CadetPeer *
-GCP_get (const struct GNUNET_PeerIdentity *peer_id,
- int create);
+GCP_get(const struct GNUNET_PeerIdentity *peer_id,
+ int create);
/**
* positive scores mean path is more desirable
*/
double
-GCP_get_desirability_of_path (struct CadetPeer *cp,
- unsigned int off);
+GCP_get_desirability_of_path(struct CadetPeer *cp,
+ unsigned int off);
/**
* @return the peer identity
*/
const struct GNUNET_PeerIdentity *
-GCP_get_id (struct CadetPeer *cp);
+GCP_get_id(struct CadetPeer *cp);
/**
* @param cls Closure for @c iter.
*/
void
-GCP_iterate_all (GNUNET_CONTAINER_PeerMapIterator iter,
- void *cls);
+GCP_iterate_all(GNUNET_CONTAINER_PeerMapIterator iter,
+ void *cls);
/**
* @return Number of known paths.
*/
unsigned int
-GCP_count_paths (const struct CadetPeer *cp);
+GCP_count_paths(const struct CadetPeer *cp);
/**
* @param cp peer to drop paths to
*/
void
-GCP_drop_owned_paths (struct CadetPeer *cp);
+GCP_drop_owned_paths(struct CadetPeer *cp);
/**
* @return Number of iterated paths.
*/
unsigned int
-GCP_iterate_paths (struct CadetPeer *cp,
- GCP_PathIterator callback,
- void *callback_cls);
+GCP_iterate_paths(struct CadetPeer *cp,
+ GCP_PathIterator callback,
+ void *callback_cls);
/**
* Iterate over the paths to a peer without direct link.
* @return Number of iterated paths.
*/
unsigned int
-GCP_iterate_indirect_paths (struct CadetPeer *cp,
- GCP_PathIterator callback,
- void *callback_cls);
+GCP_iterate_indirect_paths(struct CadetPeer *cp,
+ GCP_PathIterator callback,
+ void *callback_cls);
/**
* @return Number of iterated paths.
*/
unsigned int
-GCP_iterate_paths_at (struct CadetPeer *cp,
- unsigned int dist,
- GCP_PathIterator callback,
- void *callback_cls);
+GCP_iterate_paths_at(struct CadetPeer *cp,
+ unsigned int dist,
+ GCP_PathIterator callback,
+ void *callback_cls);
/**
* @param off offset of this peer on the path
*/
void
-GCP_path_entry_remove (struct CadetPeer *cp,
- struct CadetPeerPathEntry *entry,
- unsigned int off);
+GCP_path_entry_remove(struct CadetPeer *cp,
+ struct CadetPeerPathEntry *entry,
+ unsigned int off);
/**
* @param off offset of this peer on the path
*/
void
-GCP_path_entry_add (struct CadetPeer *cp,
- struct CadetPeerPathEntry *entry,
- unsigned int off);
+GCP_path_entry_add(struct CadetPeer *cp,
+ struct CadetPeerPathEntry *entry,
+ unsigned int off);
/**
* @return Tunnel towards peer.
*/
struct CadetTunnel *
-GCP_get_tunnel (struct CadetPeer *cp,
- int create);
+GCP_get_tunnel(struct CadetPeer *cp,
+ int create);
/**
* @param t the dead tunnel
*/
void
-GCP_drop_tunnel (struct CadetPeer *cp,
- struct CadetTunnel *t);
+GCP_drop_tunnel(struct CadetPeer *cp,
+ struct CadetTunnel *t);
/**
* otherwise the node in the peer's path heap for the @a path.
*/
struct GNUNET_CONTAINER_HeapNode *
-GCP_attach_path (struct CadetPeer *cp,
- struct CadetPeerPath *path,
- unsigned int off,
- int force);
+GCP_attach_path(struct CadetPeer *cp,
+ struct CadetPeerPath *path,
+ unsigned int off,
+ int force);
/**
* @param hn note in @a cp's path heap that must be deleted
*/
void
-GCP_detach_path (struct CadetPeer *cp,
- struct CadetPeerPath *path,
- struct GNUNET_CONTAINER_HeapNode *hn);
+GCP_detach_path(struct CadetPeer *cp,
+ struct CadetPeerPath *path,
+ struct GNUNET_CONTAINER_HeapNode *hn);
/**
* @param cc the connection to add
*/
void
-GCP_add_connection (struct CadetPeer *cp,
- struct CadetConnection *cc);
+GCP_add_connection(struct CadetPeer *cp,
+ struct CadetConnection *cc);
/**
* @param cc the connection to remove
*/
void
-GCP_remove_connection (struct CadetPeer *cp,
- struct CadetConnection *cc);
+GCP_remove_connection(struct CadetPeer *cp,
+ struct CadetConnection *cc);
/**
* @param hello the HELLO to remember
*/
void
-GCP_set_hello (struct CadetPeer *cp,
- const struct GNUNET_HELLO_Message *hello);
+GCP_set_hello(struct CadetPeer *cp,
+ const struct GNUNET_HELLO_Message *hello);
/**
* connections are down.
*/
void
-GCP_destroy_all_peers (void);
+GCP_destroy_all_peers(void);
/**
* @return handle to cancel request
*/
struct GCP_MessageQueueManager *
-GCP_request_mq (struct CadetPeer *cp,
- GCP_MessageQueueNotificationCallback cb,
- void *cb_cls);
+GCP_request_mq(struct CadetPeer *cp,
+ GCP_MessageQueueNotificationCallback cb,
+ void *cb_cls);
/**
* @return #GNUNET_YES if @a cp has a core-level connection
*/
int
-GCP_has_core_connection (struct CadetPeer *cp);
+GCP_has_core_connection(struct CadetPeer *cp);
/**
* yet have a #GNUNET_MQ_notify_sent() callback attached to it
*/
void
-GCP_send (struct GCP_MessageQueueManager *mqm,
- struct GNUNET_MQ_Envelope *env);
+GCP_send(struct GCP_MessageQueueManager *mqm,
+ struct GNUNET_MQ_Envelope *env);
/**
* @param env envelope with the message to send
*/
void
-GCP_send_ooo (struct CadetPeer *cp,
- struct GNUNET_MQ_Envelope *env);
+GCP_send_ooo(struct CadetPeer *cp,
+ struct GNUNET_MQ_Envelope *env);
/**
* @param last_env final message to transmit, or NULL
*/
void
-GCP_request_mq_cancel (struct GCP_MessageQueueManager *mqm,
- struct GNUNET_MQ_Envelope *last_env);
+GCP_request_mq_cancel(struct GCP_MessageQueueManager *mqm,
+ struct GNUNET_MQ_Envelope *last_env);
/**
* @param mq message queue to set (can be NULL)
*/
void
-GCP_set_mq (struct CadetPeer *cp,
- struct GNUNET_MQ_Handle *mq);
+GCP_set_mq(struct CadetPeer *cp,
+ struct GNUNET_MQ_Handle *mq);
#endif