[PATCH i-g-t 23/26] gtkdoc doesn't handle union as return type, use typedef
Petri Latvala
petri.latvala at intel.com
Fri Mar 12 11:03:38 UTC 2021
---
lib/runnercomms.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/runnercomms.h b/lib/runnercomms.h
index 11f38375..d322039d 100644
--- a/lib/runnercomms.h
+++ b/lib/runnercomms.h
@@ -49,7 +49,7 @@ struct runnerpacket {
* value in the case of having older dumps read with binaries that
* have extended the data formats.
*/
-union runnerpacket_read_helper {
+typedef union runnerpacket_read_helper {
/*
* All other fields must begin with "uint32_t type" so it's a
* common initial sequence, safe to read no matter what union
@@ -118,13 +118,13 @@ union runnerpacket_read_helper {
const char *result;
} resultoverride;
-};
+} runnerpacket_read_helper;
void set_runner_socket(int fd);
bool runner_connected(void);
void send_to_runner(struct runnerpacket *packet);
-union runnerpacket_read_helper read_runnerpacket(const struct runnerpacket *packet);
+runnerpacket_read_helper read_runnerpacket(const struct runnerpacket *packet);
/*
* All packet types must document the format of the data[] array. The
--
2.29.2
More information about the Intel-gfx-trybot
mailing list