diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-30 18:11:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-30 18:11:02 +0000 |
commit | 7d8f30700625ba1a94cbdb66362d92943a447412 (patch) | |
tree | 9c1cb0e2ffea43b0ea4b0b3f91654d00b42e29c8 /src | |
parent | 80b9c2cca2624272aaf9adbe792f007e8697e7ed (diff) | |
download | gnunet-7d8f30700625ba1a94cbdb66362d92943a447412.tar.gz gnunet-7d8f30700625ba1a94cbdb66362d92943a447412.zip |
-docu
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_mesh_service.h | 6 | ||||
-rw-r--r-- | src/include/gnunet_scheduler_lib.h | 10 | ||||
-rw-r--r-- | src/util/crypto_ecc.c | 2 | ||||
-rw-r--r-- | src/util/scheduler.c | 12 |
4 files changed, 21 insertions, 9 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index 7bba9c134..8ec72e78a 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h | |||
@@ -96,11 +96,11 @@ enum MeshTunnelOption | |||
96 | * Functions with this signature are called whenever a message is | 96 | * Functions with this signature are called whenever a message is |
97 | * received. | 97 | * received. |
98 | * | 98 | * |
99 | * Each time the function must call GNUNET_MESH_receive_done on the tunnel | 99 | * Each time the function must call #GNUNET_MESH_receive_done on the tunnel |
100 | * in order to receive the next message. This doesn't need to be immediate: | 100 | * in order to receive the next message. This doesn't need to be immediate: |
101 | * can be delayed if some processing is done on the message. | 101 | * can be delayed if some processing is done on the message. |
102 | * | 102 | * |
103 | * @param cls Closure (set from GNUNET_MESH_connect). | 103 | * @param cls Closure (set from #GNUNET_MESH_connect). |
104 | * @param tunnel Connection to the other end. | 104 | * @param tunnel Connection to the other end. |
105 | * @param tunnel_ctx Place to store local state associated with the tunnel. | 105 | * @param tunnel_ctx Place to store local state associated with the tunnel. |
106 | * @param message The actual message. | 106 | * @param message The actual message. |
@@ -193,7 +193,7 @@ typedef void (GNUNET_MESH_TunnelEndHandler) (void *cls, | |||
193 | * It is NOT called if GNUNET_MESH_tunnel_destroy is called on | 193 | * It is NOT called if GNUNET_MESH_tunnel_destroy is called on |
194 | * the tunnel. | 194 | * the tunnel. |
195 | * @param handlers Callbacks for messages we care about, NULL-terminated. Each | 195 | * @param handlers Callbacks for messages we care about, NULL-terminated. Each |
196 | * one must call GNUNET_MESH_receive_done on the tunnel to | 196 | * one must call #GNUNET_MESH_receive_done on the tunnel to |
197 | * receive the next message. Messages of a type that is not | 197 | * receive the next message. Messages of a type that is not |
198 | * in the handlers array are ignored if received. | 198 | * in the handlers array are ignored if received. |
199 | * @param ports NULL or 0-terminated array of port numbers for incoming tunnels. | 199 | * @param ports NULL or 0-terminated array of port numbers for incoming tunnels. |
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h index 110c0ce77..dee6eab27 100644 --- a/src/include/gnunet_scheduler_lib.h +++ b/src/include/gnunet_scheduler_lib.h | |||
@@ -327,8 +327,14 @@ GNUNET_SCHEDULER_add_with_priority (enum GNUNET_SCHEDULER_Priority prio, | |||
327 | 327 | ||
328 | 328 | ||
329 | /** | 329 | /** |
330 | * Schedule a new task to be run as soon as possible. The task | 330 | * Schedule a new task to be run as soon as possible. Note that this |
331 | * will be run with the DEFAULT priority. | 331 | * does not guarantee that this will be the next task that is being |
332 | * run, as other tasks with higher priority (or that are already ready | ||
333 | * to run) might get to run first. Just as with delays, clients must | ||
334 | * not rely on any particular order of execution between tasks | ||
335 | * scheduled concurrently. | ||
336 | * | ||
337 | * The task will be run with the DEFAULT priority. | ||
332 | * | 338 | * |
333 | * @param task main function of the task | 339 | * @param task main function of the task |
334 | * @param task_cls closure of @a task | 340 | * @param task_cls closure of @a task |
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 5ad0b81cb..4b3158c8a 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c | |||
@@ -49,7 +49,7 @@ | |||
49 | * a failure of the command 'cmd' with the message given | 49 | * a failure of the command 'cmd' with the message given |
50 | * by gcry_strerror(rc). | 50 | * by gcry_strerror(rc). |
51 | */ | 51 | */ |
52 | #define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0); | 52 | #define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0) |
53 | 53 | ||
54 | 54 | ||
55 | /** | 55 | /** |
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 5b90d7e4f..7ef55cd86 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1152,11 +1152,17 @@ GNUNET_SCHEDULER_add_delayed (struct GNUNET_TIME_Relative delay, | |||
1152 | 1152 | ||
1153 | 1153 | ||
1154 | /** | 1154 | /** |
1155 | * Schedule a new task to be run as soon as possible. The task | 1155 | * Schedule a new task to be run as soon as possible. Note that this |
1156 | * will be run with the DEFAULT priority. | 1156 | * does not guarantee that this will be the next task that is being |
1157 | * run, as other tasks with higher priority (or that are already ready | ||
1158 | * to run) might get to run first. Just as with delays, clients must | ||
1159 | * not rely on any particular order of execution between tasks | ||
1160 | * scheduled concurrently. | ||
1161 | * | ||
1162 | * The task will be run with the DEFAULT priority. | ||
1157 | * | 1163 | * |
1158 | * @param task main function of the task | 1164 | * @param task main function of the task |
1159 | * @param task_cls closure of task | 1165 | * @param task_cls closure of @a task |
1160 | * @return unique task identifier for the job | 1166 | * @return unique task identifier for the job |
1161 | * only valid until "task" is started! | 1167 | * only valid until "task" is started! |
1162 | */ | 1168 | */ |