You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by br...@apache.org on 2002/08/02 21:43:34 UTC

cvs commit: apr/include apr_poll.h

brianp      2002/08/02 12:43:34

  Modified:    include  apr_poll.h
  Log:
  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)
  
  Revision  Changes    Path
  1.4       +4 -0      apr/include/apr_poll.h
  
  Index: apr_poll.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_poll.h,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- apr_poll.h	1 Aug 2002 21:17:58 -0000	1.3
  +++ apr_poll.h	2 Aug 2002 19:43:34 -0000	1.4
  @@ -111,6 +111,7 @@
       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 @@
    * 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);