123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- #ifndef __PJSIP_SIMPLE_RPID_H__
- #define __PJSIP_SIMPLE_RPID_H__
- #include <pjsip-simple/types.h>
- #include <pjsip-simple/pidf.h>
- PJ_BEGIN_DECL
- typedef enum pjrpid_activity
- {
-
- PJRPID_ACTIVITY_UNKNOWN,
-
- PJRPID_ACTIVITY_AWAY,
-
- PJRPID_ACTIVITY_BUSY
- } pjrpid_activity;
- typedef enum pjrpid_element_type
- {
-
- PJRPID_ELEMENT_TYPE_PERSON
- } pjrpid_element_type;
- typedef struct pjrpid_element
- {
-
- pjrpid_element_type type;
-
- pj_str_t id;
-
- pjrpid_activity activity;
-
- pj_str_t note;
- } pjrpid_element;
- PJ_DECL(void) pjrpid_element_dup(pj_pool_t *pool, pjrpid_element *dst,
- const pjrpid_element *src);
- PJ_DECL(pj_status_t) pjrpid_add_element(pjpidf_pres *pres,
- pj_pool_t *pool,
- unsigned options,
- const pjrpid_element *elem);
- PJ_DECL(pj_status_t) pjrpid_get_element(const pjpidf_pres *pres,
- pj_pool_t *pool,
- pjrpid_element *elem);
- PJ_END_DECL
- #endif
|