OsinfoPlatformList

## OsinfoPlatformList OsinfoPlatformList — A list of virtualization platforms |

## Synopsis

    struct              OsinfoPlatformList;
    struct              OsinfoPlatformListClass;
    OsinfoPlatformList * osinfo_platformlist_new            (void);
    OsinfoPlatformList * osinfo_platformlist_new_copy       (OsinfoPlatformList *source);
    OsinfoPlatformList * osinfo_platformlist_new_filtered   (OsinfoPlatformList *source,
                                                             OsinfoFilter *filter);
    OsinfoPlatformList * osinfo_platformlist_new_intersection
                                                            (OsinfoPlatformList *sourceOne,
                                                             OsinfoPlatformList *sourceTwo);
    OsinfoPlatformList * osinfo_platformlist_new_union      (OsinfoPlatformList *sourceOne,
                                                             OsinfoPlatformList *sourceTwo);

## Object Hierarchy

      GObject
       +----OsinfoList
             +----OsinfoProductList
                   +----OsinfoPlatformList

## Description

OsinfoPlatformList is a list specialization that stores only OsinfoPlatform objects.

## Details

### struct OsinfoPlatformList

    struct OsinfoPlatformList;

### struct OsinfoPlatformListClass

    struct OsinfoPlatformListClass {
    };

### osinfo_platformlist_new ()

    OsinfoPlatformList * osinfo_platformlist_new            (void);

Construct a new platform list that is initially empty.

Returns : | an empty platform list. [transfer full]

### osinfo_platformlist_new_copy ()

    OsinfoPlatformList * osinfo_platformlist_new_copy       (OsinfoPlatformList *source);

### Warning

`osinfo_platformlist_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 platform list that is filled with platforms from `source`

`source` : | the platform list to copy
Returns : | a copy of the platform list. [transfer full]

### osinfo_platformlist_new_filtered ()

    OsinfoPlatformList * osinfo_platformlist_new_filtered   (OsinfoPlatformList *source,
                                                             OsinfoFilter *filter);

### Warning

`osinfo_platformlist_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 platform list that is filled with platforms from `source` that match `filter`

`source` : | the platform list to copy
`filter` : | the filter to apply
Returns : | a filtered copy of the platform list. [transfer full]

### osinfo_platformlist_new_intersection ()

    OsinfoPlatformList * osinfo_platformlist_new_intersection
                                                            (OsinfoPlatformList *sourceOne,
                                                             OsinfoPlatformList *sourceTwo);

### Warning

`osinfo_platformlist_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 platform list that is filled with only the platforms that are present in both `sourceOne` and `sourceTwo`.

`sourceOne` : | the first platform list to copy
`sourceTwo` : | the second platform list to copy
Returns : | an intersection of the two platform lists. [transfer full]

### osinfo_platformlist_new_union ()

    OsinfoPlatformList * osinfo_platformlist_new_union      (OsinfoPlatformList *sourceOne,
                                                             OsinfoPlatformList *sourceTwo);

### Warning

`osinfo_platformlist_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 platform list that is filled with all the platforms that are present in either `sourceOne` and `sourceTwo`.

`sourceOne` : | the first platform list to copy
`sourceTwo` : | the second platform list to copy
Returns : | a union of the two platform lists. [transfer full]

## See Also

OsinfoList, OsinfoPlatform