diff options
-rw-r--r-- | lib/libfetch/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 393010b..4470c5b 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -71,4 +71,9 @@ int _fetch_add_entry(struct url_ent **p, int *size, int *len, FILE *_http_request(struct url *URL, char *op, struct url_stat *us, struct url *purl, char *flags); +/* + * Check whether a particular flag is set + */ +#define CHECK_FLAG(x) (flags && strchr(flags, (x))) + #endif |