diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/abd/abd_serialization.h | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/abd/abd_serialization.h')
-rw-r--r-- | src/abd/abd_serialization.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/abd/abd_serialization.h b/src/abd/abd_serialization.h index cef9f42ef..21dc45a7b 100644 --- a/src/abd/abd_serialization.h +++ b/src/abd/abd_serialization.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | /** | 22 | /** |
23 | * @file abd/abd_serialization.h | 23 | * @file abd/abd_serialization.h |
24 | * @brief API to serialize and deserialize delegation chains | 24 | * @brief API to serialize and deserialize delegation chains |
25 | * and abds | 25 | * and abds |
26 | * @author Martin Schanzenbach | 26 | * @author Martin Schanzenbach |
27 | */ | 27 | */ |
@@ -136,6 +136,7 @@ GNUNET_ABD_delegation_chain_deserialize ( | |||
136 | struct GNUNET_ABD_Delegation *dd, | 136 | struct GNUNET_ABD_Delegation *dd, |
137 | unsigned int c_count, | 137 | unsigned int c_count, |
138 | struct GNUNET_ABD_Delegate *cd); | 138 | struct GNUNET_ABD_Delegate *cd); |
139 | |||
139 | size_t | 140 | size_t |
140 | GNUNET_ABD_delegates_get_size ( | 141 | GNUNET_ABD_delegates_get_size ( |
141 | unsigned int c_count, | 142 | unsigned int c_count, |
@@ -151,15 +152,16 @@ GNUNET_ABD_delegates_serialize ( | |||
151 | 152 | ||
152 | int | 153 | int |
153 | GNUNET_ABD_delegates_deserialize (size_t len, | 154 | GNUNET_ABD_delegates_deserialize (size_t len, |
154 | const char *src, | 155 | const char *src, |
155 | unsigned int c_count, | 156 | unsigned int c_count, |
156 | struct GNUNET_ABD_Delegate *cd); | 157 | struct GNUNET_ABD_Delegate *cd); |
157 | 158 | ||
158 | int | 159 | int |
159 | GNUNET_ABD_delegate_serialize (struct GNUNET_ABD_Delegate *cred, | 160 | GNUNET_ABD_delegate_serialize (struct GNUNET_ABD_Delegate *cred, |
160 | char **data); | 161 | char **data); |
161 | 162 | ||
162 | struct GNUNET_ABD_Delegate * | 163 | struct GNUNET_ABD_Delegate * |
163 | GNUNET_ABD_delegate_deserialize (const char *data, size_t data_size); | 164 | GNUNET_ABD_delegate_deserialize (const char *data, size_t data_size); |
165 | |||
164 | #endif | 166 | #endif |
165 | /* end of abd_serialization.h */ | 167 | /* end of abd_serialization.h */ |