From 03adbf16d9fd8a0d11fad6960c9424a29ee97a58 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Mon, 20 Jun 2022 18:44:49 +0900 Subject: [PATCH] timer: device-status: add annotation to object properties Signed-off-by: Takashi Sakamoto --- src/timer/device-status.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/timer/device-status.c b/src/timer/device-status.c index bab91f4..38900c1 100644 --- a/src/timer/device-status.c +++ b/src/timer/device-status.c @@ -53,6 +53,11 @@ static void alsatimer_device_status_class_init(ALSATimerDeviceStatusClass *klass gobject_class->get_property = timer_device_status_get_property; + /** + * ALSATimerDeviceStatus:resolution: + * + * The current resolution in nano seconds. + */ timer_device_status_props[TIMER_DEVICE_STATUS_PROP_RESOLUTION] = g_param_spec_uint64("resolution", "resolution", "The current resolution in nano seconds.", @@ -60,6 +65,11 @@ static void alsatimer_device_status_class_init(ALSATimerDeviceStatusClass *klass 0, G_PARAM_READABLE); + /** + * ALSATimerDeviceStatus:resolution-numerator: + * + * The numerator of current resolution in seconds. + */ timer_device_status_props[TIMER_DEVICE_STATUS_PROP_RESOLUTION_NUM] = g_param_spec_uint64("resolution-numerator", "resolution-numerator", "The numerator of current resolution in seconds.", @@ -67,6 +77,11 @@ static void alsatimer_device_status_class_init(ALSATimerDeviceStatusClass *klass 0, G_PARAM_READABLE); + /** + * ALSATimerDeviceStatus:resolution-denominator: + * + * The denominator of current resolution in seconds. + */ timer_device_status_props[TIMER_DEVICE_STATUS_PROP_RESOLUTION_DEN] = g_param_spec_uint64("resolution-denominator", "resolution-denominator", "The denominator of current resolution in seconds.", -- 2.47.3