Creates a new C function to register the specified struct at runtime.
a struct
newly created struct register function