LCOV - code coverage report
Current view: top level - util - os_installation.c (source / functions) Hit Total Coverage
Test: GNU Taler exchange coverage report Lines: 5 5 100.0 %
Date: 2022-08-25 06:15:09 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) 2016 Taler Systems SA
       4             : 
       5             :      Taler 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             :      Taler 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 Taler; 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             :  * @file os_installation.c
      22             :  * @brief initialize libgnunet OS subsystem for Taler.
      23             :  * @author Christian Grothoff
      24             :  */
      25             : #include "platform.h"
      26             : #include <gnunet/gnunet_util_lib.h>
      27             : 
      28             : 
      29             : /**
      30             :  * Default project data used for installation path detection
      31             :  * for GNU Taler.
      32             :  */
      33             : static const struct GNUNET_OS_ProjectData taler_pd = {
      34             :   .libname = "libtalerutil",
      35             :   .project_dirname = "taler",
      36             :   .binary_name = "taler-exchange-httpd",
      37             :   .env_varname = "TALER_PREFIX",
      38             :   .base_config_varname = "TALER_BASE_CONFIG",
      39             :   .bug_email = "taler@gnu.org",
      40             :   .homepage = "http://www.gnu.org/s/taler/",
      41             :   .config_file = "taler.conf",
      42             :   .user_config_file = "~/.config/taler.conf",
      43             :   .version = PACKAGE_VERSION "-" VCS_VERSION,
      44             :   .is_gnu = 1,
      45             :   .gettext_domain = "taler",
      46             :   .gettext_path = NULL,
      47             : };
      48             : 
      49             : 
      50             : /**
      51             :  * Return default project data used by Taler.
      52             :  */
      53             : const struct GNUNET_OS_ProjectData *
      54           7 : TALER_project_data_default (void)
      55             : {
      56           7 :   return &taler_pd;
      57             : }
      58             : 
      59             : 
      60             : /**
      61             :  * Initialize libtalerutil.
      62             :  */
      63             : void __attribute__ ((constructor))
      64          97 : TALER_OS_init ()
      65             : {
      66          97 :   GNUNET_OS_init (&taler_pd);
      67          97 : }
      68             : 
      69             : 
      70             : /* end of os_installation.c */

Generated by: LCOV version 1.14