[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10091 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10091 - gnunet/src/transport |
Date: |
Thu, 21 Jan 2010 15:13:43 +0100 |
Author: grothoff
Date: 2010-01-21 15:13:43 +0100 (Thu, 21 Jan 2010)
New Revision: 10091
Modified:
gnunet/src/transport/gnunet-service-transport_blacklist.c
gnunet/src/transport/gnunet-service-transport_blacklist.h
Log:
api
Modified: gnunet/src/transport/gnunet-service-transport_blacklist.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_blacklist.c 2010-01-21
14:09:01 UTC (rev 10090)
+++ gnunet/src/transport/gnunet-service-transport_blacklist.c 2010-01-21
14:13:43 UTC (rev 10091)
@@ -150,6 +150,10 @@
/**
* Handle a request to blacklist a peer.
+ *
+ * @param cls closure (always NULL)
+ * @param client identification of the client
+ * @param message the actual message
*/
void
GNUNET_TRANSPORT_handle_blacklist (void *cls,
@@ -161,6 +165,10 @@
/**
* Handle a request for notification of blacklist changes.
+ *
+ * @param cls closure (always NULL)
+ * @param client identification of the client
+ * @param message the actual message
*/
void
GNUNET_TRANSPORT_handle_blacklist_notify (void *cls,
Modified: gnunet/src/transport/gnunet-service-transport_blacklist.h
===================================================================
--- gnunet/src/transport/gnunet-service-transport_blacklist.h 2010-01-21
14:09:01 UTC (rev 10090)
+++ gnunet/src/transport/gnunet-service-transport_blacklist.h 2010-01-21
14:13:43 UTC (rev 10091)
@@ -1,4 +1,4 @@
-*
+/*
This file is part of GNUnet.
(C) 2010 Christian Grothoff (and other contributing authors)
@@ -28,3 +28,53 @@
#include "gnunet_service_lib.h"
#include "transport.h"
+#ifndef GNUNET_SERVICE_TRANSPORT_BLACKLIST_H
+#define GNUNET_SERVICE_TRANSPORT_BLACKLIST_H
+
+/**
+ * Handle a request to blacklist a peer.
+ *
+ * @param cls closure (always NULL)
+ * @param client identification of the client
+ * @param message the actual message
+ */
+void
+GNUNET_TRANSPORT_handle_blacklist (void *cls,
+ struct GNUNET_SERVER_Client *client,
+ const struct GNUNET_MessageHeader *message);
+
+
+/**
+ * Handle a request for notification of blacklist changes.
+ *
+ * @param cls closure (always NULL)
+ * @param client identification of the client
+ * @param message the actual message
+ */
+void
+GNUNET_TRANSPORT_handle_blacklist_notify (void *cls,
+ struct GNUNET_SERVER_Client *client,
+ const struct GNUNET_MessageHeader
*message);
+
+
+/**
+ * Is the given peer currently blacklisted?
+ *
+ * @param id identity of the peer
+ * @return GNUNET_YES if the peer is blacklisted, GNUNET_NO if not
+ */
+int
+GNUNET_TRANSPORT_blacklist_check (const struct GNUNET_PeerIdentity *id);
+
+
+/**
+ * Initialize the blacklisting subsystem.
+ *
+ * @param s scheduler to use
+ */
+void
+GNUNET_TRANSPORT_blacklist_init (struct GNUNET_SCHEDULER_Handle *s);
+
+
+#endif
+/* end of gnunet-service-transport_blacklist.h */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10091 - gnunet/src/transport,
gnunet <=