From: Takashi Sakamoto Date: Wed, 10 Jun 2020 02:00:39 +0000 (+0900) Subject: timer: ALSATimerEventDataType: use shorter name for timestamp X-Git-Tag: v0.1.0~82 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=90e04fe4286ef3610b728d8309fa276c6175280c;p=alsa-gobject.git timer: ALSATimerEventDataType: use shorter name for timestamp Signed-off-by: Takashi Sakamoto --- diff --git a/src/timer/alsatimer-enum-types.h b/src/timer/alsatimer-enum-types.h index 70449f9..fd728b0 100644 --- a/src/timer/alsatimer-enum-types.h +++ b/src/timer/alsatimer-enum-types.h @@ -112,14 +112,14 @@ typedef enum /** * ALSATimerEventDataType - * @ALSATIMER_EVENT_DATA_TYPE_TICK: The data for tick event. - * @ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP: The data for timestamp event. + * @ALSATIMER_EVENT_DATA_TYPE_TICK: The data for tick event. + * @ALSATIMER_EVENT_DATA_TYPE_TSTAMP: The data for timestamp event. * * A set of enumerations for the type of event data. */ typedef enum { ALSATIMER_EVENT_DATA_TYPE_TICK, - ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP, + ALSATIMER_EVENT_DATA_TYPE_TSTAMP, } ALSATimerEventDataType; #endif diff --git a/src/timer/user-instance.c b/src/timer/user-instance.c index 78152ad..e025b42 100644 --- a/src/timer/user-instance.c +++ b/src/timer/user-instance.c @@ -340,7 +340,7 @@ static gboolean timer_user_instance_dispatch_src(GSource *gsrc, GSourceFunc cb, case ALSATIMER_EVENT_DATA_TYPE_TICK: event_size = sizeof(struct snd_timer_read); break; - case ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP: + case ALSATIMER_EVENT_DATA_TYPE_TSTAMP: event_size = sizeof(struct snd_timer_tread); break; default: diff --git a/tests/alsatimer-enums b/tests/alsatimer-enums index 0923ac3..dad6f07 100644 --- a/tests/alsatimer-enums +++ b/tests/alsatimer-enums @@ -53,7 +53,7 @@ event_types = ( event_data_types = ( 'TICK', - 'TIMESTAMP', + 'TSTAMP', ) types = {