On Mon, Jun 15, 2009 at 11:28:09AM -0400, Cole Robinson wrote:
int os_init(); void os_close();
Always, always, always, pass back an opaque identifier in an API - you never know when you'll need to track per-thread state. It's generally a good idea to pass in a version define too.
Sounds good, but I'm not sure what you mean by passing in a version define?
osinfo.h:
... #define OSINFO_VERSION 1 ...
client.c:
#include <osinfo.h>
oi_handle_t os_init(OSINFO_VERSION);
This allows certain incompatible changes without having to rev the soversion.
regards john