From: Takashi Sakamoto Date: Wed, 22 Apr 2020 02:48:07 +0000 (+0900) Subject: seq: event_data_queue: use 'not a variable length array type' for skew argument X-Git-Tag: v0.1.0~156 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0f83de10963c9e6bf5f7398abb7edaa79fd91ed6;p=alsa-gobject.git seq: event_data_queue: use 'not a variable length array type' for skew argument The type of skew argument is fixed-sized array. Signed-off-by: Takashi Sakamoto --- diff --git a/src/seq/event-data-queue.c b/src/seq/event-data-queue.c index 0622106..ada690a 100644 --- a/src/seq/event-data-queue.c +++ b/src/seq/event-data-queue.c @@ -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. diff --git a/src/seq/event-data-queue.h b/src/seq/event-data-queue.h index d50f934..d2f810b 100644 --- a/src/seq/event-data-queue.h +++ b/src/seq/event-data-queue.h @@ -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]);