![]() |
![]() |
![]() |
libdmapsharing Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#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);
#define TYPE_DMAP_CONTAINER_DB (dmap_container_db_get_type ())
The type for DMAPContainerDb.
#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.
|
Object which is subject to casting. |
#define IS_DMAP_CONTAINER_DB(o)
Checks whether a valid GTypeInstance pointer is of type
TYPE_DMAP_CONTAINER_DB
.
|
Instance to check for being a TYPE_DMAP_CONTAINER_DB .
|
#define DMAP_CONTAINER_DB_GET_INTERFACE(o)
Get the interface structure associated to a DMAPContainerDb instance.
|
a DMAPContainerDb instance. |
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;
DMAPContainerRecord * dmap_container_db_lookup_by_id (DMAPContainerDb *db, guint id);
|
A container database. |
|
A record ID. |
Returns : |
the database record corresponding to id . This record should
be unrefed when no longer required.
|
void dmap_container_db_foreach (DMAPContainerDb *db, GHFunc func, gpointer data);
Apply a function to each record in a container database.
|
A container database. |
|
|
|
User data to pass to the function. |
gulong dmap_container_db_count (DMAPContainerDb *db);
|
A container database. |
Returns : |
the number of records in the database. |