![]() |
![]() |
![]() |
Libosinfo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct OsinfoDeviceLinkList; struct OsinfoDeviceLinkListClass; OsinfoDeviceList * osinfo_devicelinklist_get_devices (OsinfoDeviceLinkList *list
,OsinfoFilter *filter
); OsinfoDeviceLinkList * osinfo_devicelinklist_new (void
); OsinfoDeviceLinkList * osinfo_devicelinklist_new_copy (OsinfoDeviceLinkList *source
); OsinfoDeviceLinkList * osinfo_devicelinklist_new_filtered (OsinfoDeviceLinkList *source
,OsinfoFilter *filter
); OsinfoDeviceLinkList * osinfo_devicelinklist_new_intersection (OsinfoDeviceLinkList *sourceOne
,OsinfoDeviceLinkList *sourceTwo
); OsinfoDeviceLinkList * osinfo_devicelinklist_new_union (OsinfoDeviceLinkList *sourceOne
,OsinfoDeviceLinkList *sourceTwo
);
OsinfoDeviceLinkList is a list specialization that stores only OsinfoDeviceLink objects.
struct OsinfoDeviceLinkListClass { OsinfoListClass parent_class; /* class members */ };
OsinfoDeviceList * osinfo_devicelinklist_get_devices (OsinfoDeviceLinkList *list
,OsinfoFilter *filter
);
Get all devices matching a given filter
|
an device link list |
|
an optional device property filter. [allow-none][transfer none] |
Returns : |
A list of devices. [transfer full] |
OsinfoDeviceLinkList * osinfo_devicelinklist_new (void
);
Construct a new devicelink list that is initially empty.
Returns : |
an empty devicelink list. [transfer full] |
OsinfoDeviceLinkList * osinfo_devicelinklist_new_copy (OsinfoDeviceLinkList *source
);
Construct a new devicelink list that is filled with devicelinks
from source
|
the devicelink list to copy |
Returns : |
a copy of the devicelink list. [transfer full] |
OsinfoDeviceLinkList * osinfo_devicelinklist_new_filtered (OsinfoDeviceLinkList *source
,OsinfoFilter *filter
);
Construct a new devicelink list that is filled with devicelinks
from source
that match filter
|
the devicelink list to copy |
|
the filter to apply |
Returns : |
a filtered copy of the devicelink list. [transfer full] |
OsinfoDeviceLinkList * osinfo_devicelinklist_new_intersection (OsinfoDeviceLinkList *sourceOne
,OsinfoDeviceLinkList *sourceTwo
);
Construct a new devicelink list that is filled with only the
devicelinks that are present in both sourceOne
and sourceTwo
.
|
the first devicelink list to copy |
|
the second devicelink list to copy |
Returns : |
an intersection of the two devicelink lists. [transfer full] |
OsinfoDeviceLinkList * osinfo_devicelinklist_new_union (OsinfoDeviceLinkList *sourceOne
,OsinfoDeviceLinkList *sourceTwo
);
Construct a new devicelink list that is filled with all the
devicelinks that are present in either sourceOne
and sourceTwo
.
|
the first devicelink list to copy |
|
the second devicelink list to copy |
Returns : |
a union of the two devicelink lists. [transfer full] |