[virt-tools-list] [libosinfo 6/8] Deprecate osinfo_db_guess_os_from_media

Christophe Fergeau cfergeau at redhat.com
Mon Dec 10 09:11:25 UTC 2012


On Wed, Dec 05, 2012 at 06:46:06PM +0200, Zeeshan Ali (Khattak) wrote:
> On Mon, Dec 3, 2012 at 1:23 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> > ---
> >  osinfo/osinfo_db.c | 38 +++++++++++++++++++++++---------------
> >  osinfo/osinfo_db.h |  1 +
> >  2 files changed, 24 insertions(+), 15 deletions(-)
> >
> > diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c
> > index 1e8a93c..46101d6 100644
> > --- a/osinfo/osinfo_db.c
> > +++ b/osinfo/osinfo_db.c
> > @@ -391,20 +391,10 @@ static gint media_volume_compare (gconstpointer a, gconstpointer b)
> >          return 1;
> >  }
> >
> > -/**
> > - * osinfo_db_guess_os_from_media:
> > - * @db: the database
> > - * @media: the installation media
> > - * @matched_media: (out) (transfer none) (allow-none): the matched operating
> > - * system media
> > - *
> > - * Guess operating system given a #OsinfoMedia object.
> > - *
> > - * Returns: (transfer none): the operating system, or NULL if guessing failed
> > - */
> > -OsinfoOs *osinfo_db_guess_os_from_media(OsinfoDb *db,
> > -                                        OsinfoMedia *media,
> > -                                        OsinfoMedia **matched_media)
> > +static OsinfoOs *
> > +osinfo_db_guess_os_from_media_internal(OsinfoDb *db,
> > +                                       OsinfoMedia *media,
> > +                                       OsinfoMedia **matched_media)
> >  {
> >      OsinfoOs *ret = NULL;
> >      GList *oss = NULL;
> > @@ -460,6 +450,23 @@ OsinfoOs *osinfo_db_guess_os_from_media(OsinfoDb *db,
> >
> >      return ret;
> >  }
> > +/**
> > + * osinfo_db_guess_os_from_media:
> > + * @db: the database
> > + * @media: the installation media
> > + * @matched_media: (out) (transfer none) (allow-none): the matched operating
> > + * system media
> > + *
> > + * Guess operating system given a #OsinfoMedia object.
> > + *
> > + * Returns: (transfer none): the operating system, or NULL if guessing failed
> > + */
> 
> Don't we need some deprecation note in the doc?

Yes, added now.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121210/595ead25/attachment.sig>


More information about the virt-tools-list mailing list