mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
added const modifier to some function arguments
This commit is contained in:
parent
adbc93f1a4
commit
118bf89508
2 changed files with 4 additions and 4 deletions
|
|
@ -50,10 +50,10 @@ void snd_midi_event_reset_encode(snd_midi_event_t *dev);
|
|||
void snd_midi_event_reset_decode(snd_midi_event_t *dev);
|
||||
void snd_midi_event_no_status(snd_midi_event_t *dev, int on);
|
||||
/* encode from byte stream - return number of written bytes if success */
|
||||
long snd_midi_event_encode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev);
|
||||
long snd_midi_event_encode(snd_midi_event_t *dev, const unsigned char *buf, long count, snd_seq_event_t *ev);
|
||||
int snd_midi_event_encode_byte(snd_midi_event_t *dev, int c, snd_seq_event_t *ev);
|
||||
/* decode from event to bytes - return number of written bytes if success */
|
||||
long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev);
|
||||
long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, const snd_seq_event_t *ev);
|
||||
|
||||
/** \} */
|
||||
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ int snd_midi_event_resize_buffer(snd_midi_event_t *dev, size_t bufsize)
|
|||
* If complete sequencer event is available, ev->type is not
|
||||
* equal to #SND_SEQ_EVENT_NONE.
|
||||
*/
|
||||
long snd_midi_event_encode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev)
|
||||
long snd_midi_event_encode(snd_midi_event_t *dev, const unsigned char *buf, long count, snd_seq_event_t *ev)
|
||||
{
|
||||
long result = 0;
|
||||
int rc;
|
||||
|
|
@ -411,7 +411,7 @@ static void songpos_event(snd_midi_event_t *dev, snd_seq_event_t *ev)
|
|||
*
|
||||
* Decode sequencer event to MIDI byte stream.
|
||||
*/
|
||||
long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev)
|
||||
long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count, const snd_seq_event_t *ev)
|
||||
{
|
||||
int cmd;
|
||||
long qlen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue