donau

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

donau-httpd_config.h (1892B)


      1 /*
      2   This file is part of TALER
      3   (C) 2023 Taler Systems SA
      4 
      5   TALER is free software; you can redistribute it and/or modify it under the
      6   terms of the GNU 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 DONAUABILITY or FITNESS FOR
     11   A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12 
     13   You should have received a copy of the GNU 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_config.h
     18  * @brief headers for /config handler
     19  * @author Christian Grothoff
     20  */
     21 #ifndef DONAU_HTTPD_CONFIG_H
     22 #define DONAU_HTTPD_CONFIG_H
     23 #include <microhttpd.h>
     24 #include "donau-httpd.h"
     25 
     26 
     27 /**
     28  * Taler protocol version in the format CURRENT:REVISION:AGE
     29  * as used by GNU libtool.  See
     30  * https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
     31  *
     32  * Please be very careful when updating and follow
     33  * https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info
     34  * precisely.  Note that this version has NOTHING to do with the
     35  * release version, and the format is NOT the same that semantic
     36  * versioning uses either.
     37  *
     38  * When changing this version, you likely want to also update
     39  * #TALER_PROTOCOL_CURRENT and #TALER_PROTOCOL_AGE in
     40  * donau_api_handle.c!
     41  *
     42  * Returned via both /config and /keys endpoints.
     43  */
     44 #define DONAU_PROTOCOL_VERSION "0:1:0"
     45 
     46 
     47 /**
     48  * Manages a /config call.
     49  *
     50  * @param rc context of the handler
     51  * @param[in,out] args remaining arguments (ignored)
     52  * @return MHD result code
     53  */
     54 MHD_RESULT
     55 DH_handler_config (struct DH_RequestContext *rc,
     56                    const char *const args[]);
     57 
     58 #endif