RPID/Rich Presence Extensions to PIDF (RFC 4480)
More...
This file provides tools for managing subset of RPID elements into PIDF document.
◆ pjrpid_activity
This enumeration describes subset of standard activities as described by RFC 4480, RPID: Rich Presence Extensions to the Presence Information Data Format (PIDF).
Enumerator |
---|
PJRPID_ACTIVITY_UNKNOWN | Activity is unknown. The activity would then be conceived in the "note" field.
|
PJRPID_ACTIVITY_AWAY | The person is away
|
PJRPID_ACTIVITY_BUSY | The person is busy
|
◆ pjrpid_element_type
This enumeration describes types of RPID element.
Enumerator |
---|
PJRPID_ELEMENT_TYPE_PERSON | RPID <person> element
|
◆ pjrpid_element_dup()
Duplicate RPID element.
- Parameters
-
pool | Pool. |
dst | Destination structure. |
src | Source structure. |
◆ pjrpid_add_element()
Add RPID element information into existing PIDF document. This will also add the appropriate XML namespace attributes into the presence's XML node, if the attributes are not already present, and also a <note> element to the first <tuple> element of the PIDF document, if a <note> element is not present.
- Parameters
-
pres | The PIDF presence document. |
pool | Pool. |
options | Currently unused, and must be zero. |
elem | RPID element information to be added into the PIDF document. |
- Returns
- PJ_SUCCESS on success.
◆ pjrpid_get_element()
Get RPID element information from PIDF document, if any.
- Parameters
-
pres | The PIDF document containing RPID elements. |
pool | Pool to duplicate the information. |
elem | Structure to receive the element information. |
- Returns
- PJ_SUCCESS if the document does contain RPID element and the information has been parsed successfully.
References PJ_END_DECL.