chiark / gitweb /
'collection' no longer requires an encoding to be specified (or a module).
[disorder] / lib / rights.h
index fb2d6254f4add7f3f8a6d200d1a45541e33b7c0e..c51ca5ca0c4bcc0b04c472651e9b64c234aa6ddd 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef RIGHTS_H
 #define RIGHTS_H
 
+struct queue_entry;
+
 /** @brief User can perform read-only operations */
 #define RIGHT_READ            0x00000001
 
 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 */