]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
seq: event_data_queue: use 'not a variable length array type' for skew argument
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 Apr 2020 02:48:07 +0000 (11:48 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Wed, 22 Apr 2020 07:46:49 +0000 (16:46 +0900)
The type of skew argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/seq/event-data-queue.c
src/seq/event-data-queue.h

index 0622106aeec3298a0c7f9723e547127ec206cf2d..ada690a4d71e021144a45f38f2a4f516161b5d90 100644 (file)
@@ -123,7 +123,7 @@ void alsaseq_event_data_queue_set_position_param(ALSASeqEventDataQueue *self,
  * Get the skew as param of the queue event.
  */
 void alsaseq_event_data_queue_get_skew_param(ALSASeqEventDataQueue *self,
-                                             const guint **skew)
+                                             const guint *skew[2])
 {
     // MEMO: I wish 32-bit storage size is aligned to 32 bit offset in all of
     // supported ABIs.
index d50f934807ff12dcb0b87e6348e98ee8b3ec073f..d2f810b79b0bd3ce257578001e48187fb6f55fcb 100644 (file)
@@ -38,7 +38,7 @@ void alsaseq_event_data_queue_set_position_param(ALSASeqEventDataQueue *self,
                                                  guint position);
 
 void alsaseq_event_data_queue_get_skew_param(ALSASeqEventDataQueue *self,
-                                             const guint **skew);
+                                             const guint *skew[2]);
 void alsaseq_event_data_queue_set_skew_param(ALSASeqEventDataQueue *self,
                                              const guint skew[2]);