From: Mike Yuan Date: Tue, 19 Nov 2024 20:21:15 +0000 (+0100) Subject: sd-varlink: mark sd_varlink_server_{ref,unref} as _public_ (#35241) X-Git-Tag: v257-rc3~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=804dd670d1677f579baaa13a50dfa9a11c9ab42e;p=thirdparty%2Fsystemd.git sd-varlink: mark sd_varlink_server_{ref,unref} as _public_ (#35241) Co-authored-by: Thorsten Kukuk --- diff --git a/src/libsystemd/libsystemd.sym b/src/libsystemd/libsystemd.sym index e1836da08ff..0b948b86a2b 100644 --- a/src/libsystemd/libsystemd.sym +++ b/src/libsystemd/libsystemd.sym @@ -1033,12 +1033,14 @@ global: sd_varlink_server_listen_fd; sd_varlink_server_loop_auto; sd_varlink_server_new; + sd_varlink_server_ref; sd_varlink_server_set_connections_max; sd_varlink_server_set_connections_per_uid_max; sd_varlink_server_set_description; sd_varlink_server_set_exit_on_idle; sd_varlink_server_set_userdata; sd_varlink_server_shutdown; + sd_varlink_server_unref; sd_varlink_set_allow_fd_passing_input; sd_varlink_set_allow_fd_passing_output; sd_varlink_set_description; diff --git a/src/libsystemd/sd-varlink/sd-varlink.c b/src/libsystemd/sd-varlink/sd-varlink.c index f27b99dc788..c7a8a504f23 100644 --- a/src/libsystemd/sd-varlink/sd-varlink.c +++ b/src/libsystemd/sd-varlink/sd-varlink.c @@ -3265,7 +3265,7 @@ static sd_varlink_server* varlink_server_destroy(sd_varlink_server *s) { return mfree(s); } -DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_varlink_server, sd_varlink_server, varlink_server_destroy); +DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_varlink_server, sd_varlink_server, varlink_server_destroy); static int validate_connection(sd_varlink_server *server, const struct ucred *ucred) { int allowed = -1;