This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
intiface-gui.proto
72 lines (59 loc) · 1.64 KB
/
intiface-gui.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
syntax = "proto3";
package IntifaceGuiProtocol;
option csharp_namespace = "IntifaceCLI";
message ServerControlMessage {
message Stop {
};
oneof msg {
Stop stop = 1;
}
}
// This needs to stay in sync with the Intiface protocols.
message ServerProcessMessage {
// Status messages from the server process
message ProcessLog {
string message = 1;
};
// Notifies frontend that server process is up and running
message ProcessStarted {
};
// Notifies frontend that the server process errored out
message ProcessError {
string message = 1;
};
// Notifies frontend that server process has ended
message ProcessEnded {
};
// Buttplug protocol log message from server process
message ButtplugLog {
string message = 1;
};
// Notification that a client has connected to the server process
message ClientConnected {
string client_name = 1;
};
// Notification that a client has disconnected from the server
// process.
message ClientDisconnected {
};
// Notification that the server has connected to a device.
message DeviceConnected {
string device_name = 1;
uint32 device_id = 2;
};
// Notification that the server has disconnected from a device.
message DeviceDisconnected {
uint32 device_id = 1;
};
oneof msg {
ProcessStarted process_started = 1;
ProcessError process_error = 2;
ProcessEnded process_ended = 3;
ProcessLog process_log = 4;
ButtplugLog buttplug_log = 5;
ClientConnected client_connected = 6;
ClientDisconnected client_disconnected = 7;
DeviceConnected device_connected = 8;
DeviceDisconnected device_disconnected = 9;
};
}