Ignore:
Timestamp:
Sep 14, 2006 4:07:49 PM (18 years ago)
Author:
bennylp
Message:

Added pjsip_transport_register_type() API to register new transport type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transport.h

    r622 r720  
    7979#define PJSIP_TRANSPORT_IS_SECURE(tp)       \ 
    8080            ((tp)->flag & PJSIP_TRANSPORT_SECURE) 
     81 
     82/** 
     83 * Register new transport type to PJSIP. The PJSIP transport framework 
     84 * contains the info for some standard transports, as declared by 
     85 * #pjsip_transport_type_e. Application may use non-standard transport 
     86 * with PJSIP, but before it does so, it must register the information 
     87 * about the new transport type to PJSIP by calling this function. 
     88 * 
     89 * @param tp_flag   The flags describing characteristics of this 
     90 *                  transport type. 
     91 * @param tp_name   Transport type name. 
     92 * @param def_port  Default port to be used for the transport. 
     93 * @param p_tp_type On successful registration, it will be filled with 
     94 *                  the registered type. This argument is optional. 
     95 * 
     96 * @return          PJ_SUCCESS if registration is successful, or 
     97 *                  PJSIP_ETYPEEXISTS if the same transport type has 
     98 *                  already been registered. 
     99 */ 
     100PJ_DECL(pj_status_t) pjsip_transport_register_type(unsigned tp_flag, 
     101                                                   const char *tp_name, 
     102                                                   int def_port, 
     103                                                   int *p_tp_type); 
     104 
    81105 
    82106/** 
Note: See TracChangeset for help on using the changeset viewer.