## dmap-container-record dmap-container-record |

## Synopsis

    #define             TYPE_DMAP_CONTAINER_RECORD
    #define             DMAP_CONTAINER_RECORD               (o)
    #define             IS_DMAP_CONTAINER_RECORD            (o)
    #define             DMAP_CONTAINER_RECORD_GET_INTERFACE (o)
                        DMAPContainerRecord;
                        DMAPContainerRecordInterface;
    GType               dmap_container_record_get_type      (void);
    guint               dmap_container_record_get_id        (DMAPContainerRecord *record);
    void                dmap_container_record_add_entry     (DMAPContainerRecord *container_record,
                                                             DMAPRecord *record,
                                                             gint id);
    guint64             dmap_container_record_get_entry_count
                                                            (DMAPContainerRecord *record);
    DMAPDb *            dmap_container_record_get_entries   (DMAPContainerRecord *record);

## Object Hierarchy

      GInterface
       +----DMAPContainerRecord

## Properties

      "name"                     gchar*                : Read / Write

## Description

## Details

### TYPE_DMAP_CONTAINER_RECORD

    #define TYPE_DMAP_CONTAINER_RECORD	     (dmap_container_record_get_type ())

The type for DMAPContainerRecord.

### DMAP_CONTAINER_RECORD()

    #define             DMAP_CONTAINER_RECORD(o)

Casts a DMAPContainerRecord or derived pointer into a (DMAPContainerRecord*) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.

`o` : | Object which is subject to casting.

### IS_DMAP_CONTAINER_RECORD()

    #define             IS_DMAP_CONTAINER_RECORD(o)

Checks whether a valid GTypeInstance pointer is of type `TYPE_DMAP_CONTAINER_RECORD`.

`o` : | Instance to check for being a `TYPE_DMAP_CONTAINER_RECORD`.

### DMAP_CONTAINER_RECORD_GET_INTERFACE()

    #define             DMAP_CONTAINER_RECORD_GET_INTERFACE(o)

Get the class structure associated to a DMAPContainerRecord instance.

`o` : | a DMAPContainerRecord instance.
Returns : | pointer to object interface structure.

### DMAPContainerRecord

    typedef struct _DMAPContainerRecord DMAPContainerRecord;

### DMAPContainerRecordInterface

    typedef struct {
    	GTypeInterface parent;

    	guint		(*get_id)	    (DMAPContainerRecord *record);

    	void (*add_entry) (DMAPContainerRecord *container_record, DMAPRecord *record, gint id);

    	guint64 (*get_entry_count) (DMAPContainerRecord *record);

    	DMAPDb *(*get_entries) (DMAPContainerRecord *record);
    } DMAPContainerRecordInterface;

### dmap_container_record_get_type ()

    GType               dmap_container_record_get_type      (void);

Returns : |

### dmap_container_record_get_id ()

    guint               dmap_container_record_get_id        (DMAPContainerRecord *record);

`record` : | A DMAPContainerRecord.
Returns : | the ID for the given record.

### dmap_container_record_add_entry ()

    void                dmap_container_record_add_entry     (DMAPContainerRecord *container_record,
                                                             DMAPRecord *record,
                                                             gint id);

Add a record to the database. It is assumed that the record is placed directly into the database (not copied) and not freed.

`container_record` : | A DMAPContainerRecord.
`record` : | A DMAPRecord.
`id` : | The record's ID.

### dmap_container_record_get_entry_count ()

    guint64             dmap_container_record_get_entry_count
                                                            (DMAPContainerRecord *record);

`record` : | A DMAPContainerRecord.
Returns : | the number of records in the container record.

### dmap_container_record_get_entries ()

    DMAPDb *            dmap_container_record_get_entries   (DMAPContainerRecord *record);

`record` : | A DMAPContainerRecord.
Returns : | A pointer to a DMAPDb containing the entries contained in record.

## Property Details

### The `"name"` property

      "name"                     gchar*                : Read / Write

Container name.

Default value: NULL