![]() |
![]() |
![]() |
libdmapsharing Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#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
);
#define TYPE_DMAP_CONTAINER_RECORD (dmap_container_record_get_type ())
The type for DMAPContainerRecord.
#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.
|
Object which is subject to casting. |
#define IS_DMAP_CONTAINER_RECORD(o)
Checks whether a valid GTypeInstance pointer is of type
TYPE_DMAP_CONTAINER_RECORD
.
|
Instance to check for being a TYPE_DMAP_CONTAINER_RECORD .
|
#define DMAP_CONTAINER_RECORD_GET_INTERFACE(o)
Get the class structure associated to a DMAPContainerRecord instance.
|
a DMAPContainerRecord instance. |
Returns : |
pointer to object interface structure. |
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;
guint dmap_container_record_get_id (DMAPContainerRecord *record
);
|
A DMAPContainerRecord. |
Returns : |
the ID for the given record. |
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.
|
A DMAPContainerRecord. |
|
A DMAPRecord. |
|
The record's ID. |
guint64 dmap_container_record_get_entry_count
(DMAPContainerRecord *record
);
|
A DMAPContainerRecord. |
Returns : |
the number of records in the container record. |
DMAPDb * dmap_container_record_get_entries (DMAPContainerRecord *record
);
|
A DMAPContainerRecord. |
Returns : |
A pointer to a DMAPDb containing the entries contained in record. |