X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=blobdiff_plain;f=dfb%2Fdfb.h;fp=dfb%2Fdfb.h;h=bf330035ecb4d89f06f781a312f79ce3ea6cd8ef;hp=0000000000000000000000000000000000000000;hb=3ed1ea9463c7eb66d82c5e28612a52f0f2ce72da;hpb=dbb174b5acb9d83fba8fdbd29f4a4426f152bd7e diff --git a/dfb/dfb.h b/dfb/dfb.h new file mode 100644 index 0000000..bf33003 --- /dev/null +++ b/dfb/dfb.h @@ -0,0 +1,37 @@ +/* dfb.h -- dfb headers */ + +#ifndef DFB_H +#define DFB_H + +/* includes */ +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include + +#include "list.h" + +/* defines */ +#define DFB_SUCCESS 1 +#define DFB_ERROR -1 + +/* specific variables */ +typedef struct s_dfb { + int outfd; + IDirectFB *iface; + IDirectFBSurface primary; + t_list image; + t_list video; + t_list font; + int max_x; + int max_y; + unsigned char mode; +} t_dfb; + +/* function prototypes */ +int dfb_init(t_dfb *dfb,int outfd,int &arg_c,char *arg_v); + +#endif