aboutsummaryrefslogtreecommitdiff
path: root/paludis/ipc_output_manager.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-06 21:08:16 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-08 16:34:27 +0000
commit67d0b6ec6a6f936c79e717190a74f590bce185da (patch)
treed8108e4e7675dad548a3f0a2f4a1f057d732538e /paludis/ipc_output_manager.hh
parentefa3668957f10f9e4a12dad8a203abd9bb58e85c (diff)
downloadpaludis-67d0b6ec6a6f936c79e717190a74f590bce185da.tar.gz
paludis-67d0b6ec6a6f936c79e717190a74f590bce185da.tar.xz
IPCInputManager::underlying_output_manager_if_constructed
Diffstat (limited to 'paludis/ipc_output_manager.hh')
-rw-r--r--paludis/ipc_output_manager.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/paludis/ipc_output_manager.hh b/paludis/ipc_output_manager.hh
index 24fde29dc..255b36213 100644
--- a/paludis/ipc_output_manager.hh
+++ b/paludis/ipc_output_manager.hh
@@ -71,6 +71,20 @@ namespace paludis
const std::tr1::function<std::string (const std::string &)> pipe_command_handler()
PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ /**
+ * The underlying output manager.
+ *
+ * The underlying output manager is not constructed until the child
+ * process requests it, so a null pointer may be returned.
+ *
+ * Normally the output manager is destroyed when the
+ * IPCInputManager is destroyed, but keeping the shared pointer
+ * this method returns around for longer will also work, if, for
+ * example, any 'finished' messages are to be displayed later on.
+ */
+ const std::tr1::shared_ptr<OutputManager> underlying_output_manager_if_constructed() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
};
class PALUDIS_VISIBLE OutputManagerFromIPC :