X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/04e1fa7cf5163aa784baaf3292ccb3b49e296410..0d0253c93a64d2b5206e902c648e1e2c6bc5d510:/lib/rights.h diff --git a/lib/rights.h b/lib/rights.h index fb2d625..c51ca5c 100644 --- a/lib/rights.h +++ b/lib/rights.h @@ -24,6 +24,8 @@ #ifndef RIGHTS_H #define RIGHTS_H +struct queue_entry; + /** @brief User can perform read-only operations */ #define RIGHT_READ 0x00000001 @@ -101,7 +103,13 @@ typedef uint32_t rights_type; char *rights_string(rights_type r); -int parse_rights(const char *s, rights_type *rp); +int parse_rights(const char *s, rights_type *rp, int report); +int right_scratchable(rights_type rights, const char *who, + const struct queue_entry *q); +int right_movable(rights_type rights, const char *who, + const struct queue_entry *q); +int right_removable(rights_type rights, const char *who, + const struct queue_entry *q); #endif /* RIGHTS_H */