DAAPRecord

## DAAPRecord DAAPRecord |

## Synopsis

    struct              DAAPRecordIface;
    gint                daap_record_cmp_by_album            (gpointer a,
                                                             gpointer b,
                                                             DMAPDb *db);
    gboolean            daap_record_itunes_compat           (DAAPRecord *record);
    GInputStream *      daap_record_read                    (DAAPRecord *record,
                                                             GError **err);

## Description

## Details

### struct DAAPRecordIface

    struct DAAPRecordIface {
    	GTypeInterface parent;

    	  gboolean (*itunes_compat) (DAAPRecord * record);
    	GInputStream *(*read) (DAAPRecord * record, GError ** err);
    };

### daap_record_cmp_by_album ()

    gint                daap_record_cmp_by_album            (gpointer a,
                                                             gpointer b,
                                                             DMAPDb *db);

Compares the two records associated with the provided keys according to album. Suitable to sort lists of albums.

`a` : | first ID.
`b` : | second ID.
`db` : | A DMAPDb for which a and b are valid ID's.

### daap_record_itunes_compat ()

    gboolean            daap_record_itunes_compat           (DAAPRecord *record);

`record` : | A DAAPRecord.
Returns : | TRUE if record is compatible with iTunes, else FALSE.

### daap_record_read ()

    GInputStream *      daap_record_read                    (DAAPRecord *record,
                                                             GError **err);

`record` : | a DAAPRecord.
`err` : | a GError.
Returns : | A GInputStream that provides read-only access to the data stream associated with record.