You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by rb...@rkbloom.net on 2004/06/14 17:08:05 UTC

Re: Q: apr_procattr_xxx() API (was: cvs commit: apr/include apr_thread_proc.h)


On Mon, 14 Jun 2004, Brad Nicholes wrote:

>    Is there a reason why the apr_procattr APIs were implemented as
>
> apr_procattr_xxx_set (apr_procattr_t*, value)
>
> rather than
>
> apr_procattr_set (apr_procattr_t*, APR_xxx_ATTR, value, ...)
>
> It seems like the second approach would make it easier for a platform
> to extent the apr_procattr_t structure without having to add a new API
> each time, just to have the new API become a no-op for every other
> platform.

I did it that way to get type-safety for the arguments.

Ryan