donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

donau-httpd_terms.h (1852B)


      1 /*
      2   This file is part of TALER
      3   Copyright (C) 2024 Taler Systems SA
      4 
      5   TALER is free software; you can redistribute it and/or modify it under the
      6   terms of the GNU Affero General Public License as published by the Free Software
      7   Foundation; either version 3, or (at your option) any later version.
      8 
      9   TALER is distributed in the hope that it will be useful, but WITHOUT ANY
     10   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11   A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
     12 
     13   You should have received a copy of the GNU Affero General Public License along with
     14   TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15 */
     16 /**
     17  * @file donau-httpd_terms.h
     18  * @brief Handle /terms requests to return the terms of service
     19  * @author Christian Grothoff
     20  */
     21 #ifndef DONAU_HTTPD_TERMS_H
     22 #define DONAU_HTTPD_TERMS_H
     23 #include <donau_config.h>
     24 #include <gnunet/gnunet_util_lib.h>
     25 #include <gnunet/gnunet_json_lib.h>
     26 #include <jansson.h>
     27 #include <microhttpd.h>
     28 #include <taler/taler_mhd_lib.h>
     29 #include "donau-httpd.h"
     30 
     31 
     32 /**
     33  * Handle a "/terms" request.
     34  *
     35  * @param rc request context
     36  * @param args array of additional options (must be empty for this function)
     37  * @return MHD result code
     38  */
     39 enum MHD_Result
     40 DH_handler_terms (struct DH_RequestContext *rc,
     41                   const char *const args[]);
     42 
     43 
     44 /**
     45  * Handle a "/privacy" request.
     46  *
     47  * @param rc request context
     48  * @param args array of additional options (must be empty for this function)
     49  * @return MHD result code
     50  */
     51 enum MHD_Result
     52 DH_handler_privacy (struct DH_RequestContext *rc,
     53                     const char *const args[]);
     54 
     55 
     56 /**
     57  * Load our terms of service as per configuration.
     58  *
     59  * @param cfg configuration to process
     60  */
     61 void
     62 DH_load_terms (const struct GNUNET_CONFIGURATION_Handle *cfg);
     63 
     64 
     65 #endif