mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-08-08 21:05:51 +00:00
codegen: simplify FdType
This patch is a left-over from the fd passing commit 267391c8fd as
suggested by Frediano Ziglio during review.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
3fc2221e96
commit
4707655962
@ -1120,9 +1120,9 @@ class ProtocolType(Type):
|
||||
return self
|
||||
|
||||
class FdType(IntegerType):
|
||||
|
||||
def primitive_type(self):
|
||||
return "fd"
|
||||
def __init__(self):
|
||||
IntegerType.__init__(self, 0, False)
|
||||
self.name = "fd"
|
||||
|
||||
def c_type(self):
|
||||
return "int"
|
||||
@ -1135,4 +1135,4 @@ int32 = IntegerType(32, True)
|
||||
uint32 = IntegerType(32, False)
|
||||
int64 = IntegerType(64, True)
|
||||
uint64 = IntegerType(64, False)
|
||||
unix_fd = FdType(1, True)
|
||||
unix_fd = FdType()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user