diff options
author | Colin Walters <walters@verbum.org> | 2017-08-03 21:45:50 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-08-10 14:20:00 +0000 |
commit | de153dea30ba8bb28a5dfafe9d0995224766df60 (patch) | |
tree | 4697069402221b56340bed0cee2386925af4a24b /src/libostree/ostree-sysroot-private.h | |
parent | 75bce24cb9417f9b8111ed689d3d9c2f4bec154f (diff) | |
download | ostree-de153dea30ba8bb28a5dfafe9d0995224766df60.tar.gz |
lib/sysroot: Add journal-msg signal
This will allow us to drop the awful hack in rpm-ostree where we watch our own
stdout. In general, libraries shouldn't write to stdout.
Also we can kill the systemd journal wrapper code. There's some duplication at
each call site now...but it's easier than trying to write a `sd_journal_send()`
wrapper.
I was originally going to have this emit all of the structured data too as a
`GVariant` but decided it wasn't worth it right now.
Closes: #1052
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-sysroot-private.h')
-rw-r--r-- | src/libostree/ostree-sysroot-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot-private.h b/src/libostree/ostree-sysroot-private.h index 07c4bf6e..4c6cb328 100644 --- a/src/libostree/ostree-sysroot-private.h +++ b/src/libostree/ostree-sysroot-private.h @@ -69,6 +69,10 @@ struct OstreeSysroot { #define _OSTREE_SYSROOT_DEPLOYMENT_RUNSTATE_DIR "/run/ostree/deployment-state/" #define _OSTREE_SYSROOT_DEPLOYMENT_RUNSTATE_FLAG_DEVELOPMENT "unlocked-development" +void +_ostree_sysroot_emit_journal_msg (OstreeSysroot *self, + const char *msg); + gboolean _ostree_sysroot_read_boot_loader_configs (OstreeSysroot *self, int bootversion, |