mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
seq: Add snd_seq_ump_ev_clear()
Like snd_seq_ev_clear(), let's add a helper to clear the event record for a UMP-capable sequencer event. While we're at it, change snd_seq_ev_clear() to be a static inline function, so that we make sure that the proper pointer type is passed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
31f2ab57e2
commit
55c6338290
1 changed files with 15 additions and 2 deletions
|
|
@ -45,8 +45,21 @@ extern "C" {
|
|||
*
|
||||
* This macro clears the given event record pointer to the default status.
|
||||
*/
|
||||
#define snd_seq_ev_clear(ev) \
|
||||
memset(ev, 0, sizeof(snd_seq_event_t))
|
||||
static inline void snd_seq_ev_clear(snd_seq_event_t *ev)
|
||||
{
|
||||
memset(ev, 0, sizeof(*ev));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief initialize event record for UMP
|
||||
* \param ev event record pointer
|
||||
*
|
||||
* This macro clears the given UMP event record pointer to the default status.
|
||||
*/
|
||||
static inline void snd_seq_ump_ev_clear(snd_seq_ump_event_t *ev)
|
||||
{
|
||||
memset(ev, 0, sizeof(*ev));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief set the tag for given event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue