Ignore:
Timestamp:
Sep 9, 2014 4:10:59 AM (7 years ago)
Author:
ming
Message:

Fixed #1784: Remove the usage of nested structs/unions in PJSUA2 (unsupported by SWIG C++)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/call.hpp

    r4780 r4918  
    102102    MathStat        lossPeriodUsec; /**< Loss period statistics             */ 
    103103 
    104     struct { 
    105         unsigned    burst;      /**< Burst/sequential packet lost detected  */ 
    106         unsigned    random;     /**< Random packet lost detected.           */ 
    107     } lossType;                 /**< Types of loss detected.                */ 
     104                                /**< Types of loss detected.                */ 
     105    unsigned        burst;      /**< Burst/sequential packet lost detected  */ 
     106    unsigned        random;     /**< Random packet lost detected.           */ 
    108107     
    109108    MathStat        jitterUsec; /**< Jitter statistics                      */ 
     
    238237 
    239238/** 
     239 * Media event data. 
     240 */ 
     241typedef union MediaEventData { 
     242    /** 
     243     * Media format changed event data. 
     244     */ 
     245    MediaFmtChangedEvent    fmtChanged; 
     246     
     247    /** 
     248     * Pointer to storage to user event data, if it's outside 
     249     * this struct 
     250     */ 
     251    GenericData         ptr; 
     252 
     253} MediaEventData; 
     254 
     255/** 
    240256 * This structure describes a media event. It corresponds to the 
    241257 * pjmedia_event structure. 
     
    252268     * will be specific to the event type being reported. 
    253269     */ 
    254     union { 
    255         /** 
    256          * Media format changed event data. 
    257          */ 
    258         MediaFmtChangedEvent    fmtChanged; 
    259          
    260         /** 
    261          * Pointer to storage to user event data, if it's outside 
    262          * this struct 
    263          */ 
    264         GenericData             ptr; 
    265     } data; 
     270    MediaEventData              data; 
    266271     
    267272    /** 
Note: See TracChangeset for help on using the changeset viewer.