]> git.tdb.fi Git - builder.git/blobdiff - source/lib/externaltask.h
Add visibility decorations to the library and plugins
[builder.git] / source / lib / externaltask.h
index 9b9bc438867ce5884241249dedbe6b511af87ed8..8dbdb86cc110e28e0786883cbbd9330b4f73ac92 100644 (file)
@@ -6,6 +6,7 @@
 #include <msp/core/process.h>
 #include <msp/fs/path.h>
 #include <msp/io/pipe.h>
+#include "libbuilder_api.h"
 #include "task.h"
 
 /**
@@ -13,7 +14,7 @@ Runs an external command.  A zero exit status is translated to a SUCCESS status
 for the task, and anything else is treated as an error.  Output can optionally
 be captured.
 */
-class ExternalTask: public Task
+class LIBBUILDER_API ExternalTask: public Task
 {
 public:
        enum StreamAction
@@ -68,7 +69,7 @@ public:
        void set_stderr(StreamAction);
 
        /** Returns captured output, if any.  This may be called while the task is
-       still running, but it will always return all output. */
+       still running, but it will always return all output produced so far. */
        const std::string &get_output() const { return output; }
 
        /** Executes a command and captures its output.  If the command exits with