diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-06-25 15:14:07 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-06-25 15:14:07 +0300 |
commit | 7a29678aac20ac9e113704f8a5743f6051edef8d (patch) | |
tree | 11c9583a66fa5fc1122e6d993b92dc7cd591e237 /src/apk_blob.h | |
parent | 3a488564753cee51832b6824128249a99eb4613b (diff) | |
download | apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.gz apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.bz2 apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.xz apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.zip |
help: auto construct help
And add some more verbosity to the help message.
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r-- | src/apk_blob.h | 5 |
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); |