Module: xenomai-forge Branch: next Commit: 80857d1e8f0c2512afcdc8b819f79f00ba144fb5 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=80857d1e8f0c2512afcdc8b819f79f00ba144fb5
Author: Philippe Gerum <r...@xenomai.org> Date: Fri Aug 8 11:33:56 2014 +0200 alchemy: exclude compat definitions from doxygen pass --- lib/alchemy/alarm.c | 18 +++++++++++++----- lib/alchemy/task.c | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/lib/alchemy/alarm.c b/lib/alchemy/alarm.c index a430082..d813ae2 100644 --- a/lib/alchemy/alarm.c +++ b/lib/alchemy/alarm.c @@ -164,9 +164,15 @@ static void alarm_handler(struct timerobj *tmobj) * by multiple processes, even if they belong to the same Xenomai * session. */ +#ifndef DOXYGEN_CPP CURRENT_IMPL(int, rt_alarm_create, (RT_ALARM *alarm, const char *name, void (*handler)(void *arg), void *arg)) +#else +int rt_alarm_create(RT_ALARM *alarm, const char *name, + void (*handler)(void *arg), + void *arg) +#endif { struct alchemy_alarm *acb; struct service svc; @@ -236,7 +242,11 @@ out: * * @apitags{thread-unrestricted, switch-secondary} */ +#ifndef DOXYGEN_CPP CURRENT_IMPL(int, rt_alarm_delete, (RT_ALARM *alarm)) +#else +int rt_alarm_delete(RT_ALARM *alarm) +#endif { struct alchemy_alarm *acb; struct service svc; @@ -260,8 +270,7 @@ out: } /** - * @fn int rt_alarm_start(RT_ALARM *alarm,RTIME value,RTIME interval) - * @brief Start an alarm. + * Start an alarm. * * This routine programs the trigger date of an alarm object. An alarm * can be either periodic or oneshot, depending on the @a interval @@ -292,14 +301,13 @@ out: * - -EPERM is returned if this service was called from an invalid * context. * - * @apitags{xnthread-only, switch-primary} + * @apitags{xthread-only, switch-primary} * * @note Each of the initial @a value and @a interval is interpreted * as a multiple of the Alchemy clock resolution (see * --alchemy-clock-resolution option, defaults to 1 nanosecond). */ -int rt_alarm_start(RT_ALARM *alarm, - RTIME value, RTIME interval) +int rt_alarm_start(RT_ALARM *alarm, RTIME value, RTIME interval) { struct alchemy_alarm *acb; struct itimerspec it; diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c index 040409f..3974213 100644 --- a/lib/alchemy/task.c +++ b/lib/alchemy/task.c @@ -403,8 +403,13 @@ fail_syncinit: * @note Tasks can be referred to from multiple processes which all * belong to the same Xenomai session. */ +#ifndef DOXYGEN_CPP CURRENT_IMPL(int, rt_task_create, (RT_TASK *task, const char *name, int stksize, int prio, int mode)) +#else +int rt_task_create(RT_TASK *task, const char *name, + int stksize, int prio, int mode) +#endif { struct corethread_attributes cta; struct alchemy_task *tcb; @@ -809,8 +814,12 @@ undo: * multiple of the Alchemy clock resolution (see * --alchemy-clock-resolution option, defaults to 1 nanosecond). */ +#ifndef DOXYGEN_CPP CURRENT_IMPL(int, rt_task_set_periodic, (RT_TASK *task, RTIME idate, RTIME period)) +#else +int rt_task_set_periodic(RT_TASK *task, RTIME idate, RTIME period) +#endif { struct timespec its, pts, now; struct alchemy_task *tcb; @@ -1027,10 +1036,17 @@ int rt_task_sleep(RTIME delay) * * @sideeffect see rt_task_create(). */ +#ifndef DOXYGEN_CPP CURRENT_IMPL(int, rt_task_spawn, (RT_TASK *task, const char *name, int stksize, int prio, int mode, void (*entry)(void *arg), void *arg)) +#else +int rt_task_spawn(RT_TASK *task, const char *name, + int stksize, int prio, int mode, + void (*entry)(void *arg), + void *arg) +#endif { int ret; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git