gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6941 - GNUnet/src/applications/dht/tools


From: gnunet
Subject: [GNUnet-SVN] r6941 - GNUnet/src/applications/dht/tools
Date: Fri, 30 May 2008 22:58:38 -0600 (MDT)

Author: nevans
Date: 2008-05-30 22:58:38 -0600 (Fri, 30 May 2008)
New Revision: 6941

Modified:
   GNUnet/src/applications/dht/tools/dht-query.c
   GNUnet/src/applications/dht/tools/dht_api.c
Log:
not really checked out, but it compiles.. more later

Modified: GNUnet/src/applications/dht/tools/dht-query.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht-query.c       2008-05-31 04:48:33 UTC 
(rev 6940)
+++ GNUnet/src/applications/dht/tools/dht-query.c       2008-05-31 04:58:38 UTC 
(rev 6941)
@@ -44,6 +44,8 @@
 
 static char *cfgFilename = GNUNET_DEFAULT_CLIENT_CONFIG_FILE;
 
+struct GNUNET_DHT_Context *ctx;
+
 /**
  * All gnunet-dht-query command line options
  */
@@ -84,10 +86,8 @@
 #endif
   if (timeout == 0)
     timeout = 30 * GNUNET_CRON_SECONDS;
-  ret = GNUNET_DHT_get (cfg,
-                        ectx,
-                        GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
-                        &hc, timeout, &printCallback, (void *) key);
+  ret = GNUNET_DHT_get_start (ctx, GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
+                        (void *) key);
   if (ret == 0)
     printf (_("%s(%s) operation returned no results.\n"), "get", key);
 }
@@ -123,7 +123,7 @@
 {
   int i;
   struct GNUNET_ClientServerConnection *handle;
-
+  void *unused;
   i = GNUNET_init (argc,
                    argv,
                    "gnunet-dht-query",
@@ -135,6 +135,8 @@
     }
 
   handle = GNUNET_client_connection_create (ectx, cfg);
+  
+  ctx = GNUNET_DHT_context_create(cfg,ectx,&printCallback,unused);
   if (handle == NULL)
     {
       fprintf (stderr, _("Failed to connect to gnunetd.\n"));

Modified: GNUnet/src/applications/dht/tools/dht_api.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_api.c 2008-05-31 04:48:33 UTC (rev 
6940)
+++ GNUnet/src/applications/dht/tools/dht_api.c 2008-05-31 04:58:38 UTC (rev 
6941)
@@ -116,8 +116,8 @@
  *        GNUNET_SYSERR
  * @return NULL on error
  */
-struct GNUNET_DHT_Context *GNUNET_DHT_context_create (struct
-                                                      GNUNET_GC_Configuration
+struct GNUNET_DHT_Context 
+*GNUNET_DHT_context_create (struct GNUNET_GC_Configuration
                                                       *cfg,
                                                       struct GNUNET_GE_Context
                                                       *ectx,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]