summaryrefslogtreecommitdiff
path: root/src/apk_blob.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-27 16:59:04 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-27 16:59:04 +0200
commit1a7f3e3678844165d2660ebff09da26b9ba01576 (patch)
treed2b960a3612249d1ac975e18bb98096a6e2a2df5 /src/apk_blob.h
parent8e23a2ba4eb7f6192c6bce8a6da81004803eca3f (diff)
downloadapk-tools-1a7f3e3678844165d2660ebff09da26b9ba01576.tar.gz
apk-tools-1a7f3e3678844165d2660ebff09da26b9ba01576.tar.bz2
apk-tools-1a7f3e3678844165d2660ebff09da26b9ba01576.tar.xz
apk-tools-1a7f3e3678844165d2660ebff09da26b9ba01576.zip
various: use apk_istream api
Diffstat (limited to 'src/apk_blob.h')
-rw-r--r--src/apk_blob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_blob.h b/src/apk_blob.h
index a91f6b5..5f30fd6 100644
--- a/src/apk_blob.h
+++ b/src/apk_blob.h
@@ -20,6 +20,8 @@ struct apk_blob {
};
typedef struct apk_blob apk_blob_t;
+#define APK_BLOB_IS_NULL(blob) (blob.ptr == NULL)
+
#define APK_BLOB_NULL ((apk_blob_t){0, NULL})
#define APK_BLOB_STR(str) ((apk_blob_t){strlen(str), (str)})
#define APK_BLOB_BUF(buf) ((apk_blob_t){sizeof(buf), (char *)(buf)})