replay_gain: added function replay_gain_info_dup()
This commit is contained in:
parent
604ca50b65
commit
e58b4f773f
@ -162,6 +162,12 @@ struct replay_gain_info *replay_gain_info_new(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct replay_gain_info *
|
||||||
|
replay_gain_info_dup(const struct replay_gain_info *src)
|
||||||
|
{
|
||||||
|
return g_memdup(src, sizeof(*src));
|
||||||
|
}
|
||||||
|
|
||||||
void replay_gain_info_free(struct replay_gain_info *info)
|
void replay_gain_info_free(struct replay_gain_info *info)
|
||||||
{
|
{
|
||||||
g_free(info);
|
g_free(info);
|
||||||
|
@ -50,6 +50,12 @@ struct replay_gain_info {
|
|||||||
struct replay_gain_info *
|
struct replay_gain_info *
|
||||||
replay_gain_info_new(void);
|
replay_gain_info_new(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Duplicate a #replay_gain_info object.
|
||||||
|
*/
|
||||||
|
struct replay_gain_info *
|
||||||
|
replay_gain_info_dup(const struct replay_gain_info *src);
|
||||||
|
|
||||||
void replay_gain_info_free(struct replay_gain_info *info);
|
void replay_gain_info_free(struct replay_gain_info *info);
|
||||||
|
|
||||||
void replay_gain_global_init(void);
|
void replay_gain_global_init(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user