Re: RFC: libosinfo: Library for virt OS/distro metadata 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux