diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-08-09 15:47:36 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-08-09 15:47:36 +0000 |
commit | 199fcee43e61846660fa6c8ef2a03381052d2921 (patch) | |
tree | d7ed9581ef9aac0aae5f4be9079f57d21b30c850 /src/mesh/mesh.h | |
parent | 58af348644e6562b1f1f48fac993b045e25e927d (diff) | |
download | gnunet-199fcee43e61846660fa6c8ef2a03381052d2921.tar.gz gnunet-199fcee43e61846660fa6c8ef2a03381052d2921.zip |
- add debug functions, refactor, add common code file
Diffstat (limited to 'src/mesh/mesh.h')
-rw-r--r-- | src/mesh/mesh.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index 30d1acefa..f67a25d5f 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h | |||
@@ -310,5 +310,17 @@ enum MeshPeerState | |||
310 | }; | 310 | }; |
311 | 311 | ||
312 | 312 | ||
313 | /** | ||
314 | * Convert a message type into a string to help debug | ||
315 | * Generated with: | ||
316 | * FIND: "#define ([^ ]+)[ ]*([0-9]+)" | ||
317 | * REPLACE: " case \2: return "\1"; break;" | ||
318 | * | ||
319 | * @param m Message type. | ||
320 | * | ||
321 | * @return Human readable string description. | ||
322 | */ | ||
323 | const char * | ||
324 | GNUNET_MESH_DEBUG_M2S (uint16_t m); | ||
313 | 325 | ||
314 | #endif | 326 | #endif |