logging: remove redundant XDR typedef

Every enum/struct/union implicitly includes a typedef in the
emitted C code. Furthermore, the syntax used to declare the
redundant typedef is not compliant with the XDR spec.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2022-12-19 14:14:36 -05:00
parent f143e4e7b6
commit 3ebcd59d21

View File

@ -22,13 +22,11 @@ struct virLogManagerProtocolDomain {
virLogManagerProtocolUUID uuid; virLogManagerProtocolUUID uuid;
virLogManagerProtocolNonNullString name; virLogManagerProtocolNonNullString name;
}; };
typedef struct virLogManagerProtocolDomain virLogManagerProtocolDomain;
struct virLogManagerProtocolLogFilePosition { struct virLogManagerProtocolLogFilePosition {
unsigned hyper inode; unsigned hyper inode;
unsigned hyper offset; unsigned hyper offset;
}; };
typedef struct virLogManagerProtocolLogFilePosition virLogManagerProtocolLogFilePosition;
enum virLogManagerProtocolDomainOpenLogFileFlags { enum virLogManagerProtocolDomainOpenLogFileFlags {
VIR_LOG_MANAGER_PROTOCOL_DOMAIN_OPEN_LOG_FILE_TRUNCATE = 1 VIR_LOG_MANAGER_PROTOCOL_DOMAIN_OPEN_LOG_FILE_TRUNCATE = 1