]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
timer: query: rename to ALSATimer.get_real_time_clock_id()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Wed, 22 Jun 2022 03:20:14 +0000 (12:20 +0900)
For friendly name.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/alsatimer.map
src/timer/query.c
src/timer/query.h
tests/alsatimer-functions

index 8526879b9c5ee12e16701dc78038c1a22cb89476..8ed662b383e817abd6e5e668306b67715284797a 100644 (file)
@@ -50,7 +50,7 @@ ALSA_GOBJECT_0_3_0 {
     "alsatimer_get_device_id_list";
     "alsatimer_get_device_info";
     "alsatimer_get_device_status";
-    "alsatimer_get_tstamp_source";
+    "alsatimer_get_real_time_clock_id";
 
     "alsatimer_user_instance_open";
     "alsatimer_user_instance_get_protocol_version";
index 8f248759a18d7b6270950b85d77a99369862d4ae..4298e7a58287f858ecd9557d1358117e4a64b515 100644 (file)
@@ -305,23 +305,23 @@ end:
 }
 
 /**
- * alsatimer_get_tstamp_source:
- * @clock_id: (out): The clock source for timestamp. The value of `CLOCK_XXX` in UAPI of Linux
+ * alsatimer_get_real_time_clock_id:
+ * @clock_id: (out): The clock_id for real time. The value of `CLOCK_XXX` in UAPI of Linux
  *            kernel.
  * @error: A [struct@GLib.Error]. Error is generated with domain of `GLib.FileError`.
  *
- * Get the clock source for timestamp when [class@UserInstance] is configured to receive event
- * with timestamp. The source is selected according to parameter of `snd-timer` kernel module,
- * and the call of function is just to refer to it.
+ * Get `clock_id` for real time. The `clock_id` governs real time retrieved by both
+ * [method@RealTimeEvent.get_time] and [method@InstanceStatus.get_time].
  *
- * `0` means `CLOCK_REALTIME` is used. `1` means `CLOCK_MONOTONIC` is used.
+ * The call of function is just to refer to parameter of `snd-timer` kernel module. `0` means
+ * `CLOCK_REALTIME` is used. `1` means `CLOCK_MONOTONIC` is used.
  *
  * The call of function executes `open(2)`, `read(2)`, `close(2)` system calls for the sysfs node
- * corresponding to `snd-timer` kernel module.
+ * corresponding to the parameter.
  *
  * Returns: %TRUE when the overall operation finishes successfully, else %FALSE.
  */
-gboolean alsatimer_get_tstamp_source(int *clock_id, GError **error)
+gboolean alsatimer_get_real_time_clock_id(int *clock_id, GError **error)
 {
     int val;
     gsize size;
index 398a08341d06490154261d3e8d70dae5b3f94823..b84e77a1cecd2bc59e35ca13a70b520a3b86ac2e 100644 (file)
@@ -21,7 +21,7 @@ gboolean alsatimer_get_device_status(ALSATimerDeviceId *device_id,
 gboolean alsatimer_set_device_params(ALSATimerDeviceId *device_id,
                                      const ALSATimerDeviceParams *device_params, GError **error);
 
-gboolean alsatimer_get_tstamp_source(int *clock_id, GError **error);
+gboolean alsatimer_get_real_time_clock_id(int *clock_id, GError **error);
 
 G_END_DECLS
 
index ae935132bb1cea554965113d8e8930014f50e91c..dbe90fa79a4cf59f7533589f854d8610af2fd8e3 100644 (file)
@@ -17,7 +17,7 @@ entries = {
         'get_device_info',
         'get_device_status',
         'set_device_params',
-        'get_tstamp_source',
+        'get_real_time_clock_id',
     ),
     ALSATimer.UserInstanceError: (
         'quark',