aboutsummaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorRoman Sorokin <rsorokin@chromium.org>2016-10-26 18:44:33 +0200
committerchrome-bot <chrome-bot@chromium.org>2016-10-28 06:16:08 -0700
commit6b679748bee1f2593d523dfb690e1f2d9c982f12 (patch)
tree3eb18303e374f307c3e93ee8b547cc0d4e9705b2 /dbus
parent600a7341c71162586df965d56f4c88dd6f6f8c88 (diff)
downloadsystem_api-6b679748bee1f2593d523dfb690e1f2d9c982f12.tar.gz
Add error codes for authpolicy
This will be used by auth_policy_client on the Chrome side BUG=chromium:653509 TEST=compiles Change-Id: I77c9f0efdb67f8863ccfd0ca4976104396206a31 Reviewed-on: https://chromium-review.googlesource.com/403809 Commit-Ready: Roman Sorokin <rsorokin@chromium.org> Tested-by: Roman Sorokin <rsorokin@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org>
Diffstat (limited to 'dbus')
-rw-r--r--dbus/authpolicy/dbus-constants.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/dbus/authpolicy/dbus-constants.h b/dbus/authpolicy/dbus-constants.h
index 12ed751..4e39b88 100644
--- a/dbus/authpolicy/dbus-constants.h
+++ b/dbus/authpolicy/dbus-constants.h
@@ -14,6 +14,31 @@ const char kAuthPolicyAuthenticateUser[] = "AuthenticateUser";
const char kAuthPolicyJoinADDomain[] = "JoinADDomain";
const char kAuthPolicyRefreshUserPolicy[] = "RefreshUserPolicy";
const char kAuthPolicyRefreshDevicePolicy[] = "RefreshDevicePolicy";
+
+// Enum values.
+enum ADJoinErrorType {
+ AD_JOIN_ERROR_NONE = 0,
+ AD_JOIN_ERROR_UNKNOWN = 1,
+ AD_JOIN_ERROR_DBUS_FAILURE = 2,
+};
+
+enum AuthUserErrorType {
+ AUTH_USER_ERROR_NONE = 0,
+ AUTH_USER_ERROR_UNKNOWN = 1,
+ AUTH_USER_ERROR_DBUS_FAILURE = 2,
+};
+
+enum RefreshUserPolicyErrorType {
+ REFRESH_USER_POLICY_ERROR_NONE = 0,
+ REFRESH_USER_POLICY_ERROR_UNKNOWN = 1,
+ REFRESH_USER_POLICY_ERROR_DBUS_FAILURE = 2,
+};
+
+enum RefreshDevicePolicyErrorType {
+ REFRESH_DEVICE_POLICY_ERROR_NONE = 0,
+ REFRESH_DEVICE_POLICY_ERROR_UNKNOWN = 1,
+ REFRESH_DEVICE_POLICY_ERROR_DBUS_FAILURE = 2,
+};
} // namespace authpolicy
#endif // SYSTEM_API_DBUS_AUTHPOLICY_DBUS_CONSTANTS_H_