]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
timer: event: link optimization to gi-docgen
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 19 Apr 2022 09:41:08 +0000 (18:41 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Wed, 20 Apr 2022 00:51:44 +0000 (09:51 +0900)
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/event.c

index cb36f94cb02ed4defeeb660aad745ea016915602..a187de1ca6d3a786ee6d4f88784f78e993830659 100644 (file)
@@ -2,15 +2,13 @@
 #include "privates.h"
 
 /**
- * SECTION: event
- * @Title: ALSATimerEvent
- * @Short_description: A boxed object to represent event of timer
+ * ALSATimerEvent:
+ * A boxed object to represent event of timer.
  *
- * A #ALSATimerEvent is a boxed object to represent event of timer. The
- * instance of object uses single storage for two types of event data;
- * #ALSATimerEventDataTick for and #ALSATimerEventDataTstamp. Applications can
- * decide to use one of the two by passing one of #ALSATimerEventType to the
- * call of alsatimer_user_instance_attach().
+ * A [struct@Event] is a boxed object to represent event of timer. The instance of object uses
+ * single storage for two types of event data; [struct@EventDataTick] for and
+ * [struct@EventDataTstamp]. Applications can decide to use one of the two by passing one of
+ * [enum@EventType] to the call of [method@UserInstance.attach].
  */
 ALSATimerEvent *timer_event_copy(const ALSATimerEvent *self)
 {
@@ -30,9 +28,9 @@ G_DEFINE_BOXED_TYPE(ALSATimerEvent, alsatimer_event, timer_event_copy, g_free)
 /**
  * alsatimer_event_new:
  *
- * Allocate and return the instance of #ALSATimerEvent.
+ * Allocate and return the instance of [struct@Event].
  *
- * Returns: A #ALSATimerEvent.
+ * Returns: An instance of [struct@Event].
  */
 ALSATimerEvent *alsatimer_event_new()
 {
@@ -41,10 +39,10 @@ ALSATimerEvent *alsatimer_event_new()
 
 /**
  * alsatimer_event_get_tick_data:
- * @self: A #ALSATimerEvent.
- * @tick: (out)(transfer none): The instance of #ALSATimerEventDataTick.
+ * @self: A [struct@Event].
+ * @tick: (out)(transfer none): The instance of [struct@EventDataTick].
  *
- * Refer to the instance of #ALSATimerEventDataTick.
+ * Refer to the instance of [struct@EventDataTick].
  */
 void alsatimer_event_get_tick_data(ALSATimerEvent *self,
                                    const ALSATimerEventDataTick **tick)
@@ -54,10 +52,10 @@ void alsatimer_event_get_tick_data(ALSATimerEvent *self,
 
 /**
  * alsatimer_event_get_tstamp_data:
- * @self: A #ALSATimerEvent.
- * @tstamp: (out)(transfer none): The instance of #ALSATimerEventDataTstamp.
+ * @self: A [struct@Event].
+ * @tstamp: (out)(transfer none): The instance of [struct@EventDataTstamp].
  *
- * Refer to the instance of #ALSATimerEventDataTstamp.
+ * Refer to the instance of [struct@EventDataTstamp].
  */
 void alsatimer_event_get_tstamp_data(ALSATimerEvent *self,
                                      const ALSATimerEventDataTstamp **tstamp)