]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
seq: tstamp: change function signature to return nothing
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 4 Apr 2020 03:40:52 +0000 (12:40 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sat, 4 Apr 2020 05:29:02 +0000 (14:29 +0900)
The alsa-gobject project has a loose convention to have functions
returning nothing.

Fixes: 55d19e6bdfdf: ("seq: tstamp: add accessor methods")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/seq/tstamp.c
src/seq/tstamp.h

index 5c9077c0f707ee921d4737a8d67aed785fd210b1..f0ceb4bd3a2bd2617981dad832a75c3606e61155 100644 (file)
@@ -35,17 +35,16 @@ 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.
  *
  * Refer to the time as wall-clock time.
- *
- * Returns: (array fixed-size=2)(transfer none): The array with two elements
- *          for sec part and nsec part of real time.
  */
-const guint32 *alsaseq_tstamp_get_real_time(ALSASeqTstamp *self)
+void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, const guint32 **tstamp)
 {
     // MEMO: I wish 32-bit storage size is aligned to 32 bit offset in all of
     // supported ABIs.
-    return (guint32 *)&self->time;
+    *tstamp = (guint32 *)&self->time;
 }
 
 
index 30e10e4f77e41a962dbb34636c29a55784f7adbd..48e8e173f415b6e5bb64d32df488e7f10f6555fb 100644 (file)
@@ -18,7 +18,7 @@ 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);
 
-const guint32 *alsaseq_tstamp_get_real_time(ALSASeqTstamp *self);
+void alsaseq_tstamp_get_real_time(ALSASeqTstamp *self, const guint32 **tstamp);
 void alsaseq_tstamp_set_real_time(ALSASeqTstamp *self, const guint32 tstamp[2]);
 
 G_END_DECLS