]> git.sur5r.net Git - openocd/blobdiff - src/helper/binarybuffer.h
move options handling to separate file to better support embedded implementations...
[openocd] / src / helper / binarybuffer.h
index 0a688945002a39f9509be5d186a38fa8454c7c94..feb5724b97a40bffa4a198cc793ec94c343c1ad1 100644 (file)
@@ -38,10 +38,11 @@ extern u8* buf_cpy(u8 *from, u8 *to, int size);
 extern u8* buf_set_ones(u8 *buf, int count);
 extern u8* buf_set_buf(u8 *src, int src_start, u8 *dst, int dst_start, int len);
 
-extern char* buf_to_char(u8 *buf, int size);
-extern int char_to_buf(char *buf, int len, u8 *bin_buf, int buf_size);
+extern int str_to_buf(char* str, int len, u8 *bin_buf, int buf_size, int radix);
+extern char* buf_to_str(u8 *buf, int size, int radix);
 
-extern int buf_to_u32_handler(u8 *in_buf, void *priv);
+struct scan_field_s;
+extern int buf_to_u32_handler(u8 *in_buf, void *priv, struct scan_field_s *field);
 
 #define CEIL(m, n)     ((m + n - 1) / n)