OsinfoMediaList

## OsinfoMediaList OsinfoMediaList — A list of installation media |

## Synopsis

    struct              OsinfoMediaList;
    struct              OsinfoMediaListClass;
    OsinfoMediaList *   osinfo_medialist_new                (void);
    OsinfoMediaList *   osinfo_medialist_new_copy           (OsinfoMediaList *source);
    OsinfoMediaList *   osinfo_medialist_new_filtered       (OsinfoMediaList *source,
                                                             OsinfoFilter *filter);
    OsinfoMediaList *   osinfo_medialist_new_intersection   (OsinfoMediaList *sourceOne,
                                                             OsinfoMediaList *sourceTwo);
    OsinfoMediaList *   osinfo_medialist_new_union          (OsinfoMediaList *sourceOne,
                                                             OsinfoMediaList *sourceTwo);

## Object Hierarchy

      GObject
       +----OsinfoList
             +----OsinfoMediaList

## Description

OsinfoMediaList is a list specialization that stores only OsinfoMedia objects.

## Details

### struct OsinfoMediaList

    struct OsinfoMediaList;

### struct OsinfoMediaListClass

    struct OsinfoMediaListClass {
    };

### osinfo_medialist_new ()

    OsinfoMediaList *   osinfo_medialist_new                (void);

Construct a new media list that is initially empty.

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

### osinfo_medialist_new_copy ()

    OsinfoMediaList *   osinfo_medialist_new_copy           (OsinfoMediaList *source);

### Warning

`osinfo_medialist_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 media list that is filled with medias from `source`

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

### osinfo_medialist_new_filtered ()

    OsinfoMediaList *   osinfo_medialist_new_filtered       (OsinfoMediaList *source,
                                                             OsinfoFilter *filter);

### Warning

`osinfo_medialist_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 media list that is filled with medias from `source` that match `filter`

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

### osinfo_medialist_new_intersection ()

    OsinfoMediaList *   osinfo_medialist_new_intersection   (OsinfoMediaList *sourceOne,
                                                             OsinfoMediaList *sourceTwo);

### Warning

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

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

### osinfo_medialist_new_union ()

    OsinfoMediaList *   osinfo_medialist_new_union          (OsinfoMediaList *sourceOne,
                                                             OsinfoMediaList *sourceTwo);

### Warning

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

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

## See Also

OsinfoList, OsinfoMedia