Doxygen Book
mqttsink.h File Reference

Publish incoming data streams as a MQTT topic. More...

#include <gst/base/gstbasesink.h>
#include <gst/gst.h>
#include <MQTTAsync.h>
#include "mqttcommon.h"
Include dependency graph for mqttsink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GstMqttSink
 GstMqttSink data structure. More...
 
struct  _GstMqttSinkClass
 GstMqttSinkClass data structure. More...
 

Macros

#define GST_TYPE_MQTT_SINK   (gst_mqtt_sink_get_type())
 
#define GST_MQTT_SINK(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_MQTT_SINK, GstMqttSink))
 
#define GST_IS_MQTT_SINK(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MQTT_SINK))
 
#define GST_MQTT_SINK_CAST(obj)   ((GstMqttSink *) obj)
 
#define GST_MQTT_SINK_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_MQTT_SINK, GstMqttSinkClass))
 
#define GST_IS_MQTT_SINK_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MQTT_SINK))
 

Typedefs

typedef struct _GstMqttSink GstMqttSink
 
typedef struct _GstMqttSinkClass GstMqttSinkClass
 
typedef enum _mqtt_sink_state_t mqtt_sink_state_t
 A type definition to indicate the state of this element. More...
 

Enumerations

enum  _mqtt_sink_state_t {
  MQTT_CONNECTION_LOST = -3, MQTT_CONNECT_FAILURE = -2, SINK_INITIALIZING = -1, SINK_RENDER_STOPPED = 0,
  SINK_RENDER_EOS, SINK_RENDER_ERROR, MQTT_CONNECTED, MQTT_DISCONNECTED,
  MQTT_DISCONNECT_FAILED
}
 A type definition to indicate the state of this element. More...
 

Functions

GType gst_mqtt_sink_get_type (void)
 

Detailed Description

Publish incoming data streams as a MQTT topic.

Copyright (C) 2021 Wook Song wook1.nosp@m.6.so.nosp@m.ng@sa.nosp@m.msun.nosp@m.g.com

Date
08 Mar 2021
See also
https://github.com/nnstreamer/nnstreamer
Author
Wook Song wook1.nosp@m.6.so.nosp@m.ng@sa.nosp@m.msun.nosp@m.g.com
Bug:
No known bugs except for NYI items

Definition in file mqttsink.h.

Macro Definition Documentation

◆ GST_IS_MQTT_SINK

#define GST_IS_MQTT_SINK (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MQTT_SINK))

Definition at line 28 of file mqttsink.h.

◆ GST_IS_MQTT_SINK_CLASS

#define GST_IS_MQTT_SINK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MQTT_SINK))

Definition at line 34 of file mqttsink.h.

◆ GST_MQTT_SINK

#define GST_MQTT_SINK (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_MQTT_SINK, GstMqttSink))

Definition at line 26 of file mqttsink.h.

◆ GST_MQTT_SINK_CAST

#define GST_MQTT_SINK_CAST (   obj)    ((GstMqttSink *) obj)

Definition at line 30 of file mqttsink.h.

◆ GST_MQTT_SINK_CLASS

#define GST_MQTT_SINK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_MQTT_SINK, GstMqttSinkClass))

Definition at line 32 of file mqttsink.h.

◆ GST_TYPE_MQTT_SINK

#define GST_TYPE_MQTT_SINK   (gst_mqtt_sink_get_type())

Definition at line 24 of file mqttsink.h.

Typedef Documentation

◆ GstMqttSink

typedef struct _GstMqttSink GstMqttSink

Definition at line 37 of file mqttsink.h.

◆ GstMqttSinkClass

Definition at line 38 of file mqttsink.h.

◆ mqtt_sink_state_t

A type definition to indicate the state of this element.

Enumeration Type Documentation

◆ _mqtt_sink_state_t

A type definition to indicate the state of this element.

Enumerator
MQTT_CONNECTION_LOST 
MQTT_CONNECT_FAILURE 
SINK_INITIALIZING 
SINK_RENDER_STOPPED 
SINK_RENDER_EOS 
SINK_RENDER_ERROR 
MQTT_CONNECTED 
MQTT_DISCONNECTED 
MQTT_DISCONNECT_FAILED 

Definition at line 43 of file mqttsink.h.

Function Documentation

◆ gst_mqtt_sink_get_type()

GType gst_mqtt_sink_get_type ( void  )