aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/pipe_command_handler.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-01 02:22:10 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-01-01 02:22:10 +0000
commitc22bb23c8a0c37cc817251489a83744eef91117c (patch)
tree9c114835c1a03c2410b2fe306e4f08abea57855d /paludis/repositories/e/pipe_command_handler.hh
parent5af96b9e2a15827bc49e24af497571b45959ca6a (diff)
downloadpaludis-c22bb23c8a0c37cc817251489a83744eef91117c.tar.gz
paludis-c22bb23c8a0c37cc817251489a83744eef91117c.tar.xz
Move pipe command handler into its own files. Make locked_pipe_command work in global scope when PATH is empty. Add initial skeleton for ever, as a proof of concept.
Diffstat (limited to 'paludis/repositories/e/pipe_command_handler.hh')
-rw-r--r--paludis/repositories/e/pipe_command_handler.hh38
1 files changed, 38 insertions, 0 deletions
diff --git a/paludis/repositories/e/pipe_command_handler.hh b/paludis/repositories/e/pipe_command_handler.hh
new file mode 100644
index 000000000..223bba489
--- /dev/null
+++ b/paludis/repositories/e/pipe_command_handler.hh
@@ -0,0 +1,38 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+/*
+ * Copyright (c) 2008 Ciaran McCreesh
+ *
+ * This file is part of the Paludis package manager. Paludis is free software;
+ * you can redistribute it and/or modify it under the terms of the GNU General
+ * Public License version 2, as published by the Free Software Foundation.
+ *
+ * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_PIPE_COMMAND_HANDLER_HH
+#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_PIPE_COMMAND_HANDLER_HH 1
+
+#include <paludis/environment-fwd.hh>
+#include <paludis/package_id-fwd.hh>
+#include <paludis/util/tr1_functional.hh>
+#include <string>
+
+namespace paludis
+{
+ namespace erepository
+ {
+ std::string pipe_command_handler(const Environment * const,
+ const tr1::shared_ptr<const PackageID> &,
+ const std::string & s);
+ }
+}
+
+#endif