exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d6461e9ba0dd97d59e51d06358319d496429ffde
parent a69d9259d5ceaeb84ccde37625363d8277900bd9
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 15 Jun 2025 11:07:03 +0200

remove TALER_MHD_open_unix_path() from public API of libtalermhd (does not need to be exposed)

Diffstat:
Msrc/include/taler_mhd_lib.h | 15+--------------
Msrc/mhd/Makefile.am | 2+-
Msrc/mhd/mhd_config.c | 10+++++-----
3 files changed, 7 insertions(+), 20 deletions(-)

diff --git a/src/include/taler_mhd_lib.h b/src/include/taler_mhd_lib.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2020 Taler Systems SA + Copyright (C) 2014-2025 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -889,19 +889,6 @@ TALER_MHD_handle_logs (void *cls, /** - * Open UNIX domain socket for listining at @a unix_path with - * permissions @a unix_mode. - * - * @param unix_path where to listen - * @param unix_mode access permissions to set - * @return -1 on error, otherwise the listen socket - */ -int -TALER_MHD_open_unix_path (const char *unix_path, - mode_t unix_mode); - - -/** * Bind a listen socket to the UNIX domain path or the TCP port and IP address * as specified in @a cfg in section @a section. IF only a port was * specified, set @a port and return -1. Otherwise, return the bound file diff --git a/src/mhd/Makefile.am b/src/mhd/Makefile.am @@ -18,7 +18,7 @@ libtalermhd_la_SOURCES = \ mhd_run.c \ mhd_spa.c libtalermhd_la_LDFLAGS = \ - -version-info 5:1:0 \ + -version-info 6:0:0 \ -no-undefined libtalermhd_la_LIBADD = \ $(top_builddir)/src/json/libtalerjson.la \ diff --git a/src/mhd/mhd_config.c b/src/mhd/mhd_config.c @@ -82,9 +82,9 @@ TALER_MHD_handle_logs (void *cls, * @param unix_mode access permissions to set * @return -1 on error, otherwise the listen socket */ -int -TALER_MHD_open_unix_path (const char *unix_path, - mode_t unix_mode) +static int +open_unix_path (const char *unix_path, + mode_t unix_mode) { struct GNUNET_NETWORK_Handle *nh; struct sockaddr_un *un; @@ -331,8 +331,8 @@ TALER_MHD_bind (const struct GNUNET_CONFIGURATION_Handle *cfg, { int ret; - ret = TALER_MHD_open_unix_path (serve_unixpath, - unixpath_mode); + ret = open_unix_path (serve_unixpath, + unixpath_mode); GNUNET_free (serve_unixpath); return ret; }