file_util: implement urldecode_path()
[project/opkg-lede.git] / libopkg / file_util.h
index cfad55155a0e25fd3a90623b2c60056bd7c612ec..279db82bf5e720ce58072a6a98c0e7432e9d3510 100644 (file)
@@ -20,7 +20,7 @@
 
 int file_exists(const char *file_name);
 int file_is_dir(const char *file_name);
-char *file_read_line_alloc(FILE *file);
+char *file_read_line_alloc(FILE * file);
 int file_move(const char *src, const char *dest);
 int file_copy(const char *src, const char *dest);
 int file_mkdir_hier(const char *path, long mode);
@@ -28,4 +28,10 @@ char *file_md5sum_alloc(const char *file_name);
 char *file_sha256sum_alloc(const char *file_name);
 int rm_r(const char *path);
 
+char *checksum_bin2hex(const char *src, size_t len);
+char *checksum_hex2bin(const char *src, size_t *len);
+
+char *urlencode_path(const char *filename);
+char *urldecode_path(const char *filename);
+
 #endif