enum is not a struct. It’s simply a constant integer in C so you should just pass it as such. Note that the size of enum
is actually implementation defined (unless explicitly specified in c++11) so matching with a julia enum may not work. Using a integer type with the same size as the one returned by clang should work.