Ignore:
Timestamp:
Nov 11, 2005 7:01:31 PM (18 years ago)
Author:
bennylp
Message:

First clean compile of pjsip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjsip/include/pjsip/sip_endpoint.h

    • Property svn:keywords set to Id
    r38 r43  
    11/* $Id$ 
    2  * 
    32 */ 
    43#ifndef __PJSIP_SIP_ENDPOINT_H__ 
     
    2928 * all SIP objects in an application. It performs the following roles: 
    3029 *  - it manages the allocation/deallocation of memory pools for all objects. 
    31  *  - it manages listeners and transports, and how they are used by transactions. 
     30 *  - it manages listeners and transports, and how they are used by  
     31 *    transactions. 
    3232 *  - it owns transaction hash table. 
    3333 *  - it receives incoming messages from transport layer and automatically 
     
    3535 *  - it has a single instance of timer management (timer heap). 
    3636 *  - it manages modules, which is the primary means of extending the library. 
    37  *  - it provides single polling function for all objects and distributes events. 
     37 *  - it provides single polling function for all objects and distributes  
     38 *    events. 
    3839 *  - it provides SIP policy such as which outbound proxy to use for all 
    3940 *    outgoing SIP request messages. 
     
    5051/** 
    5152 * Create an instance of SIP endpoint from the specified pool factory. 
    52  * The pool factory reference then will be kept by the endpoint, so that future 
    53  * memory allocations by SIP components will be taken from the same pool factory. 
    54  * 
    55  * @param pf    Pool factory that will be used for the lifetime of endpoint. 
    56  * 
    57  * @return the endpoint instance on success. 
    58  */ 
    59 PJ_DECL(pjsip_endpoint*) pjsip_endpt_create(pj_pool_factory *pf); 
     53 * The pool factory reference then will be kept by the endpoint, so that  
     54 * future memory allocations by SIP components will be taken from the same 
     55 * pool factory. 
     56 * 
     57 * @param pf            Pool factory that will be used for the lifetime of  
     58 *                      endpoint. 
     59 * @param name          Optional name to be specified for the endpoint. 
     60 *                      If this parameter is NULL, then the name will use 
     61 *                      local host name. 
     62 * @param endpt         Pointer to receive endpoint instance. 
     63 * 
     64 * @return              PJ_SUCCESS on success. 
     65 */ 
     66PJ_DECL(pj_status_t) pjsip_endpt_create(pj_pool_factory *pf, 
     67                                        pjsip_endpoint **endpt); 
    6068 
    6169/** 
     
    6775 */ 
    6876PJ_DECL(void) pjsip_endpt_destroy(pjsip_endpoint *endpt); 
     77 
     78/** 
     79 * Get endpoint name. 
     80 * 
     81 * @param endpt         The SIP endpoint instance. 
     82 * 
     83 * @return              Endpoint name, as was registered during endpoint 
     84 *                      creation. The string is NULL terminated. 
     85 */ 
     86PJ_DECL(const pj_str_t*) pjsip_endpt_name(const pjsip_endpoint *endpt); 
    6987 
    7088/** 
     
    155173 * 
    156174 * @param endpt     The SIP endpoint. 
    157  * @return          The new transaction, or NULL on failure. 
    158  */ 
    159 PJ_DECL(pjsip_transaction*) pjsip_endpt_create_tsx(pjsip_endpoint *endpt); 
     175 * @param p_tsx     Pointer to receive the transaction. 
     176 * 
     177 * @return          PJ_SUCCESS or the appropriate error code. 
     178 */ 
     179PJ_DECL(pj_status_t) pjsip_endpt_create_tsx(pjsip_endpoint *endpt, 
     180                                            pjsip_transaction **p_tsx); 
    160181 
    161182/** 
     
    188209 * This function, like all other endpoint functions, is thread safe. 
    189210 * 
    190  * @param endpt the endpoint. 
    191  * @return new transmit data. 
    192  */ 
    193 PJ_DECL(pjsip_tx_data*) pjsip_endpt_create_tdata( pjsip_endpoint *endpt ); 
     211 * @param endpt     The endpoint. 
     212 * @param p_tdata    Pointer to receive transmit data buffer. 
     213 * 
     214 * @return          PJ_SUCCESS or the appropriate error code. 
     215 */ 
     216PJ_DECL(pj_status_t) pjsip_endpt_create_tdata( pjsip_endpoint *endpt, 
     217                                               pjsip_tx_data **p_tdata); 
    194218 
    195219/** 
     
    333357 
    334358/** 
     359 * Log an error. 
     360 */ 
     361PJ_DECL(void) pjsip_endpt_log_error( pjsip_endpoint *endpt, 
     362                                     const char *sender, 
     363                                     pj_status_t error_code, 
     364                                     const char *format, 
     365                                     ... ); 
     366 
     367#define PJSIP_ENDPT_LOG_ERROR(expr)   \ 
     368            pjsip_endpt_log_error expr 
     369 
     370#define PJSIP_ENDPT_TRACE(tracing,expr) \ 
     371            do {                        \ 
     372                if ((tracing))          \ 
     373                    PJ_LOG(4,expr);     \ 
     374            } while (0) 
     375 
     376/** 
    335377 * @} 
    336378 */ 
Note: See TracChangeset for help on using the changeset viewer.