LCOV - code coverage report
Current view: top level - util - os_installation.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 6 6
Test Date: 2025-12-22 22:38:17 Functions: 100.0 % 3 3

            Line data    Source code
       1              : /*
       2              :      This file is part of GNU Taler.
       3              :      Copyright (C) 2016, 2024 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 "taler/platform.h"
      26              : #include <gnunet/gnunet_util_lib.h>
      27              : #include "taler/taler_util.h"
      28              : 
      29              : /**
      30              :  * Default project data used for installation path detection
      31              :  * for GNU Taler exchange.
      32              :  */
      33              : static const struct GNUNET_OS_ProjectData exchange_pd = {
      34              :   .libname = "libtalerutil",
      35              :   .project_dirname = "taler-exchange",
      36              :   .binary_name = "taler-exchange-httpd",
      37              :   .env_varname = "TALER_EXCHANGE_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-exchange.conf",
      42              :   .user_config_file = "~/.config/taler-exchange.conf",
      43              :   .version = PACKAGE_VERSION "-" VCS_VERSION,
      44              :   .is_gnu = 1,
      45              :   .gettext_domain = "taler",
      46              :   .gettext_path = NULL,
      47              :   .agpl_url = "https://git.taler.net/"
      48              : };
      49              : 
      50              : 
      51              : const struct GNUNET_OS_ProjectData *
      52         1361 : TALER_EXCHANGE_project_data (void)
      53              : {
      54         1361 :   return &exchange_pd;
      55              : }
      56              : 
      57              : 
      58              : /**
      59              :  * Default project data used for installation path detection
      60              :  * for GNU Taler auditor.
      61              :  */
      62              : static const struct GNUNET_OS_ProjectData auditor_pd = {
      63              :   .libname = "libtalerutil",
      64              :   .project_dirname = "taler-auditor",
      65              :   .binary_name = "taler-auditor-httpd",
      66              :   .env_varname = "TALER_AUDITOR_PREFIX",
      67              :   .base_config_varname = "TALER_BASE_CONFIG",
      68              :   .bug_email = "taler@gnu.org",
      69              :   .homepage = "http://www.gnu.org/s/taler/",
      70              :   .config_file = "taler-auditor.conf",
      71              :   .user_config_file = "~/.config/taler-auditor.conf",
      72              :   .version = PACKAGE_VERSION "-" VCS_VERSION,
      73              :   .is_gnu = 1,
      74              :   .gettext_domain = "taler",
      75              :   .gettext_path = NULL,
      76              :   .agpl_url = "https://git.taler.net/"
      77              : };
      78              : 
      79              : 
      80              : const struct GNUNET_OS_ProjectData *
      81          120 : TALER_AUDITOR_project_data (void)
      82              : {
      83          120 :   return &auditor_pd;
      84              : }
      85              : 
      86              : 
      87              : /**
      88              :  * Default project data used for installation path detection
      89              :  * for GNU Taler fakebank.
      90              :  */
      91              : static const struct GNUNET_OS_ProjectData fakebank_pd = {
      92              :   .libname = "libtalerutil",
      93              :   .project_dirname = "taler-fakebank",
      94              :   .binary_name = "taler-fakebank-run",
      95              :   .env_varname = "TALER_BANK_PREFIX",
      96              :   .base_config_varname = "TALER_BASE_CONFIG",
      97              :   .bug_email = "taler@gnu.org",
      98              :   .homepage = "http://www.gnu.org/s/taler/",
      99              :   .config_file = "taler-fakebank.conf",
     100              :   .user_config_file = "~/.config/taler-fakebank.conf",
     101              :   .version = PACKAGE_VERSION "-" VCS_VERSION,
     102              :   .is_gnu = 1,
     103              :   .gettext_domain = "taler",
     104              :   .gettext_path = NULL,
     105              :   .agpl_url = "https://git.taler.net/"
     106              : };
     107              : 
     108              : 
     109              : const struct GNUNET_OS_ProjectData *
     110            3 : TALER_FAKEBANK_project_data (void)
     111              : {
     112            3 :   return &fakebank_pd;
     113              : }
     114              : 
     115              : 
     116              : /* end of os_installation.c */
        

Generated by: LCOV version 2.0-1