#include "config.h"
#endif
-#include "gstdtlsdec.h"
-#include "gstdtlsenc.h"
-#include "gstdtlssrtpenc.h"
-#include "gstdtlssrtpdec.h"
-#include "gstdtlssrtpdemux.h"
-
#include <gst/gst.h>
+#include "gstdtlselements.h"
+
static gboolean
plugin_init (GstPlugin * plugin)
{
- gst_type_mark_as_plugin_api (GST_DTLS_TYPE_CONNECTION_STATE, 0);
+ gboolean ret = FALSE;
+
+ ret |= GST_ELEMENT_REGISTER (dtlsenc, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlsdec, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpdec, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpenc, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpdemux, plugin);
- return gst_element_register (plugin, "dtlsenc", GST_RANK_NONE,
- GST_TYPE_DTLS_ENC)
- && gst_element_register (plugin, "dtlsdec", GST_RANK_NONE,
- GST_TYPE_DTLS_DEC)
- && gst_element_register (plugin, "dtlssrtpdec", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_DEC)
- && gst_element_register (plugin, "dtlssrtpenc", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_ENC)
- && gst_element_register (plugin, "dtlssrtpdemux", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_DEMUX);
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,