thunderbolt: sync D-Bus API with bolt changes
bolt 0.3 deprecated all AUTHORIZED_XXX status flags, but added a CONNECTING one. Also AuthFlags got renamed to AuthCtrl.
This commit is contained in:
parent
874a91968f
commit
fb509dfc25
@ -56,12 +56,11 @@ const BoltDeviceProxy = Gio.DBusProxy.makeProxyWrapper(BoltDeviceInterface);
|
||||
|
||||
var Status = {
|
||||
DISCONNECTED: 'disconnected',
|
||||
CONNECTING: 'connecting',
|
||||
CONNECTED: 'connected',
|
||||
AUTHORIZING: 'authorizing',
|
||||
AUTH_ERROR: 'auth-error',
|
||||
AUTHORIZED: 'authorized',
|
||||
AUTHORIZED_SECURE: 'authorized-secure',
|
||||
AUTHORIZED_NEWKEY: 'authorized-newkey'
|
||||
AUTHORIZED: 'authorized'
|
||||
};
|
||||
|
||||
var Policy = {
|
||||
@ -70,7 +69,7 @@ var Policy = {
|
||||
AUTO: 'auto'
|
||||
};
|
||||
|
||||
var AuthFlags = {
|
||||
var AuthCtrl = {
|
||||
NONE: 'none',
|
||||
};
|
||||
|
||||
@ -141,7 +140,7 @@ var Client = new Lang.Class({
|
||||
},
|
||||
|
||||
enrollDevice(id, policy, callback) {
|
||||
this._proxy.EnrollDeviceRemote(id, policy, AuthFlags.NONE,
|
||||
this._proxy.EnrollDeviceRemote(id, policy, AuthCtrl.NONE,
|
||||
(res, error) => {
|
||||
if (error) {
|
||||
Gio.DBusError.strip_remote_error(error);
|
||||
|
Loading…
Reference in New Issue
Block a user