+*) 2005-07-2
+
+ - remembered that there is a CHANGELOG, added dfb api
+ (not working yet)
+
*) 2004-06-26
- begin list api
--- /dev/null
+/* dfbt.c -- direct framebuffer stuff
+ *
+ * author: hackbard@hackdaworld.org
+ *
+ */
+
+#include "dfb.h"
+
+int dfb_init(t_dfb *dfb,int outfd,int &arg_c,char *arg_v) {
+
+ dprintf(outfd,"[dfb] initializing dfb system ...\n");
+
+ dfb->outfd=outfd;
+
+ DFBInit(arg_c,arg_v);
+
+ DirectFBCreate(&(dfb->iface));
+
+ return DFB_SUCCESS;
+}
--- /dev/null
+/* dfb.h -- dfb headers */
+
+#ifndef DFB_H
+#define DFB_H
+
+/* includes */
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <errno.h>
+#include <directfb.h>
+
+#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