implement main method
update protobuf to spectrum 2.0.5
This commit is contained in:
parent
0c199a8231
commit
d88d13d1e3
|
@ -89,6 +89,7 @@ message Room {
|
||||||
message RoomList {
|
message RoomList {
|
||||||
repeated string room = 1;
|
repeated string room = 1;
|
||||||
repeated string name = 2;
|
repeated string name = 2;
|
||||||
|
optional string user = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ParticipantFlag {
|
enum ParticipantFlag {
|
||||||
|
@ -111,6 +112,7 @@ message Participant {
|
||||||
optional string statusMessage = 6;
|
optional string statusMessage = 6;
|
||||||
optional string newname = 7;
|
optional string newname = 7;
|
||||||
optional string iconHash = 8;
|
optional string iconHash = 8;
|
||||||
|
optional string alias = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message VCard {
|
message VCard {
|
||||||
|
@ -152,6 +154,10 @@ message BackendConfig {
|
||||||
required string config = 1;
|
required string config = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message APIVersion {
|
||||||
|
required int32 version = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message WrapperMessage {
|
message WrapperMessage {
|
||||||
enum Type {
|
enum Type {
|
||||||
TYPE_CONNECTED = 1;
|
TYPE_CONNECTED = 1;
|
||||||
|
@ -188,8 +194,10 @@ message WrapperMessage {
|
||||||
TYPE_CONV_MESSAGE_ACK = 33;
|
TYPE_CONV_MESSAGE_ACK = 33;
|
||||||
TYPE_RAW_XML = 34;
|
TYPE_RAW_XML = 34;
|
||||||
TYPE_BUDDIES = 35;
|
TYPE_BUDDIES = 35;
|
||||||
|
TYPE_API_VERSION = 36;
|
||||||
}
|
}
|
||||||
required Type type = 1;
|
required Type type = 1;
|
||||||
optional bytes payload = 2;
|
optional bytes payload = 2;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -101,7 +101,7 @@ plugin.handleBackendConfig({
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def main():
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
asyncore.loop(timeout=1.0, count=10, use_poll = True)
|
asyncore.loop(timeout=1.0, count=10, use_poll = True)
|
||||||
|
|
Loading…
Reference in a new issue