]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/base64.h
ABI tools: Better reporting of missing files
[libucw.git] / ucw / base64.h
index 3f30b69acf112757c76afbce83caaa8ea5a8c8a5..2e2ad0313f2955ad768f39e8d7738b454d728e12 100644 (file)
@@ -7,21 +7,26 @@
  *     of the GNU Lesser General Public License.
  */
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define base64_decode ucw_base64_decode
+#define base64_encode ucw_base64_encode
+#endif
+
 /**
  * Encodes @len bytes of data pointed to by @src by base64 encoding.
  * Stores them in @dest and returns the number of bytes the output
  * takes.
  */
-uns base64_encode(byte *dest, const byte *src, uns len);
+uint base64_encode(byte *dest, const byte *src, uint len);
 /**
  * Decodes @len bytes of data pointed to by @src from base64 encoding.
  * All invalid characters are ignored. The result is stored into @dest
  * and length of the result is returned.
  */
-uns base64_decode(byte *dest, const byte *src, uns len);
+uint base64_decode(byte *dest, const byte *src, uint len);
 
 /**
- * Use this macro to calculate base64_encode() output buffer size.
+ * Use this macro to calculate @base64_encode() output buffer size.
  */
 #define BASE64_ENC_LENGTH(x) (((x)+2)/3 *4)