OsinfoResourcesList

OsinfoResourcesList — A list of installation resources

Synopsis

struct              OsinfoResourcesList;
struct              OsinfoResourcesListClass;
OsinfoResourcesList * osinfo_resourceslist_new          (void);
OsinfoResourcesList * osinfo_resourceslist_new_copy     (OsinfoResourcesList *source);
OsinfoResourcesList * osinfo_resourceslist_new_filtered (OsinfoResourcesList *source,
                                                         OsinfoFilter *filter);
OsinfoResourcesList * osinfo_resourceslist_new_intersection
                                                        (OsinfoResourcesList *sourceOne,
                                                         OsinfoResourcesList *sourceTwo);
OsinfoResourcesList * osinfo_resourceslist_new_union    (OsinfoResourcesList *sourceOne,
                                                         OsinfoResourcesList *sourceTwo);

Object Hierarchy

  GObject
   +----OsinfoList
         +----OsinfoResourcesList

Description

OsinfoResourcesList is a list specialization that stores only OsinfoResources objects.

Details

struct OsinfoResourcesList

struct OsinfoResourcesList;

struct OsinfoResourcesListClass

struct OsinfoResourcesListClass {
    OsinfoListClass parent_class;

    /* class members */
};

osinfo_resourceslist_new ()

OsinfoResourcesList * osinfo_resourceslist_new          (void);

Construct a new resources list that is initially empty.

Returns :

an empty resources list. [transfer full]

osinfo_resourceslist_new_copy ()

OsinfoResourcesList * osinfo_resourceslist_new_copy     (OsinfoResourcesList *source);

Construct a new resources list that is filled with resources instances from source

source :

the resources list to copy

Returns :

a copy of the resources list. [transfer full]

osinfo_resourceslist_new_filtered ()

OsinfoResourcesList * osinfo_resourceslist_new_filtered (OsinfoResourcesList *source,
                                                         OsinfoFilter *filter);

Construct a new resources list that is filled with resources instances from source that match filter

source :

the resources list to copy

filter :

the filter to apply

Returns :

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

osinfo_resourceslist_new_intersection ()

OsinfoResourcesList * osinfo_resourceslist_new_intersection
                                                        (OsinfoResourcesList *sourceOne,
                                                         OsinfoResourcesList *sourceTwo);

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

sourceOne :

the first resources list to copy

sourceTwo :

the second resources list to copy

Returns :

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

osinfo_resourceslist_new_union ()

OsinfoResourcesList * osinfo_resourceslist_new_union    (OsinfoResourcesList *sourceOne,
                                                         OsinfoResourcesList *sourceTwo);

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

sourceOne :

the first resources list to copy

sourceTwo :

the second resources list to copy

Returns :

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

See Also

OsinfoList, OsinfoResources