added other dsconnect settings
This commit is contained in:
@@ -11,6 +11,7 @@ const (
|
||||
MsgDeviceReleased = "device_released"
|
||||
MsgClientJoined = "client_joined"
|
||||
MsgClientLeft = "client_left"
|
||||
MsgForceRelease = "force_release"
|
||||
MsgPing = "ping"
|
||||
MsgPong = "pong"
|
||||
MsgError = "error"
|
||||
@@ -63,10 +64,11 @@ type USBDevice struct {
|
||||
|
||||
// DeviceList is sent by share clients to announce available devices
|
||||
type DeviceList struct {
|
||||
Type string `json:"type"`
|
||||
ClientID string `json:"client_id"`
|
||||
ClientName string `json:"client_name"`
|
||||
Devices []USBDevice `json:"devices"`
|
||||
Type string `json:"type"`
|
||||
ClientID string `json:"client_id"`
|
||||
ClientName string `json:"client_name"`
|
||||
Devices []USBDevice `json:"devices"`
|
||||
AllowForceDetach bool `json:"allow_force_detach,omitempty"`
|
||||
}
|
||||
|
||||
// RequestDevice is sent by use clients to request a specific device
|
||||
@@ -108,6 +110,13 @@ type DeviceReleased struct {
|
||||
BusID string `json:"bus_id"`
|
||||
}
|
||||
|
||||
// ForceRelease is sent by use clients to force-release a device from another user
|
||||
type ForceRelease struct {
|
||||
Type string `json:"type"`
|
||||
TargetClient string `json:"target_client"`
|
||||
BusID string `json:"bus_id"`
|
||||
}
|
||||
|
||||
// ClientJoined is broadcast when a new client joins the group
|
||||
type ClientJoined struct {
|
||||
Type string `json:"type"`
|
||||
|
||||
Reference in New Issue
Block a user