LCOV - code coverage report
Current view: top level - gio - gsocks4proxy.c (source / functions) Coverage Total Hit
Test: unnamed Lines: 9.1 % 11 1
Test Date: 2024-11-26 05:23:01 Functions: 33.3 % 6 2
Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             :  /* GIO - GLib Input, Output and Streaming Library
       2                 :             :  *
       3                 :             :  * Copyright (C) 2010 Collabora, Ltd.
       4                 :             :  *
       5                 :             :  * SPDX-License-Identifier: LGPL-2.1-or-later
       6                 :             :  *
       7                 :             :  * This library is free software; you can redistribute it and/or
       8                 :             :  * modify it under the terms of the GNU Lesser General Public
       9                 :             :  * License as published by the Free Software Foundation; either
      10                 :             :  * version 2.1 of the License, or (at your option) any later version.
      11                 :             :  *
      12                 :             :  * This library is distributed in the hope that it will be useful,
      13                 :             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14                 :             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15                 :             :  * Lesser General Public License for more details.
      16                 :             :  *
      17                 :             :  * You should have received a copy of the GNU Lesser General
      18                 :             :  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
      19                 :             :  *
      20                 :             :  * Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
      21                 :             :  */
      22                 :             : 
      23                 :             : #include "config.h"
      24                 :             : 
      25                 :             : #include "gsocks4proxy.h"
      26                 :             : 
      27                 :             : #include "giomodule.h"
      28                 :             : #include "giomodule-priv.h"
      29                 :             : #include "gproxy.h"
      30                 :             : #include "gsocks4aproxy.h"
      31                 :             : 
      32                 :             : struct _GSocks4Proxy
      33                 :             : {
      34                 :             :   GSocks4aProxy parent;
      35                 :             : };
      36                 :             : 
      37                 :             : struct _GSocks4ProxyClass
      38                 :             : {
      39                 :             :   GSocks4aProxyClass parent_class;
      40                 :             : };
      41                 :             : 
      42                 :             : #define g_socks4_proxy_get_type _g_socks4_proxy_get_type
      43                 :         238 : G_DEFINE_TYPE_WITH_CODE (GSocks4Proxy, g_socks4_proxy, G_TYPE_SOCKS4A_PROXY,
      44                 :             :                          _g_io_modules_ensure_extension_points_registered ();
      45                 :             :                          g_io_extension_point_implement (G_PROXY_EXTENSION_POINT_NAME,
      46                 :             :                                                          g_define_type_id,
      47                 :             :                                                          "socks4",
      48                 :             :                                                          0))
      49                 :             : 
      50                 :             : static void
      51                 :           0 : g_socks4_proxy_finalize (GObject *object)
      52                 :             : {
      53                 :             :   /* must chain up */
      54                 :           0 :   G_OBJECT_CLASS (g_socks4_proxy_parent_class)->finalize (object);
      55                 :           0 : }
      56                 :             : 
      57                 :             : static void
      58                 :           0 : g_socks4_proxy_init (GSocks4Proxy *proxy)
      59                 :             : {
      60                 :           0 :   G_SOCKS4A_PROXY (proxy)->supports_hostname = FALSE;
      61                 :           0 : }
      62                 :             : 
      63                 :             : 
      64                 :             : static void
      65                 :           0 : g_socks4_proxy_class_init (GSocks4ProxyClass *class)
      66                 :             : {
      67                 :             :   GObjectClass *object_class;
      68                 :             : 
      69                 :           0 :   object_class = (GObjectClass *) class;
      70                 :           0 :   object_class->finalize = g_socks4_proxy_finalize;
      71                 :           0 : }
        

Generated by: LCOV version 2.0-1