From 844a2798eb8ee08225ac10f08120e045c51751ba Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Sat, 11 Mar 2017 15:15:22 -0800 Subject: [PATCH] encoder: use explicit variable names in operation structure This makes it obvious, what each variable stands for. Signed-off-by: Ralf Ramsauer --- src/encoding.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/encoding.h b/src/encoding.h index e0070a1..49c7424 100644 --- a/src/encoding.h +++ b/src/encoding.h @@ -33,10 +33,12 @@ struct encoder { const char name[8]; - int (*encode) (char *, size_t *, const void *, size_t); - int (*decode) (void *, size_t *, const char *, size_t); - int (*places_dots) (void); - int (*eats_dots) (void); + int (*encode)(char *dst, size_t *dstlen, const void *src, size_t srclen); + int (*decode)(void *dst, size_t *dstlen, const char *src, size_t srclen); + + int (*places_dots)(void); + int (*eats_dots)(void); + int (*blocksize_raw)(void); int (*blocksize_encoded)(void); };