OsinfoDeviceList

## 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 {
    };

### 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);

### Warning

`osinfo_devicelist_new_copy` has been deprecated since version 0.2.2 and should not be used in newly-written code. Use `osinfo_list_new_copy()` instead.

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);

### Warning

`osinfo_devicelist_new_filtered` has been deprecated since version 0.2.2 and should not be used in newly-written code. Use `osinfo_list_new_filtered()` instead.

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);

### Warning

`osinfo_devicelist_new_intersection` has been deprecated since version 0.2.2 and should not be used in newly-written code. Use `osinfo_list_new_intersection()` instead.

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);

### Warning

`osinfo_devicelist_new_union` has been deprecated since version 0.2.2 and should not be used in newly-written code. Use `osinfo_list_new_union()` instead.

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