Doxygen Book
mqttelements.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
14 #include <gst/gst.h>
15 
16 #include "mqttcommon.h"
17 #include "mqttsink.h"
18 #include "mqttsrc.h"
19 
23 static gboolean
24 plugin_init (GstPlugin * plugin)
25 {
26  if (!gst_element_register (plugin, GST_MQTT_ELEM_NAME_SINK, GST_RANK_NONE,
28  return FALSE;
29  }
30 
31  if (!gst_element_register (plugin, GST_MQTT_ELEM_NAME_SRC, GST_RANK_NONE,
33  return FALSE;
34  }
35 
36  return TRUE;
37 }
38 
39 #ifndef PACKAGE
40 #define PACKAGE GST_MQTT_PACKAGE
41 #endif
42 
43 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, mqtt,
44  "A collection of GStreamer plugins to support MQTT",
45  plugin_init, VERSION, "LGPL", PACKAGE,
46  "https://github.com/nnstreamer/nnstreamer")
GST_MQTT_ELEM_NAME_SINK
#define GST_MQTT_ELEM_NAME_SINK
Definition: mqttcommon.h:26
mqttsink.h
Publish incoming data streams as a MQTT topic.
GST_TYPE_MQTT_SRC
#define GST_TYPE_MQTT_SRC
Definition: mqttsrc.h:25
FALSE
return FALSE
Definition: gsttensor_transform.c:590
plugin_init
static gboolean plugin_init(GstPlugin *plugin)
The entry point of the GStreamer MQTT plugin.
Definition: mqttelements.c:24
GST_TYPE_MQTT_SINK
#define GST_TYPE_MQTT_SINK
Definition: mqttsink.h:24
GST_MQTT_ELEM_NAME_SRC
#define GST_MQTT_ELEM_NAME_SRC
Definition: mqttcommon.h:27
mqttsrc.h
Subscribe a MQTT topic and push incoming data to the GStreamer pipeline.
TRUE
return TRUE
Definition: gsttensor_if.c:897
GST_PLUGIN_DEFINE
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR, nnstreamer, "NNStreamer plugin library allows neural networks in GStreamer pipelines. Use nnstreamer-check utility for more information of the current NNStreamer installation.", gst_nnstreamer_init, VERSION, "LGPL", "nnstreamer", "https://github.com/nnstreamer/nnstreamer")
PACKAGE
#define PACKAGE
Definition: mqttelements.c:40
mqttcommon.h
Common macros and utility functions for GStreamer MQTT plugins.