OSDN Git Service
(root)
/
android-x86
/
external-koush-Superuser.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixup multiuser mode detection and usage, add -u option to print multiuser mode
[android-x86/external-koush-Superuser.git]
/
Superuser
/
jni
/
su
/
su.h
diff --git
a/Superuser/jni/su/su.h
b/Superuser/jni/su/su.h
index
a2a5fc9
..
48a0c21
100644
(file)
--- a/
Superuser/jni/su/su.h
+++ b/
Superuser/jni/su/su.h
@@
-115,11
+115,17
@@
typedef enum {
// only owner can su
MULTIUSER_MODE_OWNER_ONLY = 0,
// owner gets a su prompt
// only owner can su
MULTIUSER_MODE_OWNER_ONLY = 0,
// owner gets a su prompt
- MULTIUSER_MODE_OWNER = 1,
+ MULTIUSER_MODE_OWNER
_MANAGED
= 1,
// user gets a su prompt
MULTIUSER_MODE_USER = 2,
// user gets a su prompt
MULTIUSER_MODE_USER = 2,
+ MULTIUSER_MODE_NONE = 3,
} multiuser_mode_t;
} multiuser_mode_t;
+#define MULTIUSER_VALUE_OWNER_ONLY "owner"
+#define MULTIUSER_VALUE_OWNER_MANAGED "managed"
+#define MULTIUSER_VALUE_USER "user"
+#define MULTIUSER_VALUE_NONE "none"
+
typedef enum {
INTERACTIVE = 0,
DENY = 1,
typedef enum {
INTERACTIVE = 0,
DENY = 1,