OsinfoOsList

OsinfoOsList — A list of os platforms

Synopsis

struct              OsinfoOsList;
struct              OsinfoOsListClass;
OsinfoOsList *      osinfo_oslist_new                   (void);
OsinfoOsList *      osinfo_oslist_new_copy              (OsinfoOsList *source);
OsinfoOsList *      osinfo_oslist_new_filtered          (OsinfoOsList *source,
                                                         OsinfoFilter *filter);
OsinfoOsList *      osinfo_oslist_new_intersection      (OsinfoOsList *sourceOne,
                                                         OsinfoOsList *sourceTwo);
OsinfoOsList *      osinfo_oslist_new_union             (OsinfoOsList *sourceOne,
                                                         OsinfoOsList *sourceTwo);

Object Hierarchy

  GObject
   +----OsinfoList
         +----OsinfoProductList
               +----OsinfoOsList

Description

OsinfoOsList is a list specialization that stores only OsinfoOs objects.

Details

struct OsinfoOsList

struct OsinfoOsList;

struct OsinfoOsListClass

struct OsinfoOsListClass {
    OsinfoProductListClass parent_class;

    /* class members */
};

osinfo_oslist_new ()

OsinfoOsList *      osinfo_oslist_new                   (void);

Construct a new os list that is initially empty.

Returns :

an empty os list. [transfer full]

osinfo_oslist_new_copy ()

OsinfoOsList *      osinfo_oslist_new_copy              (OsinfoOsList *source);

Construct a new os list that is filled with oss from source

source :

the os list to copy

Returns :

a copy of the os list. [transfer full]

osinfo_oslist_new_filtered ()

OsinfoOsList *      osinfo_oslist_new_filtered          (OsinfoOsList *source,
                                                         OsinfoFilter *filter);

Construct a new os list that is filled with oss from source that match filter

source :

the os list to copy

filter :

the filter to apply

Returns :

a filtered copy of the os list. [transfer full]

osinfo_oslist_new_intersection ()

OsinfoOsList *      osinfo_oslist_new_intersection      (OsinfoOsList *sourceOne,
                                                         OsinfoOsList *sourceTwo);

Construct a new os list that is filled with only the oss that are present in both sourceOne and sourceTwo.

sourceOne :

the first os list to copy

sourceTwo :

the second os list to copy

Returns :

an intersection of the two os lists. [transfer full]

osinfo_oslist_new_union ()

OsinfoOsList *      osinfo_oslist_new_union             (OsinfoOsList *sourceOne,
                                                         OsinfoOsList *sourceTwo);

Construct a new os list that is filled with all the oss that are present in either sourceOne and sourceTwo.

sourceOne :

the first os list to copy

sourceTwo :

the second os list to copy

Returns :

a union of the two os lists. [transfer full]

See Also

OsinfoList, OsinfoOs