added dfb api (just starting, not yet working ...)
[my-code/api.git] / dfb / dfb.h
1 /* dfb.h -- dfb headers */
2
3 #ifndef DFB_H
4 #define DFB_H
5
6 /* includes */
7 #define _GNU_SOURCE
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <unistd.h>
12 #include <errno.h>
13 #include <directfb.h>
14
15 #include "list.h"
16
17 /* defines */
18 #define DFB_SUCCESS 1
19 #define DFB_ERROR -1
20
21 /* specific variables */
22 typedef struct s_dfb {
23   int outfd;
24   IDirectFB *iface;
25   IDirectFBSurface primary;
26   t_list image;
27   t_list video;
28   t_list font;
29   int max_x;
30   int max_y;
31   unsigned char mode;
32 } t_dfb;
33
34 /* function prototypes */
35 int dfb_init(t_dfb *dfb,int outfd,int &arg_c,char *arg_v);
36
37 #endif