summaryrefslogtreecommitdiffstats
path: root/src/apk_blob.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-06 16:58:58 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-06 16:58:58 +0200
commit57154db85d459a869bbfb7a3bd2bcb16699a0a7a (patch)
tree64394df9d0e0775c334ff6d69c67a4a4322d625b /src/apk_blob.h
parentb380d4f8e08aefdf5f685bb3e6731e670d278277 (diff)
downloadapk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.bz2
apk-tools-57154db85d459a869bbfb7a3bd2bcb16699a0a7a.tar.xz
db: parse new style .PKGINFO
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r--src/apk_blob.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/apk_blob.h b/src/apk_blob.h
index 033d331..a91f6b5 100644
--- a/src/apk_blob.h
+++ b/src/apk_blob.h
@@ -27,10 +27,13 @@ typedef struct apk_blob apk_blob_t;
#define APK_BLOB_PTR_PTR(beg,end) APK_BLOB_PTR_LEN((beg),(end)-(beg)+1)
char *apk_blob_cstr(apk_blob_t str);
-int apk_blob_splitstr(apk_blob_t blob, char *split, apk_blob_t *l, apk_blob_t *r);
+int apk_blob_splitstr(apk_blob_t blob, const char *split, apk_blob_t *l, apk_blob_t *r);
int apk_blob_rsplit(apk_blob_t blob, char split, apk_blob_t *l, apk_blob_t *r);
unsigned apk_blob_uint(apk_blob_t blob, int base);
+int apk_blob_for_each_segment(apk_blob_t blob, const char *split,
+ int (*cb)(void *ctx, apk_blob_t blob), void *ctx);
+
int apk_hexdump_parse(apk_blob_t to, apk_blob_t from);
int apk_hexdump_format(int tolen, char *to, apk_blob_t from);