[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37830 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37830 - gnunet/src/util |
Date: |
Mon, 29 Aug 2016 13:41:10 +0200 |
Author: grothoff
Date: 2016-08-29 13:41:10 +0200 (Mon, 29 Aug 2016)
New Revision: 37830
Modified:
gnunet/src/util/service_new.c
Log:
-starting with service_new implementation
Modified: gnunet/src/util/service_new.c
===================================================================
--- gnunet/src/util/service_new.c 2016-08-29 11:38:50 UTC (rev 37829)
+++ gnunet/src/util/service_new.c 2016-08-29 11:41:10 UTC (rev 37830)
@@ -31,6 +31,28 @@
/**
+ * Handle to a service.
+ */
+struct GNUNET_SERVICE_Handle
+{
+};
+
+
+/**
+ * Handle to a client that is connected to a service.
+ */
+struct GNUNET_SERVICE_Client
+{
+ /**
+ * Task that warns about missing calls to
+ * #GNUNET_SERVICE_client_continue().
+ */
+ struct GNUNET_SCHEDULER_Task *warn_task;
+
+};
+
+
+/**
* Creates the "main" function for a GNUnet service. You
* should almost always use the #GNUNET_SERVICE_MAIN macro
* instead of calling this function directly (except
@@ -136,7 +158,12 @@
void
GNUNET_SERVICE_client_disable_continue_warning (struct GNUNET_SERVICE_Client
*c)
{
- GNUNET_break (0); // not implemented
+ GNUNET_break (NULL != c->warn_task);
+ if (NULL != c->warn_task)
+ {
+ GNUNET_SCHEDULER_cancel (c->warn_task);
+ c->warn_task = NULL;
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37830 - gnunet/src/util,
gnunet <=