23 #include "lv_songinfo.h"
24 #include "lv_common.h"
25 #include "lv_util.hpp"
36 visual_return_val_if_fail (src !=
nullptr,
nullptr);
48 visual_return_if_fail (
self !=
nullptr);
50 self->set_type (LV::SongInfoType (type));
60 void visual_songinfo_set_length (
VisSongInfo *
self,
int length)
62 visual_return_if_fail (
self !=
nullptr);
64 self->set_length (length);
69 visual_return_val_if_fail (
self !=
nullptr, 0);
71 return self->get_length ();
74 void visual_songinfo_set_elapsed (
VisSongInfo *
self,
int elapsed)
76 visual_return_if_fail (
self !=
nullptr);
78 self->set_elapsed (elapsed);
83 return self->get_elapsed ();
86 void visual_songinfo_set_simple_name (
VisSongInfo *
self,
const char *name)
88 visual_return_if_fail (
self !=
nullptr);
90 self->set_simple_name (name);
93 const char *visual_songinfo_get_simple_name (
VisSongInfo *
self)
95 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
100 void visual_songinfo_set_artist (
VisSongInfo *
self,
const char *artist)
102 visual_return_if_fail (
self !=
nullptr);
104 self->set_artist (artist);
107 const char *visual_songinfo_get_artist (
VisSongInfo *
self)
109 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
114 void visual_songinfo_set_album (
VisSongInfo *
self,
const char *album)
116 visual_return_if_fail (
self !=
nullptr);
118 self->set_album (album);
121 const char *visual_songinfo_get_album (
VisSongInfo *
self)
123 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
128 void visual_songinfo_set_song (
VisSongInfo *
self,
const char *song)
130 visual_return_if_fail (
self !=
nullptr);
132 self->set_song (song);
135 const char *visual_songinfo_get_song (
VisSongInfo *
self)
137 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
144 visual_return_if_fail (
self !=
nullptr);
145 visual_return_if_fail (cover !=
nullptr);
147 self->set_cover (cover);
152 visual_return_if_fail (
self !=
nullptr);
159 visual_return_val_if_fail (
self !=
nullptr, 0);
161 return self->get_age ();
166 visual_return_if_fail (lhs !=
nullptr);
167 visual_return_if_fail (rhs !=
nullptr);
174 visual_return_val_if_fail (lhs !=
nullptr, FALSE);
175 visual_return_val_if_fail (rhs !=
nullptr, FALSE);