From d835bea914173d0c50765af974a1d237678f365a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= <vivek@collabora.co.uk> Date: Mon, 11 Sep 2017 19:07:24 +0100 Subject: [PATCH] Add some typedef shenanigans to work around gtk-doc parser limitations Specifically: Can't handle libelf ElfW(X) style type declarations inside a struct (but can if it's a free-standing typedef). --- capsule/capsule.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/capsule/capsule.h b/capsule/capsule.h index b49f27ed6..3fbe0202f 100644 --- a/capsule/capsule.h +++ b/capsule/capsule.h @@ -19,6 +19,14 @@ #include <link.h> +/** + * capsule_addr: + * + * Identical to an ElfW(Addr) from libelf. You may treat this as + * equivalent to a void * when assigning to it. + */ +typedef ElfW(Addr) capsule_addr; + /** * capsule_item: * @name: The name of the symbol to be relocated @@ -39,8 +47,14 @@ typedef struct _capsule_item capsule_item; struct _capsule_item { const char *name; - ElfW(Addr) shim; - ElfW(Addr) real; + capsule_addr shim; + capsule_addr real; + + /*< private >*/ + void *unused0; + void *unused1; + void *unused2; + void *unused3; }; /** -- GitLab