Skip to content
Snippets Groups Projects
Commit d835bea9 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

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).
parent 0f254f4a
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
#include <link.h> #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: * capsule_item:
* @name: The name of the symbol to be relocated * @name: The name of the symbol to be relocated
...@@ -39,8 +47,14 @@ typedef struct _capsule_item capsule_item; ...@@ -39,8 +47,14 @@ typedef struct _capsule_item capsule_item;
struct _capsule_item struct _capsule_item
{ {
const char *name; const char *name;
ElfW(Addr) shim; capsule_addr shim;
ElfW(Addr) real; capsule_addr real;
/*< private >*/
void *unused0;
void *unused1;
void *unused2;
void *unused3;
}; };
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment