Go to the documentation of this file.
14 #ifndef __GST_MQTT_COMMON_H__
15 #define __GST_MQTT_COMMON_H__
19 #define UNUSED(expr) do { (void)(expr); } while (0)
22 #ifndef GST_MQTT_PACKAGE
23 #define GST_MQTT_PACKAGE "GStreamer MQTT Plugins"
26 #define GST_MQTT_ELEM_NAME_SINK "mqttsink"
27 #define GST_MQTT_ELEM_NAME_SRC "mqttsrc"
29 #define GST_MQTT_LEN_MSG_HDR 1024
30 #define GST_MQTT_MAX_LEN_GST_CAPS_STR 512
36 #define GST_MQTT_MAX_NUM_MEMS 16
38 #define GST_US_TO_NS_MULTIPLIER 1000
40 #define DEFAULT_MQTT_CONN_TIMEOUT_SEC 5
77 return g_get_real_time ();
gchar gst_caps_str[GST_MQTT_MAX_LEN_GST_CAPS_STR]
#define GST_MQTT_LEN_MSG_HDR
gsize size_mems[GST_MQTT_MAX_NUM_MEMS]
static int64_t default_mqtt_get_unix_epoch(uint32_t hnum, char **hnames, uint16_t *hports)
A wrapper function of g_get_real_time () to assign it to the function pointer, mqtt_get_unix_epoch.
int64_t(* mqtt_get_unix_epoch)(uint32_t, char **, uint16_t *)
struct _GstMQTTMessageHdr GstMQTTMessageHdr
Defined a custom data type, GstMQTTMessageHdr.
#define GST_MQTT_MAX_LEN_GST_CAPS_STR
#define GST_MQTT_MAX_NUM_MEMS
GST_BUFFER_MEM_MAX in gstreamer/gstbuffer.c is 16. To represent each size of the memory block that th...
Defined a custom data type, GstMQTTMessageHdr.
guint8 _reserved_hdr[GST_MQTT_LEN_MSG_HDR]