diff options
Diffstat (limited to 'gst-libs/gst/sdp/gstmikey.h')
-rw-r--r-- | gst-libs/gst/sdp/gstmikey.h | 93 |
1 files changed, 47 insertions, 46 deletions
diff --git a/gst-libs/gst/sdp/gstmikey.h b/gst-libs/gst/sdp/gstmikey.h index 72c53bb6b..8b6d2322e 100644 --- a/gst-libs/gst/sdp/gstmikey.h +++ b/gst-libs/gst/sdp/gstmikey.h @@ -23,10 +23,11 @@ #define __GST_MIKEY_H__ #include <gst/gst.h> +#include <gst/sdp/sdp-prelude.h> G_BEGIN_DECLS -GST_EXPORT +GST_SDP_API GType gst_mikey_message_get_type(void); #define GST_TYPE_MIKEY_MESSAGE (gst_mikey_message_get_type()) @@ -144,7 +145,7 @@ typedef struct { typedef struct _GstMIKEYPayload GstMIKEYPayload; -GST_EXPORT +GST_SDP_API GType gst_mikey_payload_get_type(void); #define GST_TYPE_MIKEY_PAYLOAD (gst_mikey_payload_get_type()) @@ -164,7 +165,7 @@ struct _GstMIKEYPayload { guint len; }; -GST_EXPORT +GST_SDP_API GstMIKEYPayload * gst_mikey_payload_new (GstMIKEYPayloadType type); /** @@ -258,21 +259,21 @@ typedef struct { GArray *subpayloads; } GstMIKEYPayloadKEMAC; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_kemac_set (GstMIKEYPayload *payload, GstMIKEYEncAlg enc_alg, GstMIKEYMacAlg mac_alg); -GST_EXPORT +GST_SDP_API guint gst_mikey_payload_kemac_get_n_sub (const GstMIKEYPayload *payload); -GST_EXPORT +GST_SDP_API const GstMIKEYPayload * gst_mikey_payload_kemac_get_sub (const GstMIKEYPayload *payload, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_kemac_remove_sub (GstMIKEYPayload *payload, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_kemac_add_sub (GstMIKEYPayload *payload, GstMIKEYPayload *newpay); @@ -312,7 +313,7 @@ typedef struct { guint8 *data; } GstMIKEYPayloadPKE; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_pke_set (GstMIKEYPayload *payload, GstMIKEYCacheType C, guint16 data_len, const guint8 *data); @@ -348,7 +349,7 @@ typedef struct { guint8 *ts_value; } GstMIKEYPayloadT; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_t_set (GstMIKEYPayload *payload, GstMIKEYTSType type, const guint8 *ts_value); @@ -430,20 +431,20 @@ typedef struct { GArray *params; } GstMIKEYPayloadSP; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_sp_set (GstMIKEYPayload *payload, guint policy, GstMIKEYSecProto proto); -GST_EXPORT +GST_SDP_API guint gst_mikey_payload_sp_get_n_params (const GstMIKEYPayload *payload); -GST_EXPORT +GST_SDP_API const GstMIKEYPayloadSPParam * gst_mikey_payload_sp_get_param (const GstMIKEYPayload *payload, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_sp_remove_param (GstMIKEYPayload *payload, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_sp_add_param (GstMIKEYPayload *payload, guint8 type, guint8 len, const guint8 *val); @@ -462,7 +463,7 @@ typedef struct { guint8 *rand; } GstMIKEYPayloadRAND; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_rand_set (GstMIKEYPayload *payload, guint8 len, const guint8 *rand); @@ -522,20 +523,20 @@ typedef struct { guint8 *kv_data[2]; } GstMIKEYPayloadKeyData; -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_key_data_set_key (GstMIKEYPayload *payload, GstMIKEYKeyDataType key_type, guint16 key_len, const guint8 *key_data); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_key_data_set_salt (GstMIKEYPayload *payload, guint16 salt_len, const guint8 *salt_data); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_key_data_set_spi (GstMIKEYPayload *payload, guint8 spi_len, const guint8 *spi_data); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_payload_key_data_set_interval (GstMIKEYPayload *payload, guint8 vf_len, const guint8 *vf_data, guint8 vt_len, const guint8 *vt_data); @@ -570,28 +571,28 @@ struct _GstMIKEYMessage }; -GST_EXPORT +GST_SDP_API GstMIKEYMessage * gst_mikey_message_new (void); -GST_EXPORT +GST_SDP_API GstMIKEYMessage * gst_mikey_message_new_from_data (gconstpointer data, gsize size, GstMIKEYDecryptInfo *info, GError **error); -GST_EXPORT +GST_SDP_API GstMIKEYMessage * gst_mikey_message_new_from_bytes (GBytes *bytes, GstMIKEYDecryptInfo *info, GError **error); -GST_EXPORT +GST_SDP_API GBytes * gst_mikey_message_to_bytes (GstMIKEYMessage *msg, GstMIKEYEncryptInfo *info, GError **error); -GST_EXPORT +GST_SDP_API GstMIKEYMessage * gst_mikey_message_new_from_caps (GstCaps *caps); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_to_caps (const GstMIKEYMessage *msg, GstCaps *caps); -GST_EXPORT +GST_SDP_API gchar * gst_mikey_message_base64_encode (GstMIKEYMessage* msg); /** @@ -641,59 +642,59 @@ gst_mikey_message_copy (const GstMIKEYMessage * message) } -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_set_info (GstMIKEYMessage *msg, guint8 version, GstMIKEYType type, gboolean V, GstMIKEYPRFFunc prf_func, guint32 CSB_id, GstMIKEYMapType map_type); -GST_EXPORT +GST_SDP_API guint gst_mikey_message_get_n_cs (const GstMIKEYMessage *msg); /* SRTP crypto sessions */ -GST_EXPORT +GST_SDP_API const GstMIKEYMapSRTP * gst_mikey_message_get_cs_srtp (const GstMIKEYMessage *msg, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_insert_cs_srtp (GstMIKEYMessage *msg, gint idx, const GstMIKEYMapSRTP *map); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_replace_cs_srtp (GstMIKEYMessage *msg, gint idx, const GstMIKEYMapSRTP *map); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_remove_cs_srtp (GstMIKEYMessage *msg, gint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_cs_srtp (GstMIKEYMessage *msg, guint8 policy, guint32 ssrc, guint32 roc); /* adding/retrieving payloads */ -GST_EXPORT +GST_SDP_API guint gst_mikey_message_get_n_payloads (const GstMIKEYMessage *msg); -GST_EXPORT +GST_SDP_API const GstMIKEYPayload * gst_mikey_message_get_payload (const GstMIKEYMessage *msg, guint idx); -GST_EXPORT +GST_SDP_API const GstMIKEYPayload * gst_mikey_message_find_payload (const GstMIKEYMessage *msg, GstMIKEYPayloadType type, guint nth); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_remove_payload (GstMIKEYMessage *msg, guint idx); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_insert_payload (GstMIKEYMessage *msg, guint idx, GstMIKEYPayload *payload); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_payload (GstMIKEYMessage *msg, GstMIKEYPayload *payload); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_replace_payload (GstMIKEYMessage *msg, guint idx, GstMIKEYPayload *payload); @@ -701,7 +702,7 @@ gboolean gst_mikey_message_replace_payload (GstMIKEYMessage /* Key data transport payload (KEMAC) */ /* Envelope data payload (PKE) */ -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_pke (GstMIKEYMessage *msg, GstMIKEYCacheType C, guint16 data_len, const guint8 *data); @@ -710,11 +711,11 @@ gboolean gst_mikey_message_add_pke (GstMIKEYMessage /* Timestamp payload (T) */ -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_t (GstMIKEYMessage *msg, GstMIKEYTSType type, const guint8 *ts_value); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_t_now_ntp_utc (GstMIKEYMessage *msg); /* ID payload (ID) */ /* Certificate Payload (CERT) */ @@ -723,11 +724,11 @@ gboolean gst_mikey_message_add_t_now_ntp_utc (GstMIKEYMessage /* Security Policy payload (SP)*/ /* RAND payload (RAND) */ -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_rand (GstMIKEYMessage *msg, guint8 len, const guint8 *rand); -GST_EXPORT +GST_SDP_API gboolean gst_mikey_message_add_rand_len (GstMIKEYMessage *msg, guint8 len); /* Error payload (ERR) */ |