gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35527 - in gnunet/src: gns identity namestore


From: gnunet
Subject: [GNUnet-SVN] r35527 - in gnunet/src: gns identity namestore
Date: Fri, 10 Apr 2015 16:31:02 +0200

Author: schanzen
Date: 2015-04-10 16:31:02 +0200 (Fri, 10 Apr 2015)
New Revision: 35527

Modified:
   gnunet/src/gns/plugin_rest_gns.c
   gnunet/src/identity/plugin_rest_identity.c
   gnunet/src/namestore/plugin_rest_namestore.c
Log:
-make static

Modified: gnunet/src/gns/plugin_rest_gns.c
===================================================================
--- gnunet/src/gns/plugin_rest_gns.c    2015-04-10 07:49:10 UTC (rev 35526)
+++ gnunet/src/gns/plugin_rest_gns.c    2015-04-10 14:31:02 UTC (rev 35527)
@@ -226,7 +226,7 @@
  *
  * @param rd the GNSRECORD_Data
  */
-json_t *
+static json_t *
 gnsrecord_to_json (const struct GNUNET_GNSRECORD_Data *rd)
 {
   const char *typename;
@@ -480,7 +480,7 @@
  * @param handle lookup handle to populate
  * @return GNUNET_SYSERR on error
  */
-int
+static int
 parse_url (const char *url, struct LookupHandle *handle)
 {
   char *name;
@@ -513,7 +513,7 @@
  * @param proc_cls closure for callback function
  * @return GNUNET_OK if request accepted
  */
-void
+static void
 rest_gns_process_request(struct RestConnectionDataHandle *conndata_handle,
                          GNUNET_REST_ResultProcessor proc,
                          void *proc_cls)

Modified: gnunet/src/identity/plugin_rest_identity.c
===================================================================
--- gnunet/src/identity/plugin_rest_identity.c  2015-04-10 07:49:10 UTC (rev 
35526)
+++ gnunet/src/identity/plugin_rest_identity.c  2015-04-10 14:31:02 UTC (rev 
35527)
@@ -83,6 +83,7 @@
   struct GNUNET_IDENTITY_Ego *ego;
 };
 
+
 struct RequestHandle
 {
   /**
@@ -174,7 +175,7 @@
  * Cleanup lookup handle
  * @param handle Handle to clean up
  */
-void
+static void
 cleanup_handle (struct RequestHandle *handle)
 {
   struct EgoEntry *ego_entry;
@@ -227,7 +228,7 @@
  * @param ctx the context
  * @param name the id of the ego
  */
-void
+static void
 get_ego_for_subsys (void *cls,
                     struct GNUNET_IDENTITY_Ego *ego,
                     void **ctx,
@@ -281,7 +282,7 @@
  *
  * @param handle the RequestHandle
  */
-void
+static void
 ego_info_response (struct RestConnectionDataHandle *con,
                    const char *url,
                    void *cls)
@@ -425,8 +426,9 @@
   struct JsonApiObject *json_obj;
   struct JsonApiResource *json_res;
   json_t *egoname_json;
+  const char* egoname;
   char term_data[handle->data_size+1];
-  const char* egoname;
+
   if (strlen (GNUNET_REST_API_NS_IDENTITY) != strlen (handle->url))
   {
     GNUNET_SCHEDULER_add_now (&do_error, handle);
@@ -489,23 +491,31 @@
                                        handle);
 }
 
-void 
+
+/**
+ * Handle ego edit request
+ *
+ * @param con rest connection handle
+ * @param url the url that is requested
+ * @param cls the RequestHandle
+ */
+static void 
 ego_edit_cont (struct RestConnectionDataHandle *con,
                  const char *url,
                  void *cls)
 {
   struct JsonApiObject *json_obj;
   struct JsonApiResource *json_res;
+  struct RequestHandle *handle = cls;
+  struct EgoEntry *ego_entry;
+  struct MHD_Response *resp;
+  json_t *subsys_json;
+  json_t *name_json;
   const char *egoname;
   const char *subsys;
   const char *newname;
-  struct RequestHandle *handle = cls;
   char term_data[handle->data_size+1];
-  struct EgoEntry *ego_entry;
-  struct MHD_Response *resp;
   int ego_exists = GNUNET_NO;
-  json_t *subsys_json;
-  json_t *name_json;
   
   if (strlen (GNUNET_REST_API_NS_IDENTITY) > strlen (handle->url))
   {
@@ -642,7 +652,13 @@
 
 }
 
-void
+
+/**
+ * Handle rest request
+ *
+ * @param handle the request handle
+ */
+static void
 init_cont (struct RequestHandle *handle)
 {
   static const struct GNUNET_REST_RestConnectionHandler handlers[] = {
@@ -726,7 +742,7 @@
  * @param proc_cls closure for callback function
  * @return GNUNET_OK if request accepted
  */
-void
+static void
 rest_identity_process_request(struct RestConnectionDataHandle *conndata_handle,
                               GNUNET_REST_ResultProcessor proc,
                               void *proc_cls)

Modified: gnunet/src/namestore/plugin_rest_namestore.c
===================================================================
--- gnunet/src/namestore/plugin_rest_namestore.c        2015-04-10 07:49:10 UTC 
(rev 35526)
+++ gnunet/src/namestore/plugin_rest_namestore.c        2015-04-10 14:31:02 UTC 
(rev 35527)
@@ -220,7 +220,7 @@
  * Cleanup lookup handle
  * @param handle Handle to clean up
  */
-void
+static void
 cleanup_handle (struct RequestHandle *handle)
 {
   struct RecordEntry *record_entry;
@@ -274,7 +274,7 @@
  *
  * @param rd the GNSRECORD_Data
  */
-json_t *
+static json_t *
 gnsrecord_to_json (const struct GNUNET_GNSRECORD_Data *rd)
 {
   const char *typename;
@@ -351,7 +351,7 @@
  *
  * @param handle the RequestHandle
  */
-void
+static void
 namestore_list_response (void *cls,
                          const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
                          const char *rname,
@@ -967,7 +967,7 @@
  * @param proc_cls closure for callback function
  * @return GNUNET_OK if request accepted
  */
-void
+static void
 rest_identity_process_request(struct RestConnectionDataHandle *conndata_handle,
                               GNUNET_REST_ResultProcessor proc,
                               void *proc_cls)




reply via email to

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