OsinfoDeviceLinkList

OsinfoDeviceLinkList — A list of hardware devicelink

Synopsis

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

Object Hierarchy

  GObject
   +----OsinfoList
         +----OsinfoDeviceLinkList

Description

OsinfoDeviceLinkList is a list specialization that stores only OsinfoDeviceLink objects.

Details

struct OsinfoDeviceLinkList

struct OsinfoDeviceLinkList;

struct OsinfoDeviceLinkListClass

struct OsinfoDeviceLinkListClass {
    OsinfoListClass parent_class;

    /* class members */
};

osinfo_devicelinklist_get_devices ()

OsinfoDeviceList *  osinfo_devicelinklist_get_devices   (OsinfoDeviceLinkList *list,
                                                         OsinfoFilter *filter);

Get all devices matching a given filter

list :

an device link list

filter :

an optional device property filter. [allow-none][transfer none]

Returns :

A list of devices. [transfer full]

osinfo_devicelinklist_new ()

OsinfoDeviceLinkList * osinfo_devicelinklist_new        (void);

Construct a new devicelink list that is initially empty.

Returns :

an empty devicelink list. [transfer full]

osinfo_devicelinklist_new_copy ()

OsinfoDeviceLinkList * osinfo_devicelinklist_new_copy   (OsinfoDeviceLinkList *source);

Construct a new devicelink list that is filled with devicelinks from source

source :

the devicelink list to copy

Returns :

a copy of the devicelink list. [transfer full]

osinfo_devicelinklist_new_filtered ()

OsinfoDeviceLinkList * osinfo_devicelinklist_new_filtered
                                                        (OsinfoDeviceLinkList *source,
                                                         OsinfoFilter *filter);

Construct a new devicelink list that is filled with devicelinks from source that match filter

source :

the devicelink list to copy

filter :

the filter to apply

Returns :

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

osinfo_devicelinklist_new_intersection ()

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.

sourceOne :

the first devicelink list to copy

sourceTwo :

the second devicelink list to copy

Returns :

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

osinfo_devicelinklist_new_union ()

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.

sourceOne :

the first devicelink list to copy

sourceTwo :

the second devicelink list to copy

Returns :

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

See Also

OsinfoList, OsinfoDeviceLink