dtls: Make agent and connection GstObjects

Facilitates debug logs interpretation of GST_DEBUG_OBJECT() calls.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2820>
This commit is contained in:
Philippe Normand 2022-07-30 17:42:50 +01:00 committed by GStreamer Marge Bot
parent 1de859ec55
commit 7c3f73ec2e
4 changed files with 8 additions and 8 deletions

View file

@ -58,7 +58,7 @@ struct _GstDtlsAgentPrivate
GstDtlsCertificate *certificate;
};
G_DEFINE_TYPE_WITH_PRIVATE (GstDtlsAgent, gst_dtls_agent, G_TYPE_OBJECT);
G_DEFINE_TYPE_WITH_PRIVATE (GstDtlsAgent, gst_dtls_agent, GST_TYPE_OBJECT);
static void gst_dtls_agent_finalize (GObject * gobject);
static void gst_dtls_agent_set_property (GObject *, guint prop_id,

View file

@ -28,7 +28,7 @@
#include "gstdtlscertificate.h"
#include <glib-object.h>
#include <gst/gst.h>
G_BEGIN_DECLS
@ -52,13 +52,13 @@ typedef struct _GstDtlsAgentPrivate GstDtlsAgentPrivate;
* GstDtlsAgent needs to be constructed with the "certificate" property set.
*/
struct _GstDtlsAgent {
GObject parent_instance;
GstObject parent_instance;
GstDtlsAgentPrivate *priv;
};
struct _GstDtlsAgentClass {
GObjectClass parent_class;
GstObjectClass parent_class;
};
GType gst_dtls_agent_get_type(void) G_GNUC_CONST;

View file

@ -107,8 +107,8 @@ struct _GstDtlsConnectionPrivate
GThreadPool *thread_pool;
};
G_DEFINE_TYPE_WITH_CODE (GstDtlsConnection, gst_dtls_connection, G_TYPE_OBJECT,
G_ADD_PRIVATE (GstDtlsConnection)
G_DEFINE_TYPE_WITH_CODE (GstDtlsConnection, gst_dtls_connection,
GST_TYPE_OBJECT, G_ADD_PRIVATE (GstDtlsConnection)
GST_DEBUG_CATEGORY_INIT (gst_dtls_connection_debug, "dtlsconnection", 0,
"DTLS Connection"));

View file

@ -85,13 +85,13 @@ GType gst_dtls_connection_state_get_type (void);
* Once the DTLS handshake is completed, on-encoder-key and on-decoder-key will be signalled.
*/
struct _GstDtlsConnection {
GObject parent_instance;
GstObject parent_instance;
GstDtlsConnectionPrivate *priv;
};
struct _GstDtlsConnectionClass {
GObjectClass parent_class;
GstObjectClass parent_class;
};
GType gst_dtls_connection_get_type(void) G_GNUC_CONST;