/[baselayout]/trunk/src/einfo.h
Gentoo

Diff of /trunk/src/einfo.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2576 Revision 2577
16#include <sys/types.h> 16#include <sys/types.h>
17#include <stdbool.h> 17#include <stdbool.h>
18 18
19typedef enum 19typedef enum
20{ 20{
21 einfo_good, 21 einfo_good,
22 einfo_warn, 22 einfo_warn,
23 einfo_bad, 23 einfo_bad,
24 einfo_hilite, 24 einfo_hilite,
25 einfo_bracket, 25 einfo_bracket,
26 einfo_normal 26 einfo_normal
27} einfo_color_t; 27} einfo_color_t;
28 28
29/* Colour codes used by the below functions. */ 29/* Colour codes used by the below functions. */
30#define EINFO_GOOD "\033[32;01m" 30#define EINFO_GOOD "\033[32;01m"
31#define EINFO_WARN "\033[33;01m" 31#define EINFO_WARN "\033[33;01m"
48 The n suffix means that a newline is NOT appended to the string 48 The n suffix means that a newline is NOT appended to the string
49 The v suffix means that we only print it when RC_VERBOSE=yes 49 The v suffix means that we only print it when RC_VERBOSE=yes
50 NOTE We use the v suffix here so we can add veinfo for va_list 50 NOTE We use the v suffix here so we can add veinfo for va_list
51 in the future, but veinfo is used by shell scripts as they don't 51 in the future, but veinfo is used by shell scripts as they don't
52 have the va_list concept 52 have the va_list concept
53*/ 53 */
54bool colour_terminal (void); 54bool colour_terminal (void);
55int einfon (const char *fmt, ...) EINFO_PRINTF (1, 2); 55int einfon (const char *fmt, ...) EINFO_PRINTF (1, 2);
56int ewarnn (const char *fmt, ...) EINFO_PRINTF (1, 2); 56int ewarnn (const char *fmt, ...) EINFO_PRINTF (1, 2);
57int eerrorn (const char *fmt, ...) EINFO_PRINTF (1, 2); 57int eerrorn (const char *fmt, ...) EINFO_PRINTF (1, 2);
58int einfo (const char *fmt, ...) EINFO_PRINTF(1, 2); 58int einfo (const char *fmt, ...) EINFO_PRINTF(1, 2);

Legend:
Removed from v.2576  
changed lines
  Added in v.2577

  ViewVC Help
Powered by ViewVC 1.1.20