]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
timer: ALSATimerEventDataType: use shorter name for timestamp
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 10 Jun 2020 02:00:39 +0000 (11:00 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 12 Jun 2020 00:00:43 +0000 (09:00 +0900)
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/alsatimer-enum-types.h
src/timer/user-instance.c
tests/alsatimer-enums

index 70449f9b3ccd792b9ab5340cb6b0f2421de5139c..fd728b0483d65d69a61e01654b12e919b367ab34 100644 (file)
@@ -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
index 78152ad4bb04b5bc2c907ab338256a48ad6fd5c0..e025b4286a058c5e45300cda2a1d90763f84f904 100644 (file)
@@ -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:
index 0923ac3d89641400f7ea9a4d0a65dd41997f1589..dad6f07887d463ab75eb3c7d359c2cf06554b348 100644 (file)
@@ -53,7 +53,7 @@ event_types = (
 
 event_data_types = (
     'TICK',
-    'TIMESTAMP',
+    'TSTAMP',
 )
 
 types = {