|
| G_DEFINE_TYPE (GstMqttSrc, gst_mqtt_src, GST_TYPE_BASE_SRC) |
|
| GST_DEBUG_CATEGORY_STATIC (gst_mqtt_src_debug) |
|
static void | gst_mqtt_src_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
| The setter for the mqttsrc's properties. More...
|
|
static void | gst_mqtt_src_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
| The getter for the mqttsrc's properties. More...
|
|
static void | gst_mqtt_src_class_finalize (GObject *object) |
| Finalize GstMqttSrcClass object. More...
|
|
static GstStateChangeReturn | gst_mqtt_src_change_state (GstElement *element, GstStateChange transition) |
| Handle mqttsrc's state change. More...
|
|
static gboolean | gst_mqtt_src_start (GstBaseSrc *basesrc) |
| Start mqttsrc, called when state changed null to ready. More...
|
|
static gboolean | gst_mqtt_src_stop (GstBaseSrc *basesrc) |
| Stop mqttsrc, called when state changed ready to null. More...
|
|
static GstCaps * | gst_mqtt_src_get_caps (GstBaseSrc *basesrc, GstCaps *filter) |
| Get caps of subclass. More...
|
|
static gboolean | gst_mqtt_src_renegotiate (GstBaseSrc *basesrc) |
| Do negotiation procedure again if it needed. More...
|
|
static void | gst_mqtt_src_get_times (GstBaseSrc *basesrc, GstBuffer *buffer, GstClockTime *start, GstClockTime *end) |
| Return the time information of the given buffer. More...
|
|
static gboolean | gst_mqtt_src_is_seekable (GstBaseSrc *basesrc) |
| Check if source supports seeking. More...
|
|
static GstFlowReturn | gst_mqtt_src_create (GstBaseSrc *basesrc, guint64 offset, guint size, GstBuffer **buf) |
| Create a buffer containing the subscribed data. More...
|
|
static gboolean | gst_mqtt_src_query (GstBaseSrc *basesrc, GstQuery *query) |
| An implementation of the GstBaseSrc vmethod that handles queries. More...
|
|
static gboolean | gst_mqtt_src_get_debug (GstMqttSrc *self) |
| Getter for the 'debug' property. More...
|
|
static void | gst_mqtt_src_set_debug (GstMqttSrc *self, const gboolean flag) |
| Setter for the 'debug' property. More...
|
|
static gboolean | gst_mqtt_src_get_is_live (GstMqttSrc *self) |
| Getter for the 'is-live' property. More...
|
|
static void | gst_mqtt_src_set_is_live (GstMqttSrc *self, const gboolean flag) |
| Setter for the 'is-live' property. More...
|
|
static gchar * | gst_mqtt_src_get_client_id (GstMqttSrc *self) |
| Getter for the 'client-id' property. More...
|
|
static void | gst_mqtt_src_set_client_id (GstMqttSrc *self, const gchar *id) |
| Setter for the 'client-id' property. More...
|
|
static gchar * | gst_mqtt_src_get_host_address (GstMqttSrc *self) |
| Getter for the 'host' property. More...
|
|
static void | gst_mqtt_src_set_host_address (GstMqttSrc *self, const gchar *addr) |
| Setter for the 'host' property. More...
|
|
static gchar * | gst_mqtt_src_get_host_port (GstMqttSrc *self) |
| Getter for the 'port' property. More...
|
|
static void | gst_mqtt_src_set_host_port (GstMqttSrc *self, const gchar *port) |
| Setter for the 'port' property. More...
|
|
static gint64 | gst_mqtt_src_get_sub_timeout (GstMqttSrc *self) |
| Getter for the 'sub-timeout' property. More...
|
|
static void | gst_mqtt_src_set_sub_timeout (GstMqttSrc *self, const gint64 t) |
| Setter for the 'sub-timeout' property. More...
|
|
static gchar * | gst_mqtt_src_get_sub_topic (GstMqttSrc *self) |
| Getter for the 'sub-topic' property. More...
|
|
static void | gst_mqtt_src_set_sub_topic (GstMqttSrc *self, const gchar *topic) |
| Setter for the 'sub-topic' property. More...
|
|
static gboolean | gst_mqtt_src_get_opt_cleansession (GstMqttSrc *self) |
| Getter for the 'cleansession' property. More...
|
|
static void | gst_mqtt_src_set_opt_cleansession (GstMqttSrc *self, const gboolean val) |
| Setter for the 'cleansession' property. More...
|
|
static gint | gst_mqtt_src_get_opt_keep_alive_interval (GstMqttSrc *self) |
| Getter for the 'keep-alive-interval' property. More...
|
|
static void | gst_mqtt_src_set_opt_keep_alive_interval (GstMqttSrc *self, const gint num) |
| Setter for the 'keep-alive-interval' property. More...
|
|
static gint | gst_mqtt_src_get_mqtt_qos (GstMqttSrc *self) |
| Getter for the 'mqtt-qos' property. More...
|
|
static void | gst_mqtt_src_set_mqtt_qos (GstMqttSrc *self, const gint qos) |
| Setter for the 'mqtt-qos' property. More...
|
|
static void | cb_mqtt_on_connection_lost (void *context, char *cause) |
| A callback to handle the connection lost to the broker. More...
|
|
static int | cb_mqtt_on_message_arrived (void *context, char *topic_name, int topic_len, MQTTAsync_message *message) |
| A callback to handle the arrived message. More...
|
|
static void | cb_mqtt_on_connect (void *context, MQTTAsync_successData *response) |
| A callback invoked when the connection is established. More...
|
|
static void | cb_mqtt_on_connect_failure (void *context, MQTTAsync_failureData *response) |
| A callback invoked when it is failed to connect to the broker. More...
|
|
static void | cb_mqtt_on_subscribe (void *context, MQTTAsync_successData *response) |
| MQTTAsync_responseOptions's onSuccess callback for MQTTAsync_subscribe () More...
|
|
static void | cb_mqtt_on_subscribe_failure (void *context, MQTTAsync_failureData *response) |
| MQTTAsync_responseOptions's onFailure callback for MQTTAsync_subscribe () More...
|
|
static void | cb_mqtt_on_unsubscribe (void *context, MQTTAsync_successData *response) |
| MQTTAsync_responseOptions's onSuccess callback for MQTTAsync_unsubscribe () More...
|
|
static void | cb_mqtt_on_unsubscribe_failure (void *context, MQTTAsync_failureData *response) |
| MQTTAsync_responseOptions's onFailure callback for MQTTAsync_unsubscribe () More...
|
|
static void | cb_memory_wrapped_destroy (void *p) |
| A callback invoked when destroying the GstMemory which wrapped the arrived message. More...
|
|
static GstMQTTMessageHdr * | _extract_mqtt_msg_hdr_from (GstMemory *mem, GstMemory **hdr_mem, GstMapInfo *hdr_map_info) |
| A utility function to extract header information from a received message. More...
|
|
static void | _put_timestamp_on_gst_buf (GstMqttSrc *self, GstMQTTMessageHdr *hdr, GstBuffer *buf) |
| A utility function to put the timestamp information onto a GstBuffer-typed buffer using the given packet header. More...
|
|
static gboolean | _subscribe (GstMqttSrc *self) |
| A helper function to properly invoke MQTTAsync_subscribe () More...
|
|
static gboolean | _unsubscribe (GstMqttSrc *self) |
| A wrapper function that calls MQTTAsync_unsubscribe () More...
|
|
static gboolean | _is_gst_buffer_timestamp_valid (GstBuffer *buf) |
| A utility function to check whether the timestamp marked by _put_timestamp_on_gst_buf () is valid or not. More...
|
|
static void | gst_mqtt_src_init (GstMqttSrc *self) |
| Initialize GstMqttSrc object. More...
|
|
static void | gst_mqtt_src_class_init (GstMqttSrcClass *klass) |
| Initialize GstMqttSrcClass object. More...
|
|