* [Xenomai-core] "xenomai" prefix in RTDM userspace includes
@ 2006-01-04 14:23 Jan Kiszka
2006-01-04 14:54 ` [Xenomai-core] " Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2006-01-04 14:23 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]
Hi,
the current RTDM profile headers (so far only rtserial.h and
rtbenchmark.h) suffer from the "xenomai" prefix in the include path.
This was introduced with 2.1. An example: rtserial.h contains "#include
<xenomai/rtdm/rtdm.h>" which is fine in kernel space but requires that -
in my eyes - ugly "xenomai"->"." link in the installation include dir.
Moreover, it makes the RTDM profile headers Xenomai-specific (what they
are not).
The orginal (but nowhere stated - yeah) idea was to always have a
"rtdm/" dir in the include path whenever writing a RTDM driver or
application for some supported environment. So I would rather like to
see the Makefiles for Xenomai's RTDM drivers fixed in this regard,
simply by adding
EXTRA_CFLAGS += -Iinclude/xenomai
This would allow to use the generic "#include <rtdm/rtdm.h>" in the
profile headers again. Tweaking the Makefiles instead of the headers is
also the way we handled this for drivers outside Xenomai (RTnet,
rt_sja1000, ...).
Objections?
Jan
PS: A cleanup of the RTDM userspace header installation is scheduled -
only rtdm.h + the profile header will survive this.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Xenomai-core] Re: "xenomai" prefix in RTDM userspace includes
2006-01-04 14:23 [Xenomai-core] "xenomai" prefix in RTDM userspace includes Jan Kiszka
@ 2006-01-04 14:54 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-01-04 14:54 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Hi,
>
> the current RTDM profile headers (so far only rtserial.h and
> rtbenchmark.h) suffer from the "xenomai" prefix in the include path.
> This was introduced with 2.1. An example: rtserial.h contains "#include
> <xenomai/rtdm/rtdm.h>" which is fine in kernel space but requires that -
> in my eyes - ugly "xenomai"->"." link in the installation include dir.
> Moreover, it makes the RTDM profile headers Xenomai-specific (what they
> are not).
>
> The orginal (but nowhere stated - yeah) idea was to always have a
> "rtdm/" dir in the include path whenever writing a RTDM driver or
> application for some supported environment. So I would rather like to
> see the Makefiles for Xenomai's RTDM drivers fixed in this regard,
> simply by adding
>
> EXTRA_CFLAGS += -Iinclude/xenomai
>
> This would allow to use the generic "#include <rtdm/rtdm.h>" in the
> profile headers again. Tweaking the Makefiles instead of the headers is
> also the way we handled this for drivers outside Xenomai (RTnet,
> rt_sja1000, ...).
>
> Objections?
>
None, provided we always keep on preventing naming conflicts. Prefixing
with rtdm/ or xenomai/ does the job equally well.
> Jan
>
>
> PS: A cleanup of the RTDM userspace header installation is scheduled -
> only rtdm.h + the profile header will survive this.
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-04 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-04 14:23 [Xenomai-core] "xenomai" prefix in RTDM userspace includes Jan Kiszka
2006-01-04 14:54 ` [Xenomai-core] " Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.