]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-varlink: mark sd_varlink_server_{ref,unref} as _public_ (#35241)
authorMike Yuan <me@yhndnzj.com>
Tue, 19 Nov 2024 20:21:15 +0000 (21:21 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 20:21:15 +0000 (05:21 +0900)
Co-authored-by: Thorsten Kukuk <kukuk@suse.com>
src/libsystemd/libsystemd.sym
src/libsystemd/sd-varlink/sd-varlink.c

index e1836da08ff0dd6e5ea1c9e74922f8ed987dd4ad..0b948b86a2be5b91152f1a20bd893e09db606d13 100644 (file)
@@ -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;
index f27b99dc7887f9d4c8978def5b9eab697eefc0a2..c7a8a504f239d2665fcbdf665496726cb41323fa 100644 (file)
@@ -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;