X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/0f55e9050dd26ab8804934a188f1ee8ab8b55ffe..938d815790a53407a3113b183319b985135e1d1d:/lib/rights.h diff --git a/lib/rights.h b/lib/rights.h index 794213c..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 @@ -102,6 +104,12 @@ typedef uint32_t rights_type; char *rights_string(rights_type r); 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 */