chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rights now apply to commands; docs catch up a bit
[disorder]
/
lib
/
rights.h
diff --git
a/lib/rights.h
b/lib/rights.h
index f4bf363ae3833628243cbf71f68681d8d05ae62a..61927722fb502e4ba28e6d5d516d5fc523cb57ed 100644
(file)
--- a/
lib/rights.h
+++ b/
lib/rights.h
@@
-84,8
+84,18
@@
/** @brief User can modify global preferences */
#define RIGHT_GLOBAL_PREFS 0x00020000
/** @brief User can modify global preferences */
#define RIGHT_GLOBAL_PREFS 0x00020000
+/** @brief User can pause/resume */
+#define RIGHT_PAUSE 0x00040000
+
/** @brief Current rights mask */
/** @brief Current rights mask */
-#define RIGHTS__MASK 0x0003ffff
+#define RIGHTS__MASK 0x0007ffff
+
+/** @brief Connection is local
+ *
+ * This isn't a rights bit, it's used in @file server.c to limit
+ * certain commands to local connections.
+ */
+#define RIGHT__LOCAL 0x80000000
/** @brief Unsigned type big enough for rights */
typedef uint32_t rights_type;
/** @brief Unsigned type big enough for rights */
typedef uint32_t rights_type;