LCOV - code coverage report
Current view: top level - nnstreamer-2.4.2/gst/nnstreamer/tensor_query - tensor_query_common.c (source / functions) Coverage Total Hit
Test: nnstreamer 2.4.2-0 nnstreamer/nnstreamer#eca68b8d050408568af95d831a8eef62aaee7784 Lines: 100.0 % 4 4
Test Date: 2025-03-13 05:38:21 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /* SPDX-License-Identifier: LGPL-2.1-only */
       2              : /**
       3              :  * Copyright (C) 2021 Gichan Jang <gichan2.jang@samsung.com>
       4              :  *
       5              :  * @file   tensor_query_common.c
       6              :  * @date   09 July 2021
       7              :  * @brief  Utility functions for tensor query
       8              :  * @see    https://github.com/nnstreamer/nnstreamer
       9              :  * @author Gichan Jang <gichan2.jang@samsung.com>
      10              :  * @author Junhwan Kim <jejudo.kim@samsung.com>
      11              :  * @bug    No known bugs except for NYI items
      12              :  */
      13              : 
      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              : 
      26              : /**
      27              :  * @brief Register GEnumValue array for query connect-type property.
      28              :  */
      29              : GType
      30           15 : gst_tensor_query_get_connect_type (void)
      31              : {
      32              :   static GType protocol = 0;
      33           15 :   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           13 :     protocol = g_enum_register_static ("tensor_query_protocol", protocols);
      42              :   }
      43              : 
      44           15 :   return protocol;
      45              : }
        

Generated by: LCOV version 2.0-1