aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_private.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/namestore/test_namestore_api_lookup_private.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_private.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_private.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c
index 6d99f738a..92b2cad6f 100644
--- a/src/namestore/test_namestore_api_lookup_private.c
+++ b/src/namestore/test_namestore_api_lookup_private.c
@@ -74,7 +74,7 @@ cleanup ()
74 * @param tc scheduler context 74 * @param tc scheduler context
75 */ 75 */
76static void 76static void
77endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 77endbadly (void *cls)
78{ 78{
79 if (NULL != nsqe) 79 if (NULL != nsqe)
80 { 80 {
@@ -87,17 +87,19 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
87 87
88 88
89static void 89static void
90end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 90end (void *cls)
91{ 91{
92 cleanup (); 92 cleanup ();
93 res = 0; 93 res = 0;
94} 94}
95 95
96void lookup_it (void *cls, 96
97 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 97static void
98 const char *label, 98lookup_it (void *cls,
99 unsigned int rd_count, 99 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
100 const struct GNUNET_GNSRECORD_Data *rd) 100 const char *label,
101 unsigned int rd_count,
102 const struct GNUNET_GNSRECORD_Data *rd)
101{ 103{
102 nsqe = NULL; 104 nsqe = NULL;
103 105