return sd_varlink_reply(v, parameters);
}
-static int varlink_reset_fds(sd_varlink *v) {
+_public_ int sd_varlink_reset_fds(sd_varlink *v) {
assert_return(v, -EINVAL);
/* Closes all currently pending fds to send. This may be used whenever the caller is in the process
* of putting together a message with fds, and then eventually something fails and they need to
- * rollback the fds. Note that this is implicitly called whenever an error reply is sent, see above. */
+ * rollback the fds. Note that this is implicitly called whenever an error reply is sent, see
+ * below. */
close_many(v->output_fds, v->n_output_fds);
v->n_output_fds = 0;
* fails. In that case the pushed fds need to be flushed out again. Under the assumption that it
* never makes sense to send fds along with errors we simply flush them out here beforehand, so that
* the callers don't need to do this explicitly. */
- varlink_reset_fds(v);
+ sd_varlink_reset_fds(v);
r = varlink_sanitize_parameters(¶meters);
if (r < 0)