pjsip_uri_vptr Struct Reference
[Generic URI]
#include <sip_uri.h>
Detailed Description
URI 'virtual' function table. All types of URI in this library (such as sip:, sips:, tel:, and name-addr) will have pointer to this table as their first struct member. This table provides polimorphic behaviour to the URI.
Field Documentation
Get URI scheme.
- Parameters:
-
- Returns:
- the URI scheme.
Get the URI object contained by this URI, or the URI itself if it doesn't contain another URI.
- Parameters:
-
Print URI components to the buffer, following the rule of which components are allowed for the context.
- Parameters:
-
| context | the context where the URI will be placed. |
| uri | the URI (self). |
| buf | the buffer. |
| size | the size of the buffer. |
- Returns:
- the length printed.
Compare two URIs according to the context.
- Parameters:
-
| context | the context. |
| uri1 | the first URI (self). |
| uri2 | the second URI. |
- Returns:
- PJ_SUCCESS if equal, or otherwise the error status which should point to the mismatch part.
Clone URI.
- Parameters:
-
| pool | the pool. |
| the | URI to clone (self). |
- Returns:
- new URI.
The documentation for this struct was generated from the following file: