~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

Viewing changes to gdchart0.94c/gd-1.8.3/wbmp.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* WBMP
2
 
** ----
3
 
** WBMP Level 0: B/W, Uncompressed
4
 
** This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
5
 
** It does not support ExtHeaders as defined in the spec. The spec states
6
 
** that a WAP client does not need to implement ExtHeaders.
7
 
**
8
 
** (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
9
 
**
10
 
** Header file
11
 
*/        
12
 
#ifndef __WBMP_H
13
 
#define __WBMP_H        1
14
 
 
15
 
 
16
 
/* WBMP struct
17
 
** -----------
18
 
** A Wireless bitmap structure
19
 
**
20
 
*/
21
 
 
22
 
typedef struct Wbmp_
23
 
{
24
 
    int type;           /* type of the wbmp */
25
 
    int width;          /* width of the image */
26
 
    int height;         /* height of the image */
27
 
    int *bitmap;        /* pointer to data: 0 = WHITE , 1 = BLACK */
28
 
} Wbmp;
29
 
 
30
 
#define WBMP_WHITE  1
31
 
#define WBMP_BLACK  0
32
 
 
33
 
 
34
 
/* Proto's
35
 
** -------
36
 
**
37
 
*/
38
 
int             putmbi( int i, int (*putout)(int c, void *out), void *out); 
39
 
int     getmbi ( int (*getin)(void *in), void *in );
40
 
int     skipheader( int (*getin)(void *in), void *in );
41
 
Wbmp   *createwbmp( int width, int height, int color );
42
 
int     readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
43
 
int             writewbmp( Wbmp *wbmp, int (*putout)( int c, void *out), void *out);
44
 
void    freewbmp( Wbmp *wbmp );
45
 
void    printwbmp( Wbmp *wbmp );  
46
 
 
47
 
#endif