]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
seq: tstamp: rename argument for real time
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 13 Apr 2020 06:34:39 +0000 (15:34 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Mon, 13 Apr 2020 11:45:01 +0000 (20:45 +0900)
This commit renames argument for real time so that the name is
consistent within the library.

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

index 788c5df595230758a47e6887e307d881f983146b..c749749ed8162bbdf949f51845a9e6dadf3fb010 100644 (file)
@@ -35,29 +35,29 @@ void alsaseq_tstamp_set_tick_time(ALSASeqTstamp *self, const guint32 tick_time)
 /**
  * alsaseq_tstamp_get_real_time:
  * @self: A #ALSASeqTstamp.
- * @tstamp: (array fixed-size=2)(out)(transfer none): The array with two
- *          elements for sec part and nsec part of real time.
+ * @real_time: (array fixed-size=2)(out)(transfer none): The array with two
+ *             elements for sec part and nsec part of real time.
  *
  * Refer to the time as wall-clock time.
  */
-void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, const guint32 **tstamp)
+void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, guint32 *real_time[2])
 {
     // MEMO: I wish 32-bit storage size is aligned to 32 bit offset in all of
     // supported ABIs.
-    *tstamp = (guint32 *)&self->tstamp.time;
+    *real_time = (guint32 *)&self->tstamp.time;
 }
 
 
 /**
  * alsaseq_tstamp_set_real_time:
  * @self: A #ALSASeqTstamp.
- * @tstamp: (array fixed-size=2)(transfer none): The array with two elements for
- *          sec part and nsec part of real time.
+ * @real_time: (array fixed-size=2)(transfer none): The array with two elements
+ *             for sec part and nsec part of real time.
  *
  * Copy the time as wall-clock time.
  */
-void alsaseq_tstamp_set_real_time(ALSASeqTstamp *self, const guint32 tstamp[2])
+void alsaseq_tstamp_set_real_time(ALSASeqTstamp *self, const guint32 real_time[2])
 {
-    self->tstamp.time.tv_sec = tstamp[0];
-    self->tstamp.time.tv_nsec = tstamp[1];
+    self->tstamp.time.tv_sec = real_time[0];
+    self->tstamp.time.tv_nsec = real_time[1];
 }
index d51e2788cd685c62abc2c5c9ed0ab62939272fd8..5678b4eeb7745dbcccb9485ce14b16d39ac3dba6 100644 (file)
@@ -14,7 +14,7 @@ G_BEGIN_DECLS
 // The usage of union is inconvenient to some programming languages which has
 // no support to handle it. Let's use wrapper structure.
 typedef struct {
-    union snd_seq_timestamp time;
+    union snd_seq_timestamp tstamp;
 } ALSASeqTstamp;
 
 GType alsaseq_tstamp_get_type() G_GNUC_CONST;
@@ -22,8 +22,8 @@ GType alsaseq_tstamp_get_type() G_GNUC_CONST;
 void alsaseq_tstamp_get_tick_time(ALSASeqTstamp *self, guint32 *tick_time);
 void alsaseq_tstamp_set_tick_time(ALSASeqTstamp *self, const guint32 tick_time);
 
-void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, const guint32 **tstamp);
-void alsaseq_tstamp_set_real_time(ALSASeqTstamp *self, const guint32 tstamp[2]);
+void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, guint32 *real_time[2]);
+void alsaseq_tstamp_set_real_time(ALSASeqTstamp *self, const guint32 real_time[2]);
 
 G_END_DECLS