diff options
author | David Robillard <d@drobilla.net> | 2020-11-10 15:44:37 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-10 18:29:45 +0100 |
commit | bafa091fada7b3fdc663567abc0a7455bc3a77c9 (patch) | |
tree | 68c73bbdec5d0fa83cc2913c7a13f48e84a3bdff /src/base64.h | |
parent | f820212f2ac92400cf277686e4f79e740b95688c (diff) | |
download | serd-bafa091fada7b3fdc663567abc0a7455bc3a77c9.tar.gz serd-bafa091fada7b3fdc663567abc0a7455bc3a77c9.tar.bz2 serd-bafa091fada7b3fdc663567abc0a7455bc3a77c9.zip |
Add const, pure, and malloc function attributes
Diffstat (limited to 'src/base64.h')
-rw-r--r-- | src/base64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base64.h b/src/base64.h index 11eb9db9..7fd29fef 100644 --- a/src/base64.h +++ b/src/base64.h @@ -17,6 +17,8 @@ #ifndef SERD_BASE64_H #define SERD_BASE64_H +#include "serd/serd.h" + #include <stdbool.h> #include <stddef.h> #include <stdint.h> @@ -28,7 +30,7 @@ @param wrap_lines Wrap lines at 76 characters to conform to RFC 2045. @return The length of the base64 encoding, excluding null terminator. */ -size_t +SERD_CONST_FUNC size_t serd_base64_get_length(size_t size, bool wrap_lines); /** |