source: libcaca/trunk/cucul/cucul_internals.h @ 568

Last change on this file since 568 was 568, checked in by Sam Hocevar, 15 years ago
  • Added glue code to compile libcaca without a libc and build applications as multiboot kernels.
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 *  libcucul      Unicode canvas library
3 *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  This library is free software; you can redistribute it and/or
7 *  modify it under the terms of the Do What The Fuck You Want To
8 *  Public License, Version 2, as published by Sam Hocevar. See
9 *  http://sam.zoy.org/wtfpl/COPYING for more details.
10 */
11
12/** \file cucul_internals.h
13 *  \version \$Id: cucul_internals.h 568 2006-03-09 12:47:37Z sam $
14 *  \author Sam Hocevar <sam@zoy.org>
15 *  \brief The \e libcucul private header.
16 *
17 *  This header contains the private types and functions used by \e libcucul.
18 */
19
20#ifndef __CUCUL_INTERNALS_H__
21#define __CUCUL_INTERNALS_H__
22
23#if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__)
24#   include <inttypes.h>
25#elif !defined(CUSTOM_INTTYPES) && !defined(_DOXYGEN_SKIP_ME)
26#   define CUSTOM_INTTYPES
27typedef unsigned char uint8_t;
28typedef unsigned short uint16_t;
29typedef unsigned int uint32_t;
30#endif
31
32struct cucul_context
33{
34    /* Context size */
35    unsigned int width, height;
36
37    uint32_t *chars;
38    uint8_t *attr;
39    char *empty_line, *scratch_line;
40
41    enum cucul_color fgcolor;
42    enum cucul_color bgcolor;
43
44    /* Internal libcucul features */
45    enum cucul_feature background, antialiasing, dithering;
46
47    unsigned int refcount;
48
49    /* Exporters facilities */
50    unsigned char *ansi_buffer;
51
52};
53
54/* Initialisation functions */
55extern int _cucul_init_bitmap(void);
56extern int _cucul_end_bitmap(void);
57
58#endif /* __CUCUL_INTERNALS_H__ */
Note: See TracBrowser for help on using the repository browser.