![]() |
![]() |
![]() |
libdmapsharing Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define TYPE_DAAP_RECORD #define DAAP_RECORD (o) #define IS_DAAP_RECORD (o) #define DAAP_RECORD_GET_INTERFACE (o) DAAPRecord; DAAPRecordInterface; GType daap_record_get_type (void); gboolean daap_record_itunes_compat (DAAPRecord *record); GInputStream * daap_record_read (DAAPRecord *record, GError **err);
"bitrate" gint : Read / Write "daap-songalbum" gchar* : Read / Write "daap-songartist" gchar* : Read / Write "daap-songgenre" gchar* : 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 "mtime" gint : Read / Write "rating" gint : 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 GTypeInstance pointer is of type TYPE_DAAP_RECORD
.
|
Instance to check for being a TYPE_DAAP_RECORD .
|
#define DAAP_RECORD_GET_INTERFACE(o)
Get the class structure associated to a DAAPRecord instance.
|
a DAAPRecord instance. |
typedef struct { GTypeInterface parent; gboolean (*itunes_compat) (DAAPRecord *record); GInputStream * (*read) (DAAPRecord *record, GError **err); } DAAPRecordInterface;
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. |
"bitrate"
property"bitrate" gint : Read / Write
Song data bitrate in Kb/s.
Allowed values: >= 0
Default value: 0
"daap-songalbum"
property"daap-songalbum" gchar* : Read / Write
Album name.
Default value: "Unknown"
"daap-songartist"
property"daap-songartist" gchar* : Read / Write
Song artist.
Default value: "Unknown"
"daap-songgenre"
property"daap-songgenre" gchar* : Read / Write
Song genre.
Default value: "Unknown"
"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: <= G_MAXINT
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
"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
"year"
property"year" gint : Read / Write
Song publication year.
Allowed values: >= 0
Default value: 0