1 /*
2     Copyright 2007 Rene Rivera
3     Distributed under the Boost Software License, Version 1.0.
4     (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
5 */
6 
7 #ifndef BJAM_OUTPUT_H
8 #define BJAM_OUTPUT_H
9 
10 #include "config.h"
11 #include "object.h"
12 #include "timestamp.h"
13 
14 #define EXIT_OK 0
15 #define EXIT_FAIL 1
16 #define EXIT_TIMEOUT 2
17 
18 void out_action(
19     char const * const action,
20     char const * const target,
21     char const * const command,
22     char const * const out_data,
23     char const * const err_data,
24     int const exit_reason
25 );
26 
27 void out_flush();
28 void err_flush();
29 void out_puts(char const * const s);
30 void err_puts(char const * const s);
31 void out_putc(const char c);
32 void err_putc(const char c);
33 void out_data(char const * const s);
34 void err_data(char const * const s);
35 void out_printf(char const * const f, ...);
36 void err_printf(char const * const f, ...);
37 
38 OBJECT * outf_int( int const value );
39 OBJECT * outf_double( double const value );
40 OBJECT * outf_time( timestamp const * const value );
41 
42 #endif
43