Doxygen Book
edge_common.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifdef HAVE_CONFIG_H
14 #include <config.h>
15 #endif
16 
17 #include "edge_common.h"
18 
22 GType
24 {
25  static GType protocol = 0;
26  if (protocol == 0) {
27  static GEnumValue protocols[] = {
28  {NNS_EDGE_CONNECT_TYPE_TCP, "TCP",
29  "Directly sending stream frames via TCP connections."},
30  {NNS_EDGE_CONNECT_TYPE_HYBRID, "HYBRID",
31  "Connect with MQTT brokers and directly sending stream frames via TCP connections."},
32  {NNS_EDGE_CONNECT_TYPE_MQTT, "MQTT",
33  "Sending stream frames via MQTT connections."},
34  {NNS_EDGE_CONNECT_TYPE_CUSTOM, "CUSTOM",
35  "Sending stream frames via CUSTOM connections."},
36  {0, NULL, NULL},
37  };
38  protocol = g_enum_register_static ("edge_protocol", protocols);
39  }
40 
41  return protocol;
42 }
edge_common.h
Common functions for edge sink and src.
gst_edge_get_connect_type
GType gst_edge_get_connect_type(void)
register GEnumValue array for edge protocol property handling
Definition: edge_common.c:23