sdp: mark symbols explicitly for export with GST_EXPORT

This commit is contained in:
Tim-Philipp Müller 2017-05-16 00:25:51 +01:00
parent 587cf82fc1
commit bb7e401cb3
2 changed files with 321 additions and 0 deletions

View file

@ -26,6 +26,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT
GType gst_mikey_message_get_type(void); GType gst_mikey_message_get_type(void);
#define GST_TYPE_MIKEY_MESSAGE (gst_mikey_message_get_type()) #define GST_TYPE_MIKEY_MESSAGE (gst_mikey_message_get_type())
@ -143,6 +144,7 @@ typedef struct {
typedef struct _GstMIKEYPayload GstMIKEYPayload; typedef struct _GstMIKEYPayload GstMIKEYPayload;
GST_EXPORT
GType gst_mikey_payload_get_type(void); GType gst_mikey_payload_get_type(void);
#define GST_TYPE_MIKEY_PAYLOAD (gst_mikey_payload_get_type()) #define GST_TYPE_MIKEY_PAYLOAD (gst_mikey_payload_get_type())
@ -162,6 +164,7 @@ struct _GstMIKEYPayload {
guint len; guint len;
}; };
GST_EXPORT
GstMIKEYPayload * gst_mikey_payload_new (GstMIKEYPayloadType type); GstMIKEYPayload * gst_mikey_payload_new (GstMIKEYPayloadType type);
/** /**
@ -255,12 +258,21 @@ typedef struct {
GArray *subpayloads; GArray *subpayloads;
} GstMIKEYPayloadKEMAC; } GstMIKEYPayloadKEMAC;
GST_EXPORT
gboolean gst_mikey_payload_kemac_set (GstMIKEYPayload *payload, gboolean gst_mikey_payload_kemac_set (GstMIKEYPayload *payload,
GstMIKEYEncAlg enc_alg, GstMIKEYEncAlg enc_alg,
GstMIKEYMacAlg mac_alg); GstMIKEYMacAlg mac_alg);
GST_EXPORT
guint gst_mikey_payload_kemac_get_n_sub (const GstMIKEYPayload *payload); guint gst_mikey_payload_kemac_get_n_sub (const GstMIKEYPayload *payload);
GST_EXPORT
const GstMIKEYPayload * gst_mikey_payload_kemac_get_sub (const GstMIKEYPayload *payload, guint idx); const GstMIKEYPayload * gst_mikey_payload_kemac_get_sub (const GstMIKEYPayload *payload, guint idx);
GST_EXPORT
gboolean gst_mikey_payload_kemac_remove_sub (GstMIKEYPayload *payload, guint idx); gboolean gst_mikey_payload_kemac_remove_sub (GstMIKEYPayload *payload, guint idx);
GST_EXPORT
gboolean gst_mikey_payload_kemac_add_sub (GstMIKEYPayload *payload, gboolean gst_mikey_payload_kemac_add_sub (GstMIKEYPayload *payload,
GstMIKEYPayload *newpay); GstMIKEYPayload *newpay);
@ -300,6 +312,7 @@ typedef struct {
guint8 *data; guint8 *data;
} GstMIKEYPayloadPKE; } GstMIKEYPayloadPKE;
GST_EXPORT
gboolean gst_mikey_payload_pke_set (GstMIKEYPayload *payload, gboolean gst_mikey_payload_pke_set (GstMIKEYPayload *payload,
GstMIKEYCacheType C, GstMIKEYCacheType C,
guint16 data_len, const guint8 *data); guint16 data_len, const guint8 *data);
@ -335,6 +348,7 @@ typedef struct {
guint8 *ts_value; guint8 *ts_value;
} GstMIKEYPayloadT; } GstMIKEYPayloadT;
GST_EXPORT
gboolean gst_mikey_payload_t_set (GstMIKEYPayload *payload, gboolean gst_mikey_payload_t_set (GstMIKEYPayload *payload,
GstMIKEYTSType type, const guint8 *ts_value); GstMIKEYTSType type, const guint8 *ts_value);
@ -416,12 +430,20 @@ typedef struct {
GArray *params; GArray *params;
} GstMIKEYPayloadSP; } GstMIKEYPayloadSP;
GST_EXPORT
gboolean gst_mikey_payload_sp_set (GstMIKEYPayload *payload, gboolean gst_mikey_payload_sp_set (GstMIKEYPayload *payload,
guint policy, GstMIKEYSecProto proto); guint policy, GstMIKEYSecProto proto);
GST_EXPORT
guint gst_mikey_payload_sp_get_n_params (const GstMIKEYPayload *payload); guint gst_mikey_payload_sp_get_n_params (const GstMIKEYPayload *payload);
GST_EXPORT
const GstMIKEYPayloadSPParam * const GstMIKEYPayloadSPParam *
gst_mikey_payload_sp_get_param (const GstMIKEYPayload *payload, guint idx); gst_mikey_payload_sp_get_param (const GstMIKEYPayload *payload, guint idx);
GST_EXPORT
gboolean gst_mikey_payload_sp_remove_param (GstMIKEYPayload *payload, guint idx); gboolean gst_mikey_payload_sp_remove_param (GstMIKEYPayload *payload, guint idx);
GST_EXPORT
gboolean gst_mikey_payload_sp_add_param (GstMIKEYPayload *payload, gboolean gst_mikey_payload_sp_add_param (GstMIKEYPayload *payload,
guint8 type, guint8 len, const guint8 *val); guint8 type, guint8 len, const guint8 *val);
@ -440,6 +462,7 @@ typedef struct {
guint8 *rand; guint8 *rand;
} GstMIKEYPayloadRAND; } GstMIKEYPayloadRAND;
GST_EXPORT
gboolean gst_mikey_payload_rand_set (GstMIKEYPayload *payload, gboolean gst_mikey_payload_rand_set (GstMIKEYPayload *payload,
guint8 len, const guint8 *rand); guint8 len, const guint8 *rand);
@ -499,13 +522,20 @@ typedef struct {
guint8 *kv_data[2]; guint8 *kv_data[2];
} GstMIKEYPayloadKeyData; } GstMIKEYPayloadKeyData;
GST_EXPORT
gboolean gst_mikey_payload_key_data_set_key (GstMIKEYPayload *payload, gboolean gst_mikey_payload_key_data_set_key (GstMIKEYPayload *payload,
GstMIKEYKeyDataType key_type, GstMIKEYKeyDataType key_type,
guint16 key_len, const guint8 *key_data); guint16 key_len, const guint8 *key_data);
GST_EXPORT
gboolean gst_mikey_payload_key_data_set_salt (GstMIKEYPayload *payload, gboolean gst_mikey_payload_key_data_set_salt (GstMIKEYPayload *payload,
guint16 salt_len, const guint8 *salt_data); guint16 salt_len, const guint8 *salt_data);
GST_EXPORT
gboolean gst_mikey_payload_key_data_set_spi (GstMIKEYPayload *payload, gboolean gst_mikey_payload_key_data_set_spi (GstMIKEYPayload *payload,
guint8 spi_len, const guint8 *spi_data); guint8 spi_len, const guint8 *spi_data);
GST_EXPORT
gboolean gst_mikey_payload_key_data_set_interval (GstMIKEYPayload *payload, gboolean gst_mikey_payload_key_data_set_interval (GstMIKEYPayload *payload,
guint8 vf_len, const guint8 *vf_data, guint8 vf_len, const guint8 *vf_data,
guint8 vt_len, const guint8 *vt_data); guint8 vt_len, const guint8 *vt_data);
@ -540,15 +570,28 @@ struct _GstMIKEYMessage
}; };
GST_EXPORT
GstMIKEYMessage * gst_mikey_message_new (void); GstMIKEYMessage * gst_mikey_message_new (void);
GST_EXPORT
GstMIKEYMessage * gst_mikey_message_new_from_data (gconstpointer data, gsize size, GstMIKEYMessage * gst_mikey_message_new_from_data (gconstpointer data, gsize size,
GstMIKEYDecryptInfo *info, GError **error); GstMIKEYDecryptInfo *info, GError **error);
GST_EXPORT
GstMIKEYMessage * gst_mikey_message_new_from_bytes (GBytes *bytes, GstMIKEYDecryptInfo *info, GstMIKEYMessage * gst_mikey_message_new_from_bytes (GBytes *bytes, GstMIKEYDecryptInfo *info,
GError **error); GError **error);
GST_EXPORT
GBytes * gst_mikey_message_to_bytes (GstMIKEYMessage *msg, GstMIKEYEncryptInfo *info, GBytes * gst_mikey_message_to_bytes (GstMIKEYMessage *msg, GstMIKEYEncryptInfo *info,
GError **error); GError **error);
GST_EXPORT
GstMIKEYMessage * gst_mikey_message_new_from_caps (GstCaps *caps); GstMIKEYMessage * gst_mikey_message_new_from_caps (GstCaps *caps);
GST_EXPORT
gboolean gst_mikey_message_to_caps (const GstMIKEYMessage *msg, GstCaps *caps); gboolean gst_mikey_message_to_caps (const GstMIKEYMessage *msg, GstCaps *caps);
GST_EXPORT
gchar * gst_mikey_message_base64_encode (GstMIKEYMessage* msg); gchar * gst_mikey_message_base64_encode (GstMIKEYMessage* msg);
/** /**
@ -598,38 +641,67 @@ gst_mikey_message_copy (const GstMIKEYMessage * message)
} }
GST_EXPORT
gboolean gst_mikey_message_set_info (GstMIKEYMessage *msg, gboolean gst_mikey_message_set_info (GstMIKEYMessage *msg,
guint8 version, GstMIKEYType type, gboolean V, guint8 version, GstMIKEYType type, gboolean V,
GstMIKEYPRFFunc prf_func, guint32 CSB_id, GstMIKEYPRFFunc prf_func, guint32 CSB_id,
GstMIKEYMapType map_type); GstMIKEYMapType map_type);
GST_EXPORT
guint gst_mikey_message_get_n_cs (const GstMIKEYMessage *msg); guint gst_mikey_message_get_n_cs (const GstMIKEYMessage *msg);
/* SRTP crypto sessions */ /* SRTP crypto sessions */
GST_EXPORT
const GstMIKEYMapSRTP * gst_mikey_message_get_cs_srtp (const GstMIKEYMessage *msg, guint idx); const GstMIKEYMapSRTP * gst_mikey_message_get_cs_srtp (const GstMIKEYMessage *msg, guint idx);
GST_EXPORT
gboolean gst_mikey_message_insert_cs_srtp (GstMIKEYMessage *msg, gint idx, gboolean gst_mikey_message_insert_cs_srtp (GstMIKEYMessage *msg, gint idx,
const GstMIKEYMapSRTP *map); const GstMIKEYMapSRTP *map);
GST_EXPORT
gboolean gst_mikey_message_replace_cs_srtp (GstMIKEYMessage *msg, gint idx, gboolean gst_mikey_message_replace_cs_srtp (GstMIKEYMessage *msg, gint idx,
const GstMIKEYMapSRTP *map); const GstMIKEYMapSRTP *map);
GST_EXPORT
gboolean gst_mikey_message_remove_cs_srtp (GstMIKEYMessage *msg, gint idx); gboolean gst_mikey_message_remove_cs_srtp (GstMIKEYMessage *msg, gint idx);
GST_EXPORT
gboolean gst_mikey_message_add_cs_srtp (GstMIKEYMessage *msg, gboolean gst_mikey_message_add_cs_srtp (GstMIKEYMessage *msg,
guint8 policy, guint32 ssrc, guint32 roc); guint8 policy, guint32 ssrc, guint32 roc);
/* adding/retrieving payloads */ /* adding/retrieving payloads */
GST_EXPORT
guint gst_mikey_message_get_n_payloads (const GstMIKEYMessage *msg); guint gst_mikey_message_get_n_payloads (const GstMIKEYMessage *msg);
GST_EXPORT
const GstMIKEYPayload * gst_mikey_message_get_payload (const GstMIKEYMessage *msg, guint idx); const GstMIKEYPayload * gst_mikey_message_get_payload (const GstMIKEYMessage *msg, guint idx);
GST_EXPORT
const GstMIKEYPayload * gst_mikey_message_find_payload (const GstMIKEYMessage *msg, const GstMIKEYPayload * gst_mikey_message_find_payload (const GstMIKEYMessage *msg,
GstMIKEYPayloadType type, guint nth); GstMIKEYPayloadType type, guint nth);
GST_EXPORT
gboolean gst_mikey_message_remove_payload (GstMIKEYMessage *msg, guint idx); gboolean gst_mikey_message_remove_payload (GstMIKEYMessage *msg, guint idx);
GST_EXPORT
gboolean gst_mikey_message_insert_payload (GstMIKEYMessage *msg, guint idx, gboolean gst_mikey_message_insert_payload (GstMIKEYMessage *msg, guint idx,
GstMIKEYPayload *payload); GstMIKEYPayload *payload);
GST_EXPORT
gboolean gst_mikey_message_add_payload (GstMIKEYMessage *msg, gboolean gst_mikey_message_add_payload (GstMIKEYMessage *msg,
GstMIKEYPayload *payload); GstMIKEYPayload *payload);
GST_EXPORT
gboolean gst_mikey_message_replace_payload (GstMIKEYMessage *msg, guint idx, gboolean gst_mikey_message_replace_payload (GstMIKEYMessage *msg, guint idx,
GstMIKEYPayload *payload); GstMIKEYPayload *payload);
/* Key data transport payload (KEMAC) */ /* Key data transport payload (KEMAC) */
/* Envelope data payload (PKE) */ /* Envelope data payload (PKE) */
GST_EXPORT
gboolean gst_mikey_message_add_pke (GstMIKEYMessage *msg, gboolean gst_mikey_message_add_pke (GstMIKEYMessage *msg,
GstMIKEYCacheType C, GstMIKEYCacheType C,
guint16 data_len, const guint8 *data); guint16 data_len, const guint8 *data);
@ -637,8 +709,12 @@ gboolean gst_mikey_message_add_pke (GstMIKEYMessage
/* Signature payload (SIGN) */ /* Signature payload (SIGN) */
/* Timestamp payload (T) */ /* Timestamp payload (T) */
GST_EXPORT
gboolean gst_mikey_message_add_t (GstMIKEYMessage *msg, gboolean gst_mikey_message_add_t (GstMIKEYMessage *msg,
GstMIKEYTSType type, const guint8 *ts_value); GstMIKEYTSType type, const guint8 *ts_value);
GST_EXPORT
gboolean gst_mikey_message_add_t_now_ntp_utc (GstMIKEYMessage *msg); gboolean gst_mikey_message_add_t_now_ntp_utc (GstMIKEYMessage *msg);
/* ID payload (ID) */ /* ID payload (ID) */
/* Certificate Payload (CERT) */ /* Certificate Payload (CERT) */
@ -646,8 +722,12 @@ gboolean gst_mikey_message_add_t_now_ntp_utc (GstMIKEYMessage
/* Ver msg payload (V) */ /* Ver msg payload (V) */
/* Security Policy payload (SP)*/ /* Security Policy payload (SP)*/
/* RAND payload (RAND) */ /* RAND payload (RAND) */
GST_EXPORT
gboolean gst_mikey_message_add_rand (GstMIKEYMessage *msg, gboolean gst_mikey_message_add_rand (GstMIKEYMessage *msg,
guint8 len, const guint8 *rand); guint8 len, const guint8 *rand);
GST_EXPORT
gboolean gst_mikey_message_add_rand_len (GstMIKEYMessage *msg, guint8 len); gboolean gst_mikey_message_add_rand_len (GstMIKEYMessage *msg, guint8 len);
/* Error payload (ERR) */ /* Error payload (ERR) */

View file

@ -97,11 +97,14 @@ typedef struct {
guint addr_number; guint addr_number;
} GstSDPConnection; } GstSDPConnection;
GST_EXPORT
GstSDPResult gst_sdp_connection_set (GstSDPConnection *conn, GstSDPResult gst_sdp_connection_set (GstSDPConnection *conn,
const gchar *nettype, const gchar *nettype,
const gchar *addrtype, const gchar *addrtype,
const gchar *address, const gchar *address,
guint ttl, guint addr_number); guint ttl, guint addr_number);
GST_EXPORT
GstSDPResult gst_sdp_connection_clear (GstSDPConnection *conn); GstSDPResult gst_sdp_connection_clear (GstSDPConnection *conn);
@ -157,8 +160,11 @@ typedef struct {
guint bandwidth; guint bandwidth;
} GstSDPBandwidth; } GstSDPBandwidth;
GST_EXPORT
GstSDPResult gst_sdp_bandwidth_set (GstSDPBandwidth *bw, const gchar *bwtype, GstSDPResult gst_sdp_bandwidth_set (GstSDPBandwidth *bw, const gchar *bwtype,
guint bandwidth); guint bandwidth);
GST_EXPORT
GstSDPResult gst_sdp_bandwidth_clear (GstSDPBandwidth *bw); GstSDPResult gst_sdp_bandwidth_clear (GstSDPBandwidth *bw);
/** /**
@ -178,8 +184,11 @@ typedef struct {
GArray *repeat; GArray *repeat;
} GstSDPTime; } GstSDPTime;
GST_EXPORT
GstSDPResult gst_sdp_time_set (GstSDPTime *t, const gchar *start, GstSDPResult gst_sdp_time_set (GstSDPTime *t, const gchar *start,
const gchar *stop, const gchar **repeat); const gchar *stop, const gchar **repeat);
GST_EXPORT
GstSDPResult gst_sdp_time_clear (GstSDPTime *t); GstSDPResult gst_sdp_time_clear (GstSDPTime *t);
/** /**
@ -196,8 +205,11 @@ typedef struct {
gchar *typed_time; gchar *typed_time;
} GstSDPZone; } GstSDPZone;
GST_EXPORT
GstSDPResult gst_sdp_zone_set (GstSDPZone *zone, const gchar *adj_time, GstSDPResult gst_sdp_zone_set (GstSDPZone *zone, const gchar *adj_time,
const gchar *typed_time); const gchar *typed_time);
GST_EXPORT
GstSDPResult gst_sdp_zone_clear (GstSDPZone *zone); GstSDPResult gst_sdp_zone_clear (GstSDPZone *zone);
@ -226,8 +238,11 @@ typedef struct {
gchar *value; gchar *value;
} GstSDPAttribute; } GstSDPAttribute;
GST_EXPORT
GstSDPResult gst_sdp_attribute_set (GstSDPAttribute *attr, const gchar *key, GstSDPResult gst_sdp_attribute_set (GstSDPAttribute *attr, const gchar *key,
const gchar *value); const gchar *value);
GST_EXPORT
GstSDPResult gst_sdp_attribute_clear (GstSDPAttribute *attr); GstSDPResult gst_sdp_attribute_clear (GstSDPAttribute *attr);
/** /**
@ -295,6 +310,7 @@ typedef struct {
} GstSDPMessage; } GstSDPMessage;
GST_EXPORT
GType gst_sdp_message_get_type (void); GType gst_sdp_message_get_type (void);
#define GST_TYPE_SDP_MESSAGE (gst_sdp_message_get_type()) #define GST_TYPE_SDP_MESSAGE (gst_sdp_message_get_type())
@ -302,173 +318,352 @@ GType gst_sdp_message_get_type (void);
#define GST_SDP_MESSAGE(object) (GST_SDP_MESSAGE_CAST(object)) #define GST_SDP_MESSAGE(object) (GST_SDP_MESSAGE_CAST(object))
/* Session descriptions */ /* Session descriptions */
GST_EXPORT
GstSDPResult gst_sdp_message_new (GstSDPMessage **msg); GstSDPResult gst_sdp_message_new (GstSDPMessage **msg);
GST_EXPORT
GstSDPResult gst_sdp_message_init (GstSDPMessage *msg); GstSDPResult gst_sdp_message_init (GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_uninit (GstSDPMessage *msg); GstSDPResult gst_sdp_message_uninit (GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_free (GstSDPMessage *msg); GstSDPResult gst_sdp_message_free (GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_copy (const GstSDPMessage *msg, GstSDPMessage **copy); GstSDPResult gst_sdp_message_copy (const GstSDPMessage *msg, GstSDPMessage **copy);
GST_EXPORT
GstSDPResult gst_sdp_message_parse_buffer (const guint8 *data, guint size, GstSDPMessage *msg); GstSDPResult gst_sdp_message_parse_buffer (const guint8 *data, guint size, GstSDPMessage *msg);
GST_EXPORT
gchar* gst_sdp_message_as_text (const GstSDPMessage *msg); gchar* gst_sdp_message_as_text (const GstSDPMessage *msg);
/* convert from/to uri */ /* convert from/to uri */
GST_EXPORT
GstSDPResult gst_sdp_message_parse_uri (const gchar *uri, GstSDPMessage *msg); GstSDPResult gst_sdp_message_parse_uri (const gchar *uri, GstSDPMessage *msg);
GST_EXPORT
gchar* gst_sdp_message_as_uri (const gchar *scheme, const GstSDPMessage *msg); gchar* gst_sdp_message_as_uri (const gchar *scheme, const GstSDPMessage *msg);
/* utils */ /* utils */
GST_EXPORT
gboolean gst_sdp_address_is_multicast (const gchar *nettype, const gchar *addrtype, gboolean gst_sdp_address_is_multicast (const gchar *nettype, const gchar *addrtype,
const gchar *addr); const gchar *addr);
/* v=.. */ /* v=.. */
GST_EXPORT
const gchar* gst_sdp_message_get_version (const GstSDPMessage *msg); const gchar* gst_sdp_message_get_version (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_version (GstSDPMessage *msg, const gchar *version); GstSDPResult gst_sdp_message_set_version (GstSDPMessage *msg, const gchar *version);
/* o=<username> <sess-id> <sess-version> <nettype> <addrtype> <unicast-address> */ /* o=<username> <sess-id> <sess-version> <nettype> <addrtype> <unicast-address> */
GST_EXPORT
const GstSDPOrigin* gst_sdp_message_get_origin (const GstSDPMessage *msg); const GstSDPOrigin* gst_sdp_message_get_origin (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_origin (GstSDPMessage *msg, const gchar *username, GstSDPResult gst_sdp_message_set_origin (GstSDPMessage *msg, const gchar *username,
const gchar *sess_id, const gchar *sess_version, const gchar *sess_id, const gchar *sess_version,
const gchar *nettype, const gchar *addrtype, const gchar *nettype, const gchar *addrtype,
const gchar *addr); const gchar *addr);
/* s=<session name> */ /* s=<session name> */
GST_EXPORT
const gchar* gst_sdp_message_get_session_name (const GstSDPMessage *msg); const gchar* gst_sdp_message_get_session_name (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_session_name (GstSDPMessage *msg, const gchar *session_name); GstSDPResult gst_sdp_message_set_session_name (GstSDPMessage *msg, const gchar *session_name);
/* i=<session description> */ /* i=<session description> */
GST_EXPORT
const gchar* gst_sdp_message_get_information (const GstSDPMessage *msg); const gchar* gst_sdp_message_get_information (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_information (GstSDPMessage *msg, const gchar *information); GstSDPResult gst_sdp_message_set_information (GstSDPMessage *msg, const gchar *information);
/* u=<uri> */ /* u=<uri> */
GST_EXPORT
const gchar* gst_sdp_message_get_uri (const GstSDPMessage *msg); const gchar* gst_sdp_message_get_uri (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_uri (GstSDPMessage *msg, const gchar *uri); GstSDPResult gst_sdp_message_set_uri (GstSDPMessage *msg, const gchar *uri);
/* e=<email-address> */ /* e=<email-address> */
GST_EXPORT
guint gst_sdp_message_emails_len (const GstSDPMessage *msg); guint gst_sdp_message_emails_len (const GstSDPMessage *msg);
GST_EXPORT
const gchar* gst_sdp_message_get_email (const GstSDPMessage *msg, guint idx); const gchar* gst_sdp_message_get_email (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_email (GstSDPMessage *msg, gint idx, GstSDPResult gst_sdp_message_insert_email (GstSDPMessage *msg, gint idx,
const gchar *email); const gchar *email);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_email (GstSDPMessage *msg, guint idx, GstSDPResult gst_sdp_message_replace_email (GstSDPMessage *msg, guint idx,
const gchar *email); const gchar *email);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_email (GstSDPMessage *msg, guint idx); GstSDPResult gst_sdp_message_remove_email (GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_email (GstSDPMessage *msg, const gchar *email); GstSDPResult gst_sdp_message_add_email (GstSDPMessage *msg, const gchar *email);
/* p=<phone-number> */ /* p=<phone-number> */
GST_EXPORT
guint gst_sdp_message_phones_len (const GstSDPMessage *msg); guint gst_sdp_message_phones_len (const GstSDPMessage *msg);
GST_EXPORT
const gchar* gst_sdp_message_get_phone (const GstSDPMessage *msg, guint idx); const gchar* gst_sdp_message_get_phone (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_phone (GstSDPMessage *msg, gint idx, GstSDPResult gst_sdp_message_insert_phone (GstSDPMessage *msg, gint idx,
const gchar *phone); const gchar *phone);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_phone (GstSDPMessage *msg, guint idx, GstSDPResult gst_sdp_message_replace_phone (GstSDPMessage *msg, guint idx,
const gchar *phone); const gchar *phone);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_phone (GstSDPMessage *msg, guint idx); GstSDPResult gst_sdp_message_remove_phone (GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_phone (GstSDPMessage *msg, const gchar *phone); GstSDPResult gst_sdp_message_add_phone (GstSDPMessage *msg, const gchar *phone);
/* c=<nettype> <addrtype> <connection-address>[/<ttl>][/<number of addresses>] */ /* c=<nettype> <addrtype> <connection-address>[/<ttl>][/<number of addresses>] */
GST_EXPORT
const GstSDPConnection* gst_sdp_message_get_connection (const GstSDPMessage *msg); const GstSDPConnection* gst_sdp_message_get_connection (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_connection (GstSDPMessage *msg, const gchar *nettype, GstSDPResult gst_sdp_message_set_connection (GstSDPMessage *msg, const gchar *nettype,
const gchar *addrtype, const gchar *address, const gchar *addrtype, const gchar *address,
guint ttl, guint addr_number); guint ttl, guint addr_number);
/* b=<bwtype>:<bandwidth> */ /* b=<bwtype>:<bandwidth> */
GST_EXPORT
guint gst_sdp_message_bandwidths_len (const GstSDPMessage *msg); guint gst_sdp_message_bandwidths_len (const GstSDPMessage *msg);
GST_EXPORT
const GstSDPBandwidth* gst_sdp_message_get_bandwidth (const GstSDPMessage *msg, guint idx); const GstSDPBandwidth* gst_sdp_message_get_bandwidth (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_bandwidth (GstSDPMessage * msg, gint idx, GstSDPResult gst_sdp_message_insert_bandwidth (GstSDPMessage * msg, gint idx,
GstSDPBandwidth * bw); GstSDPBandwidth * bw);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_bandwidth (GstSDPMessage * msg, guint idx, GstSDPResult gst_sdp_message_replace_bandwidth (GstSDPMessage * msg, guint idx,
GstSDPBandwidth * bw); GstSDPBandwidth * bw);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_bandwidth (GstSDPMessage * msg, guint idx); GstSDPResult gst_sdp_message_remove_bandwidth (GstSDPMessage * msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_bandwidth (GstSDPMessage *msg, const gchar *bwtype, GstSDPResult gst_sdp_message_add_bandwidth (GstSDPMessage *msg, const gchar *bwtype,
guint bandwidth); guint bandwidth);
/* t=<start-time> <stop-time> and /* t=<start-time> <stop-time> and
* r=<repeat interval> <active duration> <offsets from start-time> */ * r=<repeat interval> <active duration> <offsets from start-time> */
GST_EXPORT
guint gst_sdp_message_times_len (const GstSDPMessage *msg); guint gst_sdp_message_times_len (const GstSDPMessage *msg);
GST_EXPORT
const GstSDPTime* gst_sdp_message_get_time (const GstSDPMessage *msg, guint idx); const GstSDPTime* gst_sdp_message_get_time (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_time (GstSDPMessage *msg, gint idx, GstSDPResult gst_sdp_message_insert_time (GstSDPMessage *msg, gint idx,
GstSDPTime *t); GstSDPTime *t);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_time (GstSDPMessage *msg, guint idx, GstSDPResult gst_sdp_message_replace_time (GstSDPMessage *msg, guint idx,
GstSDPTime *t); GstSDPTime *t);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_time (GstSDPMessage *msg, guint idx); GstSDPResult gst_sdp_message_remove_time (GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_time (GstSDPMessage *msg, const gchar *start, GstSDPResult gst_sdp_message_add_time (GstSDPMessage *msg, const gchar *start,
const gchar *stop, const gchar **repeat); const gchar *stop, const gchar **repeat);
/* z=<adjustment time> <offset> <adjustment time> <offset> .... */ /* z=<adjustment time> <offset> <adjustment time> <offset> .... */
GST_EXPORT
guint gst_sdp_message_zones_len (const GstSDPMessage *msg); guint gst_sdp_message_zones_len (const GstSDPMessage *msg);
GST_EXPORT
const GstSDPZone* gst_sdp_message_get_zone (const GstSDPMessage *msg, guint idx); const GstSDPZone* gst_sdp_message_get_zone (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_zone (GstSDPMessage *msg, gint idx, GstSDPResult gst_sdp_message_insert_zone (GstSDPMessage *msg, gint idx,
GstSDPZone *zone); GstSDPZone *zone);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_zone (GstSDPMessage *msg, guint idx, GstSDPResult gst_sdp_message_replace_zone (GstSDPMessage *msg, guint idx,
GstSDPZone *zone); GstSDPZone *zone);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_zone (GstSDPMessage *msg, guint idx); GstSDPResult gst_sdp_message_remove_zone (GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_zone (GstSDPMessage *msg, const gchar *adj_time, GstSDPResult gst_sdp_message_add_zone (GstSDPMessage *msg, const gchar *adj_time,
const gchar *typed_time); const gchar *typed_time);
/* k=<method>[:<encryption key>] */ /* k=<method>[:<encryption key>] */
GST_EXPORT
const GstSDPKey* gst_sdp_message_get_key (const GstSDPMessage *msg); const GstSDPKey* gst_sdp_message_get_key (const GstSDPMessage *msg);
GST_EXPORT
GstSDPResult gst_sdp_message_set_key (GstSDPMessage *msg, const gchar *type, GstSDPResult gst_sdp_message_set_key (GstSDPMessage *msg, const gchar *type,
const gchar *data); const gchar *data);
/* a=... */ /* a=... */
GST_EXPORT
guint gst_sdp_message_attributes_len (const GstSDPMessage *msg); guint gst_sdp_message_attributes_len (const GstSDPMessage *msg);
GST_EXPORT
const GstSDPAttribute* gst_sdp_message_get_attribute (const GstSDPMessage *msg, guint idx); const GstSDPAttribute* gst_sdp_message_get_attribute (const GstSDPMessage *msg, guint idx);
GST_EXPORT
const gchar* gst_sdp_message_get_attribute_val (const GstSDPMessage *msg, const gchar* gst_sdp_message_get_attribute_val (const GstSDPMessage *msg,
const gchar *key); const gchar *key);
GST_EXPORT
const gchar* gst_sdp_message_get_attribute_val_n (const GstSDPMessage *msg, const gchar* gst_sdp_message_get_attribute_val_n (const GstSDPMessage *msg,
const gchar *key, guint nth); const gchar *key, guint nth);
GST_EXPORT
GstSDPResult gst_sdp_message_insert_attribute (GstSDPMessage *msg, gint idx, GstSDPResult gst_sdp_message_insert_attribute (GstSDPMessage *msg, gint idx,
GstSDPAttribute *attr); GstSDPAttribute *attr);
GST_EXPORT
GstSDPResult gst_sdp_message_replace_attribute (GstSDPMessage *msg, guint idx, GstSDPResult gst_sdp_message_replace_attribute (GstSDPMessage *msg, guint idx,
GstSDPAttribute *attr); GstSDPAttribute *attr);
GST_EXPORT
GstSDPResult gst_sdp_message_remove_attribute (GstSDPMessage *msg, guint idx); GstSDPResult gst_sdp_message_remove_attribute (GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_attribute (GstSDPMessage *msg, const gchar *key, GstSDPResult gst_sdp_message_add_attribute (GstSDPMessage *msg, const gchar *key,
const gchar *value); const gchar *value);
/* m=.. sections */ /* m=.. sections */
GST_EXPORT
guint gst_sdp_message_medias_len (const GstSDPMessage *msg); guint gst_sdp_message_medias_len (const GstSDPMessage *msg);
GST_EXPORT
const GstSDPMedia* gst_sdp_message_get_media (const GstSDPMessage *msg, guint idx); const GstSDPMedia* gst_sdp_message_get_media (const GstSDPMessage *msg, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_message_add_media (GstSDPMessage *msg, GstSDPMedia *media); GstSDPResult gst_sdp_message_add_media (GstSDPMessage *msg, GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_message_dump (const GstSDPMessage *msg); GstSDPResult gst_sdp_message_dump (const GstSDPMessage *msg);
/* Media descriptions */ /* Media descriptions */
GST_EXPORT
GstSDPResult gst_sdp_media_new (GstSDPMedia **media); GstSDPResult gst_sdp_media_new (GstSDPMedia **media);
GST_EXPORT
GstSDPResult gst_sdp_media_init (GstSDPMedia *media); GstSDPResult gst_sdp_media_init (GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_uninit (GstSDPMedia *media); GstSDPResult gst_sdp_media_uninit (GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_free (GstSDPMedia *media); GstSDPResult gst_sdp_media_free (GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_copy (const GstSDPMedia *media, GstSDPMedia **copy); GstSDPResult gst_sdp_media_copy (const GstSDPMedia *media, GstSDPMedia **copy);
GST_EXPORT
gchar* gst_sdp_media_as_text (const GstSDPMedia *media); gchar* gst_sdp_media_as_text (const GstSDPMedia *media);
/* m=<media> <port>/<number of ports> <proto> <fmt> ... */ /* m=<media> <port>/<number of ports> <proto> <fmt> ... */
GST_EXPORT
const gchar* gst_sdp_media_get_media (const GstSDPMedia *media); const gchar* gst_sdp_media_get_media (const GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_set_media (GstSDPMedia *media, const gchar *med); GstSDPResult gst_sdp_media_set_media (GstSDPMedia *media, const gchar *med);
GST_EXPORT
guint gst_sdp_media_get_port (const GstSDPMedia *media); guint gst_sdp_media_get_port (const GstSDPMedia *media);
GST_EXPORT
guint gst_sdp_media_get_num_ports (const GstSDPMedia *media); guint gst_sdp_media_get_num_ports (const GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_set_port_info (GstSDPMedia *media, guint port, GstSDPResult gst_sdp_media_set_port_info (GstSDPMedia *media, guint port,
guint num_ports); guint num_ports);
GST_EXPORT
const gchar* gst_sdp_media_get_proto (const GstSDPMedia *media); const gchar* gst_sdp_media_get_proto (const GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_set_proto (GstSDPMedia *media, const gchar *proto); GstSDPResult gst_sdp_media_set_proto (GstSDPMedia *media, const gchar *proto);
GST_EXPORT
guint gst_sdp_media_formats_len (const GstSDPMedia *media); guint gst_sdp_media_formats_len (const GstSDPMedia *media);
GST_EXPORT
const gchar* gst_sdp_media_get_format (const GstSDPMedia *media, guint idx); const gchar* gst_sdp_media_get_format (const GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_insert_format (GstSDPMedia *media, gint idx, GstSDPResult gst_sdp_media_insert_format (GstSDPMedia *media, gint idx,
const gchar *format); const gchar *format);
GST_EXPORT
GstSDPResult gst_sdp_media_replace_format (GstSDPMedia *media, guint idx, GstSDPResult gst_sdp_media_replace_format (GstSDPMedia *media, guint idx,
const gchar *format); const gchar *format);
GST_EXPORT
GstSDPResult gst_sdp_media_remove_format (GstSDPMedia *media, guint idx); GstSDPResult gst_sdp_media_remove_format (GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_add_format (GstSDPMedia *media, const gchar *format); GstSDPResult gst_sdp_media_add_format (GstSDPMedia *media, const gchar *format);
/* i=<session description> */ /* i=<session description> */
GST_EXPORT
const gchar* gst_sdp_media_get_information (const GstSDPMedia *media); const gchar* gst_sdp_media_get_information (const GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_set_information (GstSDPMedia *media, const gchar *information); GstSDPResult gst_sdp_media_set_information (GstSDPMedia *media, const gchar *information);
/* c=<nettype> <addrtype> <connection-address>[/<ttl>][/<number of addresses>] */ /* c=<nettype> <addrtype> <connection-address>[/<ttl>][/<number of addresses>] */
GST_EXPORT
guint gst_sdp_media_connections_len (const GstSDPMedia *media); guint gst_sdp_media_connections_len (const GstSDPMedia *media);
GST_EXPORT
const GstSDPConnection* gst_sdp_media_get_connection (const GstSDPMedia *media, guint idx); const GstSDPConnection* gst_sdp_media_get_connection (const GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_insert_connection (GstSDPMedia *media, gint idx, GstSDPResult gst_sdp_media_insert_connection (GstSDPMedia *media, gint idx,
GstSDPConnection *conn); GstSDPConnection *conn);
GST_EXPORT
GstSDPResult gst_sdp_media_replace_connection (GstSDPMedia *media, guint idx, GstSDPResult gst_sdp_media_replace_connection (GstSDPMedia *media, guint idx,
GstSDPConnection *conn); GstSDPConnection *conn);
GST_EXPORT
GstSDPResult gst_sdp_media_remove_connection (GstSDPMedia *media, guint idx); GstSDPResult gst_sdp_media_remove_connection (GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_add_connection (GstSDPMedia *media, GstSDPResult gst_sdp_media_add_connection (GstSDPMedia *media,
const gchar *nettype, const gchar *nettype,
const gchar *addrtype, const gchar *addrtype,
@ -476,39 +671,85 @@ GstSDPResult gst_sdp_media_add_connection (GstSDPMedia *media,
guint ttl, guint addr_number); guint ttl, guint addr_number);
/* b=<bwtype>:<bandwidth> */ /* b=<bwtype>:<bandwidth> */
GST_EXPORT
guint gst_sdp_media_bandwidths_len (const GstSDPMedia *media); guint gst_sdp_media_bandwidths_len (const GstSDPMedia *media);
GST_EXPORT
const GstSDPBandwidth* gst_sdp_media_get_bandwidth (const GstSDPMedia *media, guint idx); const GstSDPBandwidth* gst_sdp_media_get_bandwidth (const GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_insert_bandwidth (GstSDPMedia *media, gint idx, GstSDPResult gst_sdp_media_insert_bandwidth (GstSDPMedia *media, gint idx,
GstSDPBandwidth *bw); GstSDPBandwidth *bw);
GST_EXPORT
GstSDPResult gst_sdp_media_replace_bandwidth (GstSDPMedia *media, guint idx, GstSDPResult gst_sdp_media_replace_bandwidth (GstSDPMedia *media, guint idx,
GstSDPBandwidth *bw); GstSDPBandwidth *bw);
GST_EXPORT
GstSDPResult gst_sdp_media_remove_bandwidth (GstSDPMedia *media, guint idx); GstSDPResult gst_sdp_media_remove_bandwidth (GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_add_bandwidth (GstSDPMedia *media, const gchar *bwtype, GstSDPResult gst_sdp_media_add_bandwidth (GstSDPMedia *media, const gchar *bwtype,
guint bandwidth); guint bandwidth);
/* k=<method>:<encryption key> */ /* k=<method>:<encryption key> */
GST_EXPORT
const GstSDPKey* gst_sdp_media_get_key (const GstSDPMedia *media); const GstSDPKey* gst_sdp_media_get_key (const GstSDPMedia *media);
GST_EXPORT
GstSDPResult gst_sdp_media_set_key (GstSDPMedia *media, const gchar *type, GstSDPResult gst_sdp_media_set_key (GstSDPMedia *media, const gchar *type,
const gchar *data); const gchar *data);
/* a=... */ /* a=... */
GST_EXPORT
guint gst_sdp_media_attributes_len (const GstSDPMedia *media); guint gst_sdp_media_attributes_len (const GstSDPMedia *media);
GST_EXPORT
const GstSDPAttribute * gst_sdp_media_get_attribute (const GstSDPMedia *media, guint idx); const GstSDPAttribute * gst_sdp_media_get_attribute (const GstSDPMedia *media, guint idx);
GST_EXPORT
const gchar* gst_sdp_media_get_attribute_val (const GstSDPMedia *media, const gchar *key); const gchar* gst_sdp_media_get_attribute_val (const GstSDPMedia *media, const gchar *key);
GST_EXPORT
const gchar* gst_sdp_media_get_attribute_val_n (const GstSDPMedia *media, const gchar *key, const gchar* gst_sdp_media_get_attribute_val_n (const GstSDPMedia *media, const gchar *key,
guint nth); guint nth);
GST_EXPORT
GstSDPResult gst_sdp_media_insert_attribute (GstSDPMedia *media, gint idx, GstSDPResult gst_sdp_media_insert_attribute (GstSDPMedia *media, gint idx,
GstSDPAttribute *attr); GstSDPAttribute *attr);
GST_EXPORT
GstSDPResult gst_sdp_media_replace_attribute (GstSDPMedia *media, guint idx, GstSDPResult gst_sdp_media_replace_attribute (GstSDPMedia *media, guint idx,
GstSDPAttribute *attr); GstSDPAttribute *attr);
GST_EXPORT
GstSDPResult gst_sdp_media_remove_attribute (GstSDPMedia *media, guint idx); GstSDPResult gst_sdp_media_remove_attribute (GstSDPMedia *media, guint idx);
GST_EXPORT
GstSDPResult gst_sdp_media_add_attribute (GstSDPMedia *media, const gchar *key, GstSDPResult gst_sdp_media_add_attribute (GstSDPMedia *media, const gchar *key,
const gchar *value); const gchar *value);
GST_EXPORT
GstCaps* gst_sdp_media_get_caps_from_media (const GstSDPMedia *media, gint pt); GstCaps* gst_sdp_media_get_caps_from_media (const GstSDPMedia *media, gint pt);
GST_EXPORT
GstSDPResult gst_sdp_media_set_media_from_caps (const GstCaps* caps, GstSDPMedia *media); GstSDPResult gst_sdp_media_set_media_from_caps (const GstCaps* caps, GstSDPMedia *media);
GST_EXPORT
gchar * gst_sdp_make_keymgmt (const gchar *uri, const gchar *base64); gchar * gst_sdp_make_keymgmt (const gchar *uri, const gchar *base64);
GST_EXPORT
GstSDPResult gst_sdp_message_parse_keymgmt (const GstSDPMessage *msg, GstMIKEYMessage **mikey); GstSDPResult gst_sdp_message_parse_keymgmt (const GstSDPMessage *msg, GstMIKEYMessage **mikey);
GST_EXPORT
GstSDPResult gst_sdp_media_parse_keymgmt (const GstSDPMedia *media, GstMIKEYMessage **mikey); GstSDPResult gst_sdp_media_parse_keymgmt (const GstSDPMedia *media, GstMIKEYMessage **mikey);
GST_EXPORT
GstSDPResult gst_sdp_message_attributes_to_caps (const GstSDPMessage *msg, GstCaps *caps); GstSDPResult gst_sdp_message_attributes_to_caps (const GstSDPMessage *msg, GstCaps *caps);
GST_EXPORT
GstSDPResult gst_sdp_media_attributes_to_caps (const GstSDPMedia *media, GstCaps *caps); GstSDPResult gst_sdp_media_attributes_to_caps (const GstSDPMedia *media, GstCaps *caps);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC