Doxygen Book
tensor_query_common.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
14 #ifdef HAVE_CONFIG_H
15 #include "config.h"
16 #endif
17 #include <stdint.h>
18 #include <stdlib.h>
19 #include <string.h>
20 #include "tensor_query_common.h"
21 
22 #ifndef EREMOTEIO
23 #define EREMOTEIO 121 /* This is Linux-specific. Define this for non-Linux systems */
24 #endif
25 
29 GType
31 {
32  static GType protocol = 0;
33  if (protocol == 0) {
34  static GEnumValue protocols[] = {
35  {NNS_EDGE_CONNECT_TYPE_TCP, "TCP",
36  "Directly sending stream frames via TCP connections."},
37  {NNS_EDGE_CONNECT_TYPE_HYBRID, "HYBRID",
38  "Connect with MQTT brokers and directly sending stream frames via TCP connections."},
39  {0, NULL, NULL},
40  };
41  protocol = g_enum_register_static ("tensor_query_protocol", protocols);
42  }
43 
44  return protocol;
45 }
gst_tensor_query_get_connect_type
GType gst_tensor_query_get_connect_type(void)
Register GEnumValue array for query connect-type property.
Definition: tensor_query_common.c:30
tensor_query_common.h
Utility functions for tensor query.