apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@rkbloom.net>
Subject Re: Q: apr_procattr_xxx() API (was: cvs commit: apr/include apr_thread_proc.h)
Date Mon, 14 Jun 2004 15:08:05 GMT


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


Mime
View raw message