LCOV - code coverage report
Current view: top level - util - os_installation.c (source / functions) Hit Total Coverage
Test: GNU Taler sync coverage report Lines: 5 5 100.0 %
Date: 2021-08-30 06:54:48 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :      This file is part of GNU Taler.
       3             :      Copyright (C) 2019 Taler Systems SA
       4             : 
       5             :      Sync is free software; you can redistribute it and/or modify
       6             :      it under the terms of the GNU General Public License as published
       7             :      by the Free Software Foundation; either version 3, or (at your
       8             :      option) any later version.
       9             : 
      10             :      Sync is distributed in the hope that it will be useful, but
      11             :      WITHOUT ANY WARRANTY; without even the implied warranty of
      12             :      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      13             :      General Public License for more details.
      14             : 
      15             :      You should have received a copy of the GNU General Public License
      16             :      along with Sync; see the file COPYING.  If not, write to the
      17             :      Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
      18             :      Boston, MA 02110-1301, USA.
      19             : */
      20             : 
      21             : /**
      22             :  * @file os_installation.c
      23             :  * @brief initialize libgnunet OS subsystem for Sync.
      24             :  * @author Christian Grothoff
      25             :  */
      26             : #include "platform.h"
      27             : #include <gnunet/gnunet_util_lib.h>
      28             : 
      29             : 
      30             : /**
      31             :  * Default project data used for installation path detection
      32             :  * for GNU Sync.
      33             :  */
      34             : static const struct GNUNET_OS_ProjectData sync_pd = {
      35             :   .libname = "libsyncutil",
      36             :   .project_dirname = "sync",
      37             :   .binary_name = "sync-httpd",
      38             :   .env_varname = "SYNC_PREFIX",
      39             :   .base_config_varname = "SYNC_BASE_CONFIG",
      40             :   .bug_email = "taler@lists.gnu.org",
      41             :   .homepage = "http://www.gnu.org/s/taler/",
      42             :   .config_file = "sync.conf",
      43             :   .user_config_file = "~/.config/sync.conf",
      44             :   .version = PACKAGE_VERSION,
      45             :   .is_gnu = 1,
      46             :   .gettext_domain = "sync",
      47             :   .gettext_path = NULL,
      48             : };
      49             : 
      50             : 
      51             : /**
      52             :  * Return default project data used by Sync.
      53             :  */
      54             : const struct GNUNET_OS_ProjectData *
      55           2 : SYNC_project_data_default (void)
      56             : {
      57           2 :   return &sync_pd;
      58             : }
      59             : 
      60             : 
      61             : /**
      62             :  * Initialize libsyncutil.
      63             :  */
      64             : void __attribute__ ((constructor))
      65           2 : SYNC_OS_init ()
      66             : {
      67           2 :   GNUNET_OS_init (&sync_pd);
      68           2 : }
      69             : 
      70             : 
      71             : /* end of os_installation.c */

Generated by: LCOV version 1.14