diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-07 14:05:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-07 14:05:06 +0000 |
commit | f7779acffd50d74b0fd309dd962f96c012034339 (patch) | |
tree | 4acdf658f3bd2b63a5c61d5a4c370a3745a315bf /src/include | |
parent | f3e4e62791a032420892a4f947125cf1aceb2c36 (diff) | |
download | gnunet-f7779acffd50d74b0fd309dd962f96c012034339.tar.gz gnunet-f7779acffd50d74b0fd309dd962f96c012034339.zip |
-simplify apis, doxygen
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_datastore_service.h | 13 | ||||
-rw-r--r-- | src/include/gnunet_service_lib.h | 9 |
2 files changed, 9 insertions, 13 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h index 9a9ba5429..c229c78fb 100644 --- a/src/include/gnunet_datastore_service.h +++ b/src/include/gnunet_datastore_service.h | |||
@@ -105,22 +105,17 @@ typedef void (*GNUNET_DATASTORE_ContinuationWithStatus) (void *cls, | |||
105 | * @param h handle to the datastore | 105 | * @param h handle to the datastore |
106 | * @param amount how much space (in bytes) should be reserved (for content only) | 106 | * @param amount how much space (in bytes) should be reserved (for content only) |
107 | * @param entries how many entries will be created (to calculate per-entry overhead) | 107 | * @param entries how many entries will be created (to calculate per-entry overhead) |
108 | * @param queue_priority ranking of this request in the priority queue | ||
109 | * @param max_queue_size at what queue size should this request be dropped | ||
110 | * (if other requests of higher priority are in the queue) | ||
111 | * @param timeout how long to wait at most for a response (or before dying in queue) | ||
112 | * @param cont continuation to call when done; "success" will be set to | 108 | * @param cont continuation to call when done; "success" will be set to |
113 | * a positive reservation value if space could be reserved. | 109 | * a positive reservation value if space could be reserved. |
114 | * @param cont_cls closure for cont | 110 | * @param cont_cls closure for @a cont |
115 | * @return NULL if the entry was not queued, otherwise a handle that can be used to | 111 | * @return NULL if the entry was not queued, otherwise a handle that can be used to |
116 | * cancel; note that even if NULL is returned, the callback will be invoked | 112 | * cancel; note that even if NULL is returned, the callback will be invoked |
117 | * (or rather, will already have been invoked) | 113 | * (or rather, will already have been invoked) |
118 | */ | 114 | */ |
119 | struct GNUNET_DATASTORE_QueueEntry * | 115 | struct GNUNET_DATASTORE_QueueEntry * |
120 | GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, uint64_t amount, | 116 | GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, |
121 | uint32_t entries, unsigned int queue_priority, | 117 | uint64_t amount, |
122 | unsigned int max_queue_size, | 118 | uint32_t entries, |
123 | struct GNUNET_TIME_Relative timeout, | ||
124 | GNUNET_DATASTORE_ContinuationWithStatus cont, | 119 | GNUNET_DATASTORE_ContinuationWithStatus cont, |
125 | void *cont_cls); | 120 | void *cont_cls); |
126 | 121 | ||
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index d7a798bc2..869e8c898 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -51,7 +51,7 @@ extern "C" | |||
51 | * addresses the server should bind to and listen on; the | 51 | * addresses the server should bind to and listen on; the |
52 | * array will be NULL-terminated (on success) | 52 | * array will be NULL-terminated (on success) |
53 | * @param addr_lens set (call by reference) to an array of the lengths | 53 | * @param addr_lens set (call by reference) to an array of the lengths |
54 | * of the respective 'struct sockaddr' struct in the @a addrs | 54 | * of the respective `struct sockaddr` struct in the @a addrs |
55 | * array (on success) | 55 | * array (on success) |
56 | * @return number of addresses found on success, | 56 | * @return number of addresses found on success, |
57 | * #GNUNET_SYSERR if the configuration | 57 | * #GNUNET_SYSERR if the configuration |
@@ -76,9 +76,10 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name, | |||
76 | * @param server the initialized server | 76 | * @param server the initialized server |
77 | * @param cfg configuration to use | 77 | * @param cfg configuration to use |
78 | */ | 78 | */ |
79 | typedef void (*GNUNET_SERVICE_Main) (void *cls, | 79 | typedef void |
80 | struct GNUNET_SERVER_Handle *server, | 80 | (*GNUNET_SERVICE_Main) (void *cls, |
81 | const struct GNUNET_CONFIGURATION_Handle *cfg); | 81 | struct GNUNET_SERVER_Handle *server, |
82 | const struct GNUNET_CONFIGURATION_Handle *cfg); | ||
82 | 83 | ||
83 | 84 | ||
84 | /** | 85 | /** |