Support for XPIDF/Presence Information Data Format.
More...
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.
◆ pjxpidf_pres
Type definitions for XPIDF root document.
◆ pjxpidf_create()
Create a new XPIDF document.
- Parameters
-
pool | Pool. |
uri | URI to set in the XPIDF document. |
- Returns
- XPIDF document.
◆ pjxpidf_parse()
Parse XPIDF document.
Note that the input text buffer MUST be NULL terminated and have length at least len+1 (len MUST NOT include the NULL terminator).
- Parameters
-
pool | Pool. |
text | Input text, MUST be NULL terminated. |
len | Length of input text, NOT including the NULL terminator. |
- Returns
- XPIDF document.
◆ pjxpidf_print()
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.
◆ pjxpidf_get_uri()
Get URI in the XPIDF document
- Parameters
-
- Returns
- The URI, or an empty string.
◆ pjxpidf_set_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.
◆ pjxpidf_get_status()
Get presence status in the XPIDF document.
- Parameters
-
- Returns
- True to indicate the contact is online.
◆ pjxpidf_set_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.
References PJ_END_DECL.