| Libosinfo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
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);
struct OsinfoDeviceListClass {
OsinfoListClass parent_class;
/* class members */
};
OsinfoDeviceList * osinfo_devicelist_new (void);
Construct a new device list that is initially empty.
Returns : |
an empty device list. [transfer full] |
OsinfoDeviceList * osinfo_devicelist_new_copy (OsinfoDeviceList *source);
Construct a new device list that is filled with devices
from source
|
the device list to copy |
Returns : |
a copy of the device list. [transfer full] |
OsinfoDeviceList * osinfo_devicelist_new_filtered (OsinfoDeviceList *source,OsinfoFilter *filter);
Construct a new device list that is filled with devices
from source that match filter
|
the device list to copy |
|
the filter to apply |
Returns : |
a filtered copy of the device list. [transfer full] |
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.
|
the first device list to copy |
|
the second device list to copy |
Returns : |
an intersection of the two device lists. [transfer full] |
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.
|
the first device list to copy |
|
the second device list to copy |
Returns : |
a union of the two device lists. [transfer full] |