From 1a7f3e3678844165d2660ebff09da26b9ba01576 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 27 Nov 2008 16:59:04 +0200 Subject: various: use apk_istream api --- src/apk_blob.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/apk_blob.h') 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)}) -- cgit v1.2.3