Ignore:
Timestamp:
Feb 7, 2006 6:48:01 PM (18 years ago)
Author:
bennylp
Message:

Tested initial implementation: basic UAC, client registration, authentication, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_regc.h

    r65 r141  
    2727#include <pjsip/sip_types.h> 
    2828#include <pjsip/sip_auth.h> 
    29 #include <pjsip_mod_ua/sip_ua.h> 
     29//#include <pjsip/sip_ua.h> 
    3030 
    3131PJ_BEGIN_DECL 
     
    8686 * @param token     A data to be associated with the client registration struct. 
    8787 * @param cb        Pointer to callback function to receive registration status. 
    88  * 
    89  * @return          client registration structure. 
    90  */ 
    91 PJ_DECL(pjsip_regc*) pjsip_regc_create( pjsip_endpoint *endpt, void *token, 
    92                                         pjsip_regc_cb *cb); 
     88 * @param p_regc    Pointer to receive client registration structure. 
     89 * 
     90 * @return          PJ_SUCCESS on success. 
     91 */ 
     92PJ_DECL(pj_status_t) pjsip_regc_create( pjsip_endpoint *endpt, void *token, 
     93                                        pjsip_regc_cb *cb,  
     94                                        pjsip_regc **p_regc); 
    9395 
    9496 
     
    99101 * 
    100102 * @param regc      The client registration structure. 
    101  */ 
    102 PJ_DECL(void) pjsip_regc_destroy(pjsip_regc *regc); 
     103 * 
     104 * @return          PJ_SUCCESS on success. 
     105 */ 
     106PJ_DECL(pj_status_t) pjsip_regc_destroy(pjsip_regc *regc); 
    103107 
    104108/** 
     
    138142 * Set authentication credentials to use by this registration. 
    139143 * 
    140  * @param dlg           The registration structure. 
    141  * @param count         Number of credentials in the array. 
    142  * @param cred          Array of credentials. 
    143  * 
    144  * @return              Zero on success. 
     144 * @param dlg       The registration structure. 
     145 * @param count     Number of credentials in the array. 
     146 * @param cred      Array of credentials. 
     147 * 
     148 * @return          PJ_SUCCESS on success. 
    145149 */ 
    146150PJ_DECL(pj_status_t) pjsip_regc_set_credentials( pjsip_regc *regc, 
     
    158162 * @param autoreg   If non zero, the library will automatically refresh the 
    159163 *                  next registration until application unregister. 
    160  * 
    161  * @return          SIP REGISTER request. 
    162  */ 
    163 PJ_DECL(pjsip_tx_data*) pjsip_regc_register(pjsip_regc *regc, pj_bool_t autoreg); 
     164 * @param p_tdata   Pointer to receive the REGISTER request. 
     165 * 
     166 * @return          PJ_SUCCESS on success. 
     167 */ 
     168PJ_DECL(pj_status_t) pjsip_regc_register(pjsip_regc *regc, pj_bool_t autoreg, 
     169                                         pjsip_tx_data **p_tdata); 
    164170 
    165171 
     
    168174 * 
    169175 * @param regc      The client registration structure. 
    170  * 
    171  * @return          SIP REGISTER request. 
    172  */ 
    173 PJ_DECL(pjsip_tx_data*) pjsip_regc_unregister(pjsip_regc *regc); 
     176 * @param p_tdata   Pointer to receive the REGISTER request. 
     177 * 
     178 * @return          PJ_SUCCESS on success. 
     179 */ 
     180PJ_DECL(pj_status_t) pjsip_regc_unregister(pjsip_regc *regc, 
     181                                           pjsip_tx_data **p_tdata); 
    174182 
    175183/** 
     
    202210 * @param regc      The client registration structure. 
    203211 * @param tdata     Transmit data. 
    204  */ 
    205 PJ_DECL(void) pjsip_regc_send(pjsip_regc *regc, pjsip_tx_data *tdata); 
     212 * 
     213 * @return          PJ_SUCCESS on success. 
     214 */ 
     215PJ_DECL(pj_status_t) pjsip_regc_send(pjsip_regc *regc, pjsip_tx_data *tdata); 
    206216 
    207217 
Note: See TracChangeset for help on using the changeset viewer.