pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJSIP Reference

XPIDF/Presence Information Data Format
[Event and Presence Framework]

Support for XPIDF/Presence Information Data Format. More...

Typedefs

typedef pj_xml_node pjxpidf_pres

Functions

pjxpidf_prespjxpidf_create (pj_pool_t *pool, const pj_str_t *uri)
pjxpidf_prespjxpidf_parse (pj_pool_t *pool, char *text, pj_size_t len)
int pjxpidf_print (pjxpidf_pres *pres, char *text, pj_size_t len)
pj_str_tpjxpidf_get_uri (pjxpidf_pres *pres)
pj_status_t pjxpidf_set_uri (pj_pool_t *pool, pjxpidf_pres *pres, const pj_str_t *uri)
pj_bool_t pjxpidf_get_status (pjxpidf_pres *pres)
pj_status_t pjxpidf_set_status (pjxpidf_pres *pres, pj_bool_t status)

Detailed Description

This is an old presence data format as described in: draft-rosenberg-impp-pidf-00.txt.

We won't support this format extensively here, as it seems there's not too many implementations support this anymore, as it shouldn't.


Typedef Documentation

Type definitions for XPIDF root document.


Function Documentation

pjxpidf_pres* pjxpidf_create ( pj_pool_t pool,
const pj_str_t uri 
)

Create a new XPIDF document.

Parameters:
pool Pool.
uri URI to set in the XPIDF document.
Returns:
XPIDF document.
pjxpidf_pres* pjxpidf_parse ( pj_pool_t pool,
char *  text,
pj_size_t  len 
)

Parse XPIDF document.

Parameters:
pool Pool.
text Input text.
len Length of input text.
Returns:
XPIDF document.
int pjxpidf_print ( pjxpidf_pres pres,
char *  text,
pj_size_t  len 
)

Print XPIDF document.

Parameters:
pres The XPIDF document to print.
text Buffer to place the output.
len Length of the buffer.
Returns:
The length printed.
pj_str_t* pjxpidf_get_uri ( pjxpidf_pres pres  ) 

Get URI in the XPIDF document

Parameters:
pres XPIDF document
Returns:
The URI, or an empty string.
pj_status_t pjxpidf_set_uri ( pj_pool_t pool,
pjxpidf_pres pres,
const pj_str_t uri 
)

Set the URI of the XPIDF document.

Parameters:
pool Pool.
pres The XPIDF document.
uri URI to set in the XPIDF document.
Returns:
Zero on success.
pj_bool_t pjxpidf_get_status ( pjxpidf_pres pres  ) 

Get presence status in the XPIDF document.

Parameters:
pres XPIDF document.
Returns:
True to indicate the contact is online.
pj_status_t pjxpidf_set_status ( pjxpidf_pres pres,
pj_bool_t  status 
)

Set presence status in the XPIDF document.

Parameters:
pres XPIDF document.
status Status to set, True for online, False for offline.
Returns:
Zero on success.

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.