Ignore:
Timestamp:
Jul 15, 2011 6:37:07 AM (13 years ago)
Author:
bennylp
Message:

Re #1284 (event framework): unsubscribing does not need to know publisher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/event.h

    r3642 r3653  
    261261    /** User data for this subscription */ 
    262262    void                *user_data; 
     263 
     264    /** Current publisher it is subscribed to */ 
     265    pjmedia_event_publisher *subscribe_to; 
    263266}; 
    264267 
     
    335338 
    336339/** 
    337  * Unsubscribe from the specified publisher. 
    338  * 
    339  * @param epub          The event publisher. 
     340 * Unsubscribe the specified subscription object from publisher it is 
     341 * currently subscribed to. If the subscription object is not currently 
     342 * subscribed to anything, the function will do nothing. 
     343 * 
    340344 * @param esub          The event subscription object, which must be the same 
    341345 *                      object that was given to #pjmedia_event_subscribe(). 
     
    343347 * @return              PJ_SUCCESS on success or the appropriate error code. 
    344348 */ 
    345 PJ_DECL(pj_status_t) pjmedia_event_unsubscribe(pjmedia_event_publisher *epub, 
    346                                                pjmedia_event_subscription *esub); 
     349PJ_DECL(pj_status_t) 
     350pjmedia_event_unsubscribe(pjmedia_event_subscription *esub); 
    347351 
    348352/** 
Note: See TracChangeset for help on using the changeset viewer.