mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Added snd_ctl_*_clear() functions.
This commit is contained in:
parent
776003f17e
commit
c683567487
2 changed files with 60 additions and 0 deletions
|
|
@ -794,6 +794,15 @@ void snd_ctl_elem_id_free(snd_ctl_elem_id_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_elem_id_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_elem_id_clear(snd_ctl_elem_id_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_elem_id_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_elem_id_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
@ -969,6 +978,15 @@ void snd_ctl_card_info_free(snd_ctl_card_info_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_card_info_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_card_info_clear(snd_ctl_card_info_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_card_info_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_card_info_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
@ -1089,6 +1107,15 @@ void snd_ctl_event_free(snd_ctl_event_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_event_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_event_clear(snd_ctl_event_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_event_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_event_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
@ -1143,6 +1170,15 @@ void snd_ctl_elem_list_free(snd_ctl_elem_list_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_elem_list_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_elem_list_clear(snd_ctl_elem_list_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_elem_list_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_elem_list_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
@ -1310,6 +1346,15 @@ void snd_ctl_elem_info_free(snd_ctl_elem_info_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_elem_info_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_elem_info_clear(snd_ctl_elem_info_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_elem_info_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_elem_info_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
@ -1688,6 +1733,15 @@ void snd_ctl_elem_value_free(snd_ctl_elem_value_t *obj)
|
|||
free(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief clear given #snd_ctl_elem_value_t object
|
||||
* \param obj pointer to object to clear
|
||||
*/
|
||||
void snd_ctl_elem_value_clear(snd_ctl_elem_value_t *obj)
|
||||
{
|
||||
memset(obj, 0, sizeof(snd_ctl_elem_value_t));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief copy one #snd_ctl_elem_value_t to another
|
||||
* \param dst pointer to destination
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue