Relevant changes: pass in the MirConnection, because that's the object that knows about extensions. Return a pointer-to-const rather than populating an input pointer so that the extension table can live in the RO .text section and we can have a single table for all versions of the extension.
Hm, I like the cut of your jib!
static inline foo_v1_extensions const* request_ foo_v1( MirConnection* connection) request_ extension( connection, "mir_foo", 1);
{
return mir_connection_
}
Relevant changes: pass in the MirConnection, because that's the object that knows about extensions. Return a pointer-to-const rather than populating an input pointer so that the extension table can live in the RO .text section and we can have a single table for all versions of the extension.