From 7a29678aac20ac9e113704f8a5743f6051edef8d Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 25 Jun 2009 15:14:07 +0300 Subject: help: auto construct help And add some more verbosity to the help message. --- src/apk_blob.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/apk_blob.h') 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 * 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); -- cgit v1.2.3