Exemple #1
0
void *pjsip_p_c_f_a_hdr_shallow_clone(pj_pool_t* pool, const void* o)
{
  pjsip_p_c_f_a_hdr* hdr = pjsip_p_c_f_a_hdr_create(pool);
  pjsip_p_c_f_a_hdr* other = (pjsip_p_c_f_a_hdr*)o;

  pjsip_param_shallow_clone(pool, &hdr->ccf, &other->ccf);
  pjsip_param_shallow_clone(pool, &hdr->ecf, &other->ecf);
  pjsip_param_shallow_clone(pool, &hdr->other_param, &other->other_param);

  return hdr;
}
Exemple #2
0
pjsip_routing_hdr* identity_hdr_shallow_clone(pj_pool_t* pool,
                                              const pjsip_routing_hdr* rhs)
{
  pjsip_routing_hdr *hdr = PJ_POOL_ALLOC_T(pool, pjsip_routing_hdr);
  pj_memcpy(hdr, rhs, sizeof(*hdr));
  pjsip_param_shallow_clone(pool, &hdr->other_param, &rhs->other_param);
  return hdr;
}
Exemple #3
0
void* pjsip_session_expires_hdr_shallow_clone(pj_pool_t* pool, const void* o)
{
  pjsip_session_expires_hdr* hdr = pjsip_session_expires_hdr_create(pool);
  pjsip_session_expires_hdr* other = (pjsip_session_expires_hdr*)o;
  hdr->expires = other->expires;
  hdr->refresher = other->refresher;
  pjsip_param_shallow_clone(pool, &hdr->other_param, &other->other_param);
  return hdr;
}
Exemple #4
0
void *pjsip_reject_contact_hdr_shallow_clone(pj_pool_t* pool, const void* o)
{
  pjsip_reject_contact_hdr* hdr = pjsip_reject_contact_hdr_create(pool);
  pjsip_reject_contact_hdr* other = (pjsip_reject_contact_hdr*)o;

  pjsip_param_shallow_clone(pool, &hdr->feature_set, &other->feature_set);

  return hdr;
}
Exemple #5
0
static pjsip_sub_state_hdr* 
pjsip_sub_state_hdr_shallow_clone(pj_pool_t *pool,
				  const pjsip_sub_state_hdr *rhs)
{
    pjsip_sub_state_hdr *hdr = PJ_POOL_ALLOC_T(pool, pjsip_sub_state_hdr);
    pj_memcpy(hdr, rhs, sizeof(*hdr));
    pjsip_param_shallow_clone(pool, &hdr->other_param, &rhs->other_param);
    return hdr;
}
Exemple #6
0
static pjsip_min_se_hdr* min_se_hdr_shallow_clone( 
					  pj_pool_t *pool,
					  const pjsip_min_se_hdr* hsrc)
{
    pjsip_min_se_hdr *hdr = PJ_POOL_ALLOC_T(pool, pjsip_min_se_hdr);
    pj_memcpy(hdr, hsrc, sizeof(*hdr));
    pjsip_param_shallow_clone(pool, &hdr->other_param, &hsrc->other_param);
    return hdr;
}
Exemple #7
0
void *pjsip_p_c_v_hdr_shallow_clone(pj_pool_t* pool, const void* o)
{
  pjsip_p_c_v_hdr* hdr = pjsip_p_c_v_hdr_create(pool);
  pjsip_p_c_v_hdr* other = (pjsip_p_c_v_hdr*)o;
  hdr->icid = other->icid;
  hdr->orig_ioi = other->orig_ioi;
  hdr->term_ioi = other->term_ioi;
  hdr->icid_gen_addr = other->icid_gen_addr;
  pjsip_param_shallow_clone(pool, &hdr->other_param, &other->other_param);
  return hdr;
}
static pjsip_www_authenticate_hdr* pjsip_www_authenticate_hdr_shallow_clone( pj_pool_t *pool,
									     const pjsip_www_authenticate_hdr *rhs)
{
    /* This function also serves Proxy-Authenticate header. */
    pjsip_www_authenticate_hdr *hdr;
    hdr = PJ_POOL_ALLOC_T(pool, pjsip_www_authenticate_hdr);
    pj_memcpy(hdr, rhs, sizeof(*hdr));
    pjsip_param_shallow_clone(pool, &hdr->challenge.common.other_param, 
			      &rhs->challenge.common.other_param);
    return hdr;
}
Exemple #9
0
void *pjsip_accept_contact_hdr_shallow_clone(pj_pool_t* pool, const void* o)
{
  pjsip_accept_contact_hdr* hdr = pjsip_accept_contact_hdr_create(pool);
  pjsip_accept_contact_hdr* other = (pjsip_accept_contact_hdr*)o;

  hdr->required_match = other->required_match;
  hdr->explicit_match = other->explicit_match;

  pjsip_param_shallow_clone(pool, &hdr->feature_set, &other->feature_set);

  return hdr;
}