/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SIP_XACTION_H
#define _SIP_XACTION_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <pthread.h>
#include <sip.h>
#include "sip_msg.h"
#include "sip_miscdefs.h"
/* Various transaction timers */
typedef enum sip_timer_type_s {
SIP_XACTION_TIMER_A = 0,
/* Increment transaction reference count */
(trans)->sip_xaction_ref_cnt++;
/* Decrement transaction reference count */
(trans)->sip_xaction_ref_cnt--; \
if ((trans)->sip_xaction_ref_cnt == 0 && \
} else { \
} \
}
/* True if transaction is in the terminated state */
((trans_state) == SIP_CLNT_INV_TERMINATED || \
(trans_state) == SIP_CLNT_NONINV_TERMINATED || \
(trans_state) == SIP_SRV_INV_TERMINATED || \
/* Transaction structure */
typedef struct sip_xaction {
int sip_xaction_msgcnt;
int, void *), void (*ulp_state_cb)
(sip_transaction_t, sip_msg_t, int, int));
_sip_msg_t *);
_sip_msg_t **);
boolean_t, int, int *);
extern void sip_xaction_delete(sip_xaction_t *);
extern char *sip_get_xaction_state(int);
extern int (*sip_xaction_ulp_trans_err)(sip_transaction_t, int,
void *);
extern void (*sip_xaction_ulp_state_cb)(sip_transaction_t,
sip_msg_t, int, int);
extern void sip_del_conn_obj_cache(sip_conn_object_t, void *);
extern int sip_add_conn_obj_cache(sip_conn_object_t, void *);
int);
#ifdef __cplusplus
}
#endif
#endif /* _SIP_XACTION_H */