Constructor
PurpleMediaCandidatenew
since: 2.6
Declaration [src]
PurpleMediaCandidate*
purple_media_candidate_new (
const gchar* foundation,
guint component_id,
PurpleMediaCandidateType type,
PurpleMediaNetworkProtocol proto,
const gchar* ip,
guint port
)
Parameters
foundation
-
Type:
const gchar*
The foundation of the candidate.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. component_id
-
Type:
guint
The component this candidate is for.
type
-
Type:
PurpleMediaCandidateType
The type of candidate.
proto
-
Type:
PurpleMediaNetworkProtocol
The protocol this component is for.
ip
-
Type:
const gchar*
The IP address of this component.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. port
-
Type:
guint
The network port.
Return value
Type: PurpleMediaCandidate
The newly created PurpleMediaCandidate instance.
The caller of the function takes ownership of the data, and is responsible for freeing it. |