3
* Copyright (C) 2015 Christian Hergert <christian@hergert.me>
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef IDE_BUILD_RESULT_H
20
#define IDE_BUILD_RESULT_H
24
#include "ide-object.h"
28
#define IDE_TYPE_BUILD_RESULT (ide_build_result_get_type())
30
G_DECLARE_DERIVABLE_TYPE (IdeBuildResult, ide_build_result, IDE, BUILD_RESULT, IdeObject)
32
struct _IdeBuildResultClass
34
IdeObjectClass parent;
37
GInputStream *ide_build_result_get_stdout_stream (IdeBuildResult *result);
38
GInputStream *ide_build_result_get_stderr_stream (IdeBuildResult *result);
39
void ide_build_result_log_subprocess (IdeBuildResult *result,
40
GSubprocess *subprocess);
41
void ide_build_result_log_stdout (IdeBuildResult *result,
43
...) G_GNUC_PRINTF (2, 3);
44
void ide_build_result_log_stderr (IdeBuildResult *result,
46
...) G_GNUC_PRINTF (2, 3);
50
#endif /* IDE_BUILD_RESULT_H */