LCOV - code coverage report
Current view: top level - nnstreamer-2.4.2/gst/edge - edge_common.c (source / functions) Coverage Total Hit
Test: nnstreamer 2.4.2-0 nnstreamer/nnstreamer.git#5d55fc62547faa02e861af5ef93cc1c89800934a Lines: 100.0 % 4 4
Test Date: 2024-09-25 09:08:39 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /* SPDX-License-Identifier: LGPL-2.1-only */
       2              : /**
       3              :  * Copyright (C) 2022 Samsung Electronics Co., Ltd.
       4              :  *
       5              :  * @file    edge_common.c
       6              :  * @date    01 Aug 2022
       7              :  * @brief   Common functions for edge sink and src
       8              :  * @author  Yechan Choi <yechan9.choi@samsung.com>
       9              :  * @see     http://github.com/nnstreamer/nnstreamer
      10              :  * @bug     No known bugs
      11              :  *
      12              :  */
      13              : #ifdef HAVE_CONFIG_H
      14              : #include <config.h>
      15              : #endif
      16              : 
      17              : #include "edge_common.h"
      18              : 
      19              : /**
      20              :  * @brief register GEnumValue array for edge protocol property handling
      21              :  */
      22              : GType
      23           52 : gst_edge_get_connect_type (void)
      24              : {
      25              :   static GType protocol = 0;
      26           52 :   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           31 :     protocol = g_enum_register_static ("edge_protocol", protocols);
      39              :   }
      40              : 
      41           52 :   return protocol;
      42              : }
        

Generated by: LCOV version 2.0-1