cash2ecash

cash2ecash: cash acceptor that issues digital cash (experimental)
Log | Files | Refs | README | LICENSE

taler_digitizer_util.h (1703B)


      1 /*
      2   This file is part of TALER cash2ecash
      3   Copyright (C) 2026 GNUnet e.V.
      4 
      5   This program is free software: you can redistribute it and/or modify
      6   it under the terms of the GNU Affero General Public License as
      7   published by the Free Software Foundation, either version 3 of the
      8   License, or (at your option) any later version.
      9 
     10   This program is distributed in the hope that it will be useful,
     11   but WITHOUT ANY WARRANTY; without even the implied warranty of
     12   A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14   GNU Affero General Public License for more details.
     15 
     16   You should have received a copy of the GNU Affero General Public License
     17   along with this program.  If not, see <https://www.gnu.org/licenses/>.
     18 */
     19 
     20 /**
     21  * @file taler-digitizer_util.h
     22  * @brief Interface for common utility functions, and base project settings
     23  * @author Reto Tellenbach
     24  */
     25 #ifndef TALER_DIGITIZER_UTIL_H
     26 #define TALER_DIGITIZER_UTIL_H
     27 
     28 #include <gnunet/gnunet_util_lib.h>
     29 
     30 /**
     31  * Default project data. When shipping use a seperate os_installation.c which sets values at installation.
     32  */
     33 static const struct GNUNET_OS_ProjectData digitizer_pd = {
     34   .base_config_varname = "TALER_DIGITIZER_PREFIX",
     35   .bug_email = "taler@lists.gnu.org",
     36   .homepage = "http://www.gnu.org/s/taler/",
     37   .config_file = "taler-digitizer.conf",
     38   .user_config_file = "~/.config/taler-digitizer.conf",
     39   .version = "0.1.0",
     40   .is_gnu = 0,
     41   .gettext_domain = NULL,
     42   .gettext_path = NULL,
     43 };
     44 
     45 /**
     46  * Return default project data.
     47  */
     48 const struct GNUNET_OS_ProjectData *
     49 TALER_DIGITIZER_project_data (void)
     50 {
     51   return &digitizer_pd;
     52 }
     53 
     54 
     55 
     56 #endif