summaryrefslogtreecommitdiffstats
path: root/src/apk_blob.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r--src/apk_blob.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apk_blob.h b/src/apk_blob.h
index 7e63293..29da722 100644
--- a/src/apk_blob.h
+++ b/src/apk_blob.h
@@ -4,7 +4,7 @@
* Copyright (C) 2008 Timo Teräs <timo.teras@iki.fi>
* All rights reserved.
*
- * This program is free software; you can redistribute it and/or modify it
+ * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation. See http://www.gnu.org/ for details.
*/
@@ -19,6 +19,7 @@ struct apk_blob {
char *ptr;
};
typedef struct apk_blob apk_blob_t;
+typedef int (*apk_blob_cb)(void *ctx, apk_blob_t blob);
#define APK_BLOB_IS_NULL(blob) (blob.ptr == NULL)
@@ -44,7 +45,7 @@ unsigned long apk_blob_hash(apk_blob_t str);
int apk_blob_compare(apk_blob_t a, apk_blob_t b);
int apk_blob_for_each_segment(apk_blob_t blob, const char *split,
- int (*cb)(void *ctx, apk_blob_t blob), void *ctx);
+ apk_blob_cb cb, 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);