OsinfoDeviceList

OsinfoDeviceList — A list of hardware device

Synopsis

struct              OsinfoDeviceList;
struct              OsinfoDeviceListClass;
OsinfoDeviceList *  osinfo_devicelist_new               (void);
OsinfoDeviceList *  osinfo_devicelist_new_copy          (OsinfoDeviceList *source);
OsinfoDeviceList *  osinfo_devicelist_new_filtered      (OsinfoDeviceList *source,
                                                         OsinfoFilter *filter);
OsinfoDeviceList *  osinfo_devicelist_new_intersection  (OsinfoDeviceList *sourceOne,
                                                         OsinfoDeviceList *sourceTwo);
OsinfoDeviceList *  osinfo_devicelist_new_union         (OsinfoDeviceList *sourceOne,
                                                         OsinfoDeviceList *sourceTwo);

Object Hierarchy

  GObject
   +----OsinfoList
         +----OsinfoDeviceList

Description

OsinfoDeviceList is a list specialization that stores only OsinfoDevice objects.

Details

struct OsinfoDeviceList

struct OsinfoDeviceList;

struct OsinfoDeviceListClass

struct OsinfoDeviceListClass {
    OsinfoListClass parent_class;

    /* class members */
};

osinfo_devicelist_new ()

OsinfoDeviceList *  osinfo_devicelist_new               (void);

Construct a new device list that is initially empty.

Returns :

an empty device list. [transfer full]

osinfo_devicelist_new_copy ()

OsinfoDeviceList *  osinfo_devicelist_new_copy          (OsinfoDeviceList *source);

Construct a new device list that is filled with devices from source

source :

the device list to copy

Returns :

a copy of the device list. [transfer full]

osinfo_devicelist_new_filtered ()

OsinfoDeviceList *  osinfo_devicelist_new_filtered      (OsinfoDeviceList *source,
                                                         OsinfoFilter *filter);

Construct a new device list that is filled with devices from source that match filter

source :

the device list to copy

filter :

the filter to apply

Returns :

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

osinfo_devicelist_new_intersection ()

OsinfoDeviceList *  osinfo_devicelist_new_intersection  (OsinfoDeviceList *sourceOne,
                                                         OsinfoDeviceList *sourceTwo);

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

sourceOne :

the first device list to copy

sourceTwo :

the second device list to copy

Returns :

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

osinfo_devicelist_new_union ()

OsinfoDeviceList *  osinfo_devicelist_new_union         (OsinfoDeviceList *sourceOne,
                                                         OsinfoDeviceList *sourceTwo);

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

sourceOne :

the first device list to copy

sourceTwo :

the second device list to copy

Returns :

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

See Also

OsinfoList, OsinfoDevice