diff options
author | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-02 19:43:34 +0000 |
---|---|---|
committer | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-02 19:43:34 +0000 |
commit | 84661bda85a47cba22bdf5e562fb9dfabdfb85c7 (patch) | |
tree | 5346e968fe9bc4f34478ef42f8db47baeb7eda64 | |
parent | 5bacf014cfb26eeffe114716fce17cdee5667cab (diff) | |
download | libapr-84661bda85a47cba22bdf5e562fb9dfabdfb85c7.tar.gz |
Added a "client data" void* to the poll API so that an app
can associate application context with each file descriptor
(e.g., map each descriptor to the filter that should process
that descriptor once it's signalled)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63772 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/apr_poll.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/apr_poll.h b/include/apr_poll.h index 7320d57e7..5ddde025b 100644 --- a/include/apr_poll.h +++ b/include/apr_poll.h @@ -111,6 +111,7 @@ struct apr_pollfd_t { apr_int16_t reqevents; apr_int16_t rtnevents; apr_descriptor desc; + void *client_data; /* allows app to associate context with a descriptor */ }; /** @@ -249,6 +250,9 @@ APR_DECLARE(apr_status_t) apr_pollset_destroy(apr_pollset_t *pollset); * Add a socket or file descriptor to a pollset * @param pollset The pollset to which to add the descriptor * @param descriptor The descriptor to add + * @param remark If you set client_data in the descriptor, that value + * will be returned in the client_data field whenever this + * descriptor is signalled in apr_pollset_poll(). */ APR_DECLARE(apr_status_t) apr_pollset_add(apr_pollset_t *pollset, const apr_pollfd_t *descriptor); |