From 33370cb18d3dda2bccbf2648f40d9614693ed0ea Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 20 Jun 2017 04:32:34 +0200 Subject: doxygen: various fixes in core/timer.h Move a longish comment to the timer group so that it appears in the API doc. Un-doxygen some floating comments that were associated with unrelated code items ('/**' --> '/*'). Add braces to some function names so that the API doc will render as reference links. Change-Id: I3ea5b88cbe9cb54702429158bf47e768e04e8fe7 --- include/osmocom/core/timer.h | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h index 28785dbd..a039ac82 100644 --- a/include/osmocom/core/timer.h +++ b/include/osmocom/core/timer.h @@ -19,11 +19,24 @@ */ /*! \defgroup timer Osmocom timers + * Timer management: + * - Create a struct osmo_timer_list + * - Fill out timeout and use osmo_timer_add(), or + * use osmo_timer_schedule() to schedule a timer in + * x seconds and microseconds from now... + * - Use osmo_timer_del() to remove the timer + * + * Internally: + * - We hook into select.c to give a timeval of the + * nearest timer. On already passed timers we give + * it a 0 to immediately fire after the select + * - osmo_timers_update() will call the callbacks and + * remove the timers. * @{ */ /*! \file timer.h - * Osmocom timer handling routines + * Osmocom timer handling routines. */ #pragma once @@ -34,22 +47,6 @@ #include #include -/** - * Timer management: - * - Create a struct osmo_timer_list - * - Fill out timeout and use add_timer or - * use osmo_timer_schedule to schedule a timer in - * x seconds and microseconds from now... - * - Use osmo_timer_del to remove the timer - * - * Internally: - * - We hook into select.c to give a timeval of the - * nearest timer. On already passed timers we give - * it a 0 to immediately fire after the select - * - osmo_timers_update will call the callbacks and - * remove the timers. - * - */ /*! A structure representing a single instance of a timer */ struct osmo_timer_list { struct rb_node node; /*!< rb-tree node header */ @@ -61,7 +58,7 @@ struct osmo_timer_list { void *data; /*!< user data for callback */ }; -/** +/* * timer management */ @@ -88,7 +85,7 @@ int osmo_timers_check(void); int osmo_gettimeofday(struct timeval *tv, struct timezone *tz); -/** +/* * timer override */ -- cgit v1.2.3