Changeset 2940 for pjproject/trunk/pjsip/include/pjsip-simple/publish.h
- Timestamp:
- Oct 12, 2009 7:44:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip-simple/publish.h
r2661 r2940 65 65 typedef struct pjsip_publishc pjsip_publishc; 66 66 67 68 /** 69 * Client publication options. Application should initialize this structure 70 * with its default values by calling #pjsip_publishc_opt_default() 71 */ 72 typedef struct pjsip_publishc_opt 73 { 74 /** 75 * Specify whether the client publication session should queue the 76 * PUBLISH request should there be another PUBLISH transaction still 77 * pending. If this is set to false, the client will return error 78 * on the PUBLISH request if there is another PUBLISH transaction still 79 * in progress. 80 * 81 * Default: PJSIP_PUBLISHC_QUEUE_REQUEST 82 */ 83 pj_bool_t queue_request; 84 85 } pjsip_publishc_opt; 67 86 68 87 … … 90 109 91 110 /** 111 * Initialize client publication session option with default values. 112 * 113 * @param opt The option. 114 */ 115 PJ_DECL(void) pjsip_publishc_opt_default(pjsip_publishc_opt *opt); 116 117 118 /** 92 119 * Initialize client publication module. 93 120 * … … 99 126 100 127 101 102 128 /** 103 129 * Create client publication structure. 104 130 * 105 131 * @param endpt Endpoint, used to allocate pool from. 106 * @param opt ions Option flags.132 * @param opt Options, or NULL to specify default options. 107 133 * @param token Opaque data to be associated with the client publication. 108 134 * @param cb Pointer to callback function to receive publication status. … … 112 138 */ 113 139 PJ_DECL(pj_status_t) pjsip_publishc_create( pjsip_endpoint *endpt, 114 unsigned options,140 const pjsip_publishc_opt *opt, 115 141 void *token, 116 142 pjsip_publishc_cb *cb, … … 270 296 * completes. 271 297 * 298 * If the session has another PUBLISH request outstanding, the behavior 299 * depends on whether request queueing is enabled in the session (this was 300 * set by setting \a queue_request field of #pjsip_publishc_opt to true 301 * when calling #pjsip_publishc_create(). Default is true). If request 302 * queueing is enabled, the request will be queued and the function will 303 * return PJ_EPENDING. One the outstanding request is complete, the queued 304 * request will be sent automatically. If request queueing is disabled, the 305 * function will reject the request and return PJ_EBUSY. 306 * 272 307 * @param pubc The client publication structure. 273 308 * @param tdata Transmit data. 274 309 * 275 * @return PJ_SUCCESS on success. 310 * @return - PJ_SUCCESS on success, or 311 * - PJ_EPENDING if request is queued, or 312 * - PJ_EBUSY if request is rejected because another PUBLISH 313 * request is in progress, or 314 * - other status code to indicate the error. 276 315 */ 277 316 PJ_DECL(pj_status_t) pjsip_publishc_send(pjsip_publishc *pubc,
Note: See TracChangeset
for help on using the changeset viewer.