mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
Fix build error due to member "SpiceMsgEmpty" same name as type
This commit is contained in:
parent
897e5633c2
commit
b08b80d13f
@ -24,8 +24,8 @@
|
||||
#include <messages.h>
|
||||
|
||||
typedef struct {
|
||||
void (*SpiceMsgEmpty)(SpiceMarshaller *m, SpiceMsgEmpty *msg);
|
||||
void (*SpiceMsgData)(SpiceMarshaller *m, SpiceMsgData *msg);
|
||||
void (*msg_SpiceMsgEmpty)(SpiceMarshaller *m, SpiceMsgEmpty *msg);
|
||||
void (*msg_SpiceMsgData)(SpiceMarshaller *m, SpiceMsgData *msg);
|
||||
void (*msgc_ack_sync)(SpiceMarshaller *m, SpiceMsgcAckSync *msg);
|
||||
void (*msgc_pong)(SpiceMarshaller *m, SpiceMsgPing *msg);
|
||||
void (*msgc_disconnecting)(SpiceMarshaller *m, SpiceMsgDisconnect *msg);
|
||||
|
||||
@ -369,6 +369,8 @@ def write_protocol_marshaller(writer, proto, is_server, private_marshallers):
|
||||
writer.writeln("static SpiceMessageMarshallers marshallers = {NULL};").newline()
|
||||
for f in sorted(functions.keys()):
|
||||
member = f[len("spice_marshall_"):]
|
||||
if not member.startswith("msg"):
|
||||
member = "msg_" + member
|
||||
writer.assign("marshallers.%s" % member, f)
|
||||
|
||||
writer.newline()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user