Ignore:
Timestamp:
Dec 30, 2005 11:50:15 PM (18 years ago)
Author:
bennylp
Message:

Basic module, transport, and sending messages

File:
1 edited

Legend:

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

    r65 r106  
    5353typedef enum pjsip_method_e 
    5454{ 
    55     /** INVITE method, for establishing dialogs. */ 
    56     PJSIP_INVITE_METHOD, 
    57  
    58     /** CANCEL method, for cancelling request. */ 
    59     PJSIP_CANCEL_METHOD, 
    60  
    61     /** ACK method, for acknowledging final response to INVITE. */ 
    62     PJSIP_ACK_METHOD, 
    63  
    64     /** BYE method, for terminating dialog. */ 
    65     PJSIP_BYE_METHOD, 
    66  
    67     /** REGISTER method. */ 
    68     PJSIP_REGISTER_METHOD, 
    69  
    70     /** OPTIONS method, for querying remote capabilities. */ 
    71     PJSIP_OPTIONS_METHOD, 
    72  
    73     /** Other method, which means that the method name itself will be stored 
    74         elsewhere. */ 
    75     PJSIP_OTHER_METHOD, 
     55    PJSIP_INVITE_METHOD,    /**< INVITE method, for establishing dialogs.   */ 
     56    PJSIP_CANCEL_METHOD,    /**< CANCEL method, for cancelling request.     */ 
     57    PJSIP_ACK_METHOD,       /**< ACK method.                                */ 
     58    PJSIP_BYE_METHOD,       /**< BYE method, for terminating dialog.        */ 
     59    PJSIP_REGISTER_METHOD,  /**< REGISTER method.                           */ 
     60    PJSIP_OPTIONS_METHOD,   /**< OPTIONS method.                            */ 
     61 
     62    PJSIP_OTHER_METHOD,     /**< Other method.                              */ 
    7663 
    7764} pjsip_method_e; 
     
    9279                                 method string. */ 
    9380} pjsip_method; 
     81 
     82 
     83/* 
     84 * For convenience, standard method structures are defined in the library. 
     85 */ 
     86extern const pjsip_method pjsip_invite_method;      /**< INVITE structure.  */ 
     87extern const pjsip_method pjsip_cancel_method;      /**< CANCEL structure.  */ 
     88extern const pjsip_method pjsip_ack_method;         /**< ACK structure.     */ 
     89extern const pjsip_method pjsip_bye_method;         /**< BYE structure.     */ 
     90extern const pjsip_method pjsip_register_method;    /**< REGISTER structure.*/ 
     91extern const pjsip_method pjsip_options_method;     /**< OPTIONS structure. */ 
    9492 
    9593 
     
    639637 *                  type is found. 
    640638 */ 
    641 PJ_DECL(void*)  pjsip_msg_find_hdr( pjsip_msg *msg,  
    642                                     pjsip_hdr_e type, void *start); 
     639PJ_DECL(void*)  pjsip_msg_find_hdr( const pjsip_msg *msg,  
     640                                    pjsip_hdr_e type, const void *start); 
    643641 
    644642/**  
     
    655653 *                  type is found. 
    656654 */ 
    657 PJ_DECL(void*)  pjsip_msg_find_hdr_by_name( pjsip_msg *msg,  
    658                                             const pj_str_t *name, void *start); 
     655PJ_DECL(void*)  pjsip_msg_find_hdr_by_name( const pjsip_msg *msg,  
     656                                            const pj_str_t *name,  
     657                                            const void *start); 
    659658 
    660659/**  
     
    703702 *              value if the message is too large for the specified buffer. 
    704703 */ 
    705 PJ_DECL(pj_ssize_t) pjsip_msg_print(pjsip_msg *msg, char *buf, pj_size_t size); 
     704PJ_DECL(pj_ssize_t) pjsip_msg_print(const pjsip_msg *msg,  
     705                                    char *buf, pj_size_t size); 
    706706 
    707707/** 
Note: See TracChangeset for help on using the changeset viewer.