File: output.h

package info (click to toggle)
njamd 0.9.3pre2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,704 kB
  • ctags: 1,056
  • sloc: ansic: 9,367; sh: 7,921; makefile: 121; perl: 52
file content (34 lines) | stat: -rw-r--r-- 899 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * @file output.h
 *
 * The user output object
 *
 */
#ifndef __NJ_LIB_OUTPUT_H__
#define __NJ_LIB_OUTPUT_H__

#include <unistd.h>
#include <config.h>
#include <lib/prefs.h>
#include <lib/heap_entry.h>

struct nj_output
{
	int fd;			/**< Thats all she wrote for now */
};

void __nj_output_bootstrap_init(struct nj_output *);
void __nj_output_user_init(struct nj_output *, struct nj_prefs *);
void __nj_output_fini(struct nj_output *);
void __nj_output_fatal_user_error(int, int, nj_addr_t, struct nj_heap_entry *, char *, ...);
void __nj_output_fatal_internal_error(int, int, char *, int, char *, ...);
void __nj_output_user_warning(int, int, nj_addr_t, struct nj_heap_entry *, char *, ...);
void __nj_output_internal_warning(char *, int, char *, ...);

void __nj_eprintf(const char *, ...);
void __nj_critical_error(char *);
void __nj_perror(const char *);

#endif /* output.h */
// vim:ts=4