lsalzman / enet

ENet reliable UDP networking library
MIT License
2.77k stars 673 forks source link

Functions not declared as ENET_API in enet.h #228

Open michaeleggers opened 1 year ago

michaeleggers commented 1 year ago

When building enet as a DLL functions like:

extern void                  enet_peer_reset_queues (ENetPeer *);

are not being exported because their linkage is not ENET_API but extern.

Is there a reason why certain functions are not ENET_API? Thank you :)

michaeleggers commented 1 year ago

OK, I realized that those functions without ENET_API are internal, which makes sense. I am generating bindings for another language and it makes it a bit awkward to do this with internal symbols mixed with the interface.

Croydon commented 6 months ago

Seems like you have answered your own question. So this issue can be closed?

michaeleggers commented 6 months ago

Seems like you didn't read the second part of my message. It is still a bit harder to generate a binding if internal/external functions are mixed.