![]() |
![]() |
![]() |
libdmapsharing Reference Manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define DAAP_TYPE_RECORD #define DAAP_RECORD (o) #define IS_DAAP_RECORD (o) #define DAAP_RECORD_GET_INTERFACE (o) DAAPRecord; DAAPRecordIface;GType daap_record_get_type (void
);gboolean daap_record_itunes_compat (DAAPRecord *record
);GInputStream * daap_record_read (DAAPRecord *record
,);
GError **errgint daap_record_cmp_by_album (,
gpointer a,
gpointer bDMAPDb *db
);
"bitrate"gint : Read / Write "disc"gint : Read / Write "duration"gint : Read / Write "filesize"guint64 : Read / Write "firstseen"gint : Read / Write "format"gchar * : Read / Write "has-video"gboolean : Read / Write "location"gchar * : Read / Write "mediakind"gint : Read / Write "mtime"gint : Read / Write "rating"gint : Read / Write "songalbum"gchar * : Read / Write "songalbumid"gint64 : Read / Write "songartist"gchar * : Read / Write "songgenre"gchar * : Read / Write "sort-album"gchar * : Read / Write "sort-artist"gchar * : Read / Write "title"gchar * : Read / Write "track"gint : Read / Write "year"gint : Read / Write
#define DAAP_RECORD(o)
Casts a DAAPRecord or derived pointer into a (DAAPRecord *) 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_DAAP_RECORD(o)
Checks whether a valid DAAP_TYPE_RECORD
.
|
Instance to check for being a DAAP_TYPE_RECORD .
|
#define DAAP_RECORD_GET_INTERFACE(o)
Get the class structure associated to a DAAPRecord instance.
|
a DAAPRecord instance. |
Returns : |
pointer to object interface structure. |
typedef struct { GTypeInterface parent; gboolean (*itunes_compat) (DAAPRecord * record); GInputStream *(*read) (DAAPRecord * record, GError ** err); } DAAPRecordIface;
gboolean daap_record_itunes_compat (DAAPRecord *record
);
|
A DAAPRecord. |
Returns : |
TRUE if record is compatible with iTunes, else FALSE. |
GInputStream * daap_record_read (DAAPRecord *record
,);
GError **err
|
a DAAPRecord. |
|
a GError. |
Returns : |
A GInputStream that provides read-only access to the data stream associated with record. |
gint daap_record_cmp_by_album (,
gpointer a,
gpointer bDMAPDb *db
);
Compares the two records associated with the provided keys according to album. Suitable to sort lists of albums.
|
first ID. |
|
second ID. |
|
A DMAPDb for which a and b are valid ID's. |
Returns : |
"bitrate"
property"bitrate"gint : Read / Write
Song data bitrate in Kb/s.
Allowed values: >= 0
Default value: 0
"disc"
property"disc"gint : Read / Write
Song disc number.
Allowed values: >= 0
Default value: 0
"duration"
property"duration"gint : Read / Write
Song duration in seconds.
Allowed values: >= 0
Default value: 0
"filesize"
property"filesize"guint64 : Read / Write
Song data size in bytes.
Allowed values: <= 2147483647
Default value: 0
"firstseen"
property"firstseen"gint : Read / Write
FIXME.
Allowed values: >= 0
Default value: 0
"has-video"
property"has-video"gboolean : Read / Write
Song has video component.
Default value: FALSE
"location"
property"location"gchar * : Read / Write
URI pointing to song data.
Default value: NULL
"mediakind"
property"mediakind"gint : Read / Write
Media kind.
Allowed values: >= 0
Default value: 1
"mtime"
property"mtime"gint : Read / Write
Song modification time.
Allowed values: >= 0
Default value: 0
"rating"
property"rating"gint : Read / Write
Song rating.
Allowed values: [0,5]
Default value: 0
"sort-album"
property"sort-album"gchar * : Read / Write
Album sort name.
Default value: "Unknown"
"sort-artist"
property"sort-artist"gchar * : Read / Write
Song artist sort name.
Default value: "Unknown"
"track"
property"track"gint : Read / Write
Song track number.
Allowed values: >= 0
Default value: 0