diff options
author | midipix <writeonce@midipix.org> | 2018-08-04 05:02:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-04 05:21:03 -0400 |
commit | 2dfa014f328f366d1f78481d9f91c76df5b5007a (patch) | |
tree | ff12454b64c8cceb1966e548dee81bf6612abb74 /src/output/sfrt_output_name.c | |
parent | d4f88d42725956c3aa6d9c6e83e70729c1a938e8 (diff) | |
download | sofort-2dfa014f328f366d1f78481d9f91c76df5b5007a.tar.bz2 sofort-2dfa014f328f366d1f78481d9f91c76df5b5007a.tar.xz |
output interfaces: revised API and implementation to use fdctx and pure fdio.
Diffstat (limited to 'src/output/sfrt_output_name.c')
-rw-r--r-- | src/output/sfrt_output_name.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/output/sfrt_output_name.c b/src/output/sfrt_output_name.c index c0aff5e..7eb874e 100644 --- a/src/output/sfrt_output_name.c +++ b/src/output/sfrt_output_name.c @@ -5,9 +5,15 @@ #include <errno.h> #include <sofort/sofort.h> +#include "sofort_driver_impl.h" +#include "sofort_dprintf_impl.h" -sfrt_api -int sfrt_output_name(const struct sfrt_unit_ctx * uctx, FILE * f) +int sfrt_output_name( + const struct sfrt_driver_ctx * dctx, + const struct sfrt_unit_ctx * uctx) { - return fprintf(f,"%s\n",*uctx->path); + return sfrt_dprintf( + sfrt_driver_fdout(dctx), + "%s\n", + *uctx->path); } |