diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-27 12:24:26 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-27 12:24:26 +0000 |
commit | f315953dd3ec50b6cf6482834b6403680238d9da (patch) | |
tree | 4d4d5d29d345a1a62772092fc7bb5589ef3e839b /src/include/gnunet_configuration_lib.h | |
parent | f3e6ce798c7637c4bc66a2ad0496a50f70cc1076 (diff) | |
download | gnunet-f315953dd3ec50b6cf6482834b6403680238d9da.tar.gz gnunet-f315953dd3ec50b6cf6482834b6403680238d9da.zip |
configuration serialization
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 0fcb4e054..bba2900da 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -113,6 +113,19 @@ GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
113 | 113 | ||
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Serializes the given configuration. | ||
117 | * | ||
118 | * @param cfg configuration to serialize | ||
119 | * @param size will be set to the size of the serialized memory block | ||
120 | * @return the memory block where the serialized configuration is | ||
121 | * present. This memory should be freed by the caller | ||
122 | */ | ||
123 | char * | ||
124 | GNUNET_CONFIGURATION_serialize (struct GNUNET_CONFIGURATION_Handle *cfg, | ||
125 | uint16_t *size); | ||
126 | |||
127 | |||
128 | /** | ||
116 | * Write configuration file. | 129 | * Write configuration file. |
117 | * | 130 | * |
118 | * @param cfg configuration to write | 131 | * @param cfg configuration to write |