X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/eb5dc014179415a0e5476e986519ac96c36221f9..6fc592ffe67215116e84a6c31a31ede189aa6c0e:/lib/rights.h diff --git a/lib/rights.h b/lib/rights.h index 6192772..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 @@ -100,9 +102,14 @@ /** @brief Unsigned type big enough for rights */ typedef uint32_t rights_type; -rights_type default_rights(void); 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 */