## dmap-container-db dmap-container-db |

## Synopsis

    #define             TYPE_DMAP_CONTAINER_DB
    #define             DMAP_CONTAINER_DB                   (o)
    #define             IS_DMAP_CONTAINER_DB                (o)
    #define             DMAP_CONTAINER_DB_GET_INTERFACE     (o)
                        DMAPContainerDb;
                        DMAPContainerDbInterface;
    GType               dmap_container_db_get_type          (void);
    DMAPContainerRecord * dmap_container_db_lookup_by_id    (DMAPContainerDb *db,
                                                             guint id);
    void                dmap_container_db_foreach           (DMAPContainerDb *db,
                                                             GHFunc func,
                                                             gpointer data);
    gulong              dmap_container_db_count             (DMAPContainerDb *db);

## Object Hierarchy

      GInterface
       +----DMAPContainerDb

## Description

## Details

### TYPE_DMAP_CONTAINER_DB

    #define TYPE_DMAP_CONTAINER_DB		 (dmap_container_db_get_type ())

The type for DMAPContainerDb.

### DMAP_CONTAINER_DB()

    #define             DMAP_CONTAINER_DB(o)

Casts a DMAPContainerDb or derived pointer into a (DMAPContainerDb*) 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_DB()

    #define             IS_DMAP_CONTAINER_DB(o)

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

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

### DMAP_CONTAINER_DB_GET_INTERFACE()

    #define             DMAP_CONTAINER_DB_GET_INTERFACE(o)

Get the interface structure associated to a DMAPContainerDb instance.

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

### DMAPContainerDb

    typedef struct _DMAPContainerDb DMAPContainerDb;

### DMAPContainerDbInterface

    typedef struct {
    	GTypeInterface parent;

    	DMAPContainerRecord *(*lookup_by_id)    (DMAPContainerDb *db, guint id);

    	void        (*foreach) (DMAPContainerDb *db,
    				GHFunc func,
    				gpointer data);

    	gint64 (*count)        (DMAPContainerDb *db);
    } DMAPContainerDbInterface;

### dmap_container_db_get_type ()

    GType               dmap_container_db_get_type          (void);

Returns : |

### dmap_container_db_lookup_by_id ()

    DMAPContainerRecord * dmap_container_db_lookup_by_id    (DMAPContainerDb *db,
                                                             guint id);

`db` : | A container database.
`id` : | A record ID.
Returns : | the database record corresponding to `id`. This record should be unrefed when no longer required.

### dmap_container_db_foreach ()

    void                dmap_container_db_foreach           (DMAPContainerDb *db,
                                                             GHFunc func,
                                                             gpointer data);

Apply a function to each record in a container database.

`db` : | A container database.
`func` : |
`data` : | User data to pass to the function.

### dmap_container_db_count ()

    gulong              dmap_container_db_count             (DMAPContainerDb *db);

`db` : | A container database.
Returns : | the number of records in the database.