Common macros and utility functions for GStreamer MQTT plugins. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | _GstMQTTMessageHdr |
Defined a custom data type, GstMQTTMessageHdr. More... | |
Macros | |
#define | UNUSED(expr) do { (void)(expr); } while (0) |
#define | GST_MQTT_PACKAGE "GStreamer MQTT Plugins" |
#define | GST_MQTT_ELEM_NAME_SINK "mqttsink" |
#define | GST_MQTT_ELEM_NAME_SRC "mqttsrc" |
#define | GST_MQTT_LEN_MSG_HDR 1024 |
#define | GST_MQTT_MAX_LEN_GST_CAPS_STR 512 |
#define | GST_MQTT_MAX_NUM_MEMS 16 |
GST_BUFFER_MEM_MAX in gstreamer/gstbuffer.c is 16. To represent each size of the memory block that the GstBuffer contains, GST_MQTT_MAX_NUM_MEMS should be 16. More... | |
#define | GST_US_TO_NS_MULTIPLIER 1000 |
#define | DEFAULT_MQTT_CONN_TIMEOUT_SEC 5 |
Typedefs | |
typedef struct _GstMQTTMessageHdr | GstMQTTMessageHdr |
Defined a custom data type, GstMQTTMessageHdr. More... | |
typedef int64_t(* | mqtt_get_unix_epoch) (uint32_t, char **, uint16_t *) |
Functions | |
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. More... | |
Common macros and utility functions for GStreamer MQTT plugins.
Copyright (C) 2021 Wook Song wook1 6.so ng@sa msun g.com
Definition in file mqttcommon.h.
#define DEFAULT_MQTT_CONN_TIMEOUT_SEC 5 |
Definition at line 40 of file mqttcommon.h.
#define GST_MQTT_ELEM_NAME_SINK "mqttsink" |
Definition at line 26 of file mqttcommon.h.
#define GST_MQTT_ELEM_NAME_SRC "mqttsrc" |
Definition at line 27 of file mqttcommon.h.
#define GST_MQTT_LEN_MSG_HDR 1024 |
Definition at line 29 of file mqttcommon.h.
#define GST_MQTT_MAX_LEN_GST_CAPS_STR 512 |
Definition at line 30 of file mqttcommon.h.
#define GST_MQTT_MAX_NUM_MEMS 16 |
GST_BUFFER_MEM_MAX in gstreamer/gstbuffer.c is 16. To represent each size of the memory block that the GstBuffer contains, GST_MQTT_MAX_NUM_MEMS should be 16.
Definition at line 36 of file mqttcommon.h.
#define GST_MQTT_PACKAGE "GStreamer MQTT Plugins" |
Definition at line 23 of file mqttcommon.h.
#define GST_US_TO_NS_MULTIPLIER 1000 |
Definition at line 38 of file mqttcommon.h.
#define UNUSED | ( | expr | ) | do { (void)(expr); } while (0) |
Definition at line 19 of file mqttcommon.h.
typedef struct _GstMQTTMessageHdr GstMQTTMessageHdr |
Defined a custom data type, GstMQTTMessageHdr.
GstMQTTMessageHdr contains the information needed to parse the message data at the subscriber side and is prepended to the original message data at the publisher side.
typedef int64_t(* mqtt_get_unix_epoch) (uint32_t, char **, uint16_t *) |
Definition at line 65 of file mqttcommon.h.
|
inlinestatic |
A wrapper function of g_get_real_time () to assign it to the function pointer, mqtt_get_unix_epoch.
Definition at line 71 of file mqttcommon.h.