cleanup (-> old directory) & creation of 'new' src folder + TODO
[my-code/ivac.git] / old / ivac.h
diff --git a/old/ivac.h b/old/ivac.h
new file mode 100644 (file)
index 0000000..030b144
--- /dev/null
@@ -0,0 +1,41 @@
+/* internet video/audio conferencing
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#ifndef IVAC_H
+#define IVAC_H
+
+#define MAX_CHAR_VIDEO_DEV 64
+#define MAX_CHAR_AUDIO_DEV 64
+
+#define VIDEO_DEV "/dev/v4l/video0"
+#define AUDIO_DEV "/dev/sound/dsp"
+
+#define VERBOSE_FLAG 1
+
+#include <directfb.h>
+
+struct dfb_stuff {
+       IDirectFB *dfb;
+       IDirectFBDisplayLayer *layer;
+       IDirectFBImageProvider *i_provider;
+       IDirectFBVideoProvider *v_provider;
+       IDirectFBWindow *window,*v_window;;
+       IDirectFBSurface *v_surface,*i_surface,*surface;
+       IDirectFBFont *font;
+       IDirectFBInputDevice *keyboard,*mouse;
+       IDirectFBEventBuffer *buffer;
+};
+
+struct ivac {
+       struct dfb_stuff dfb_stuff;
+       char video_dev[MAX_CHAR_VIDEO_DEV];
+       char audio_dev[MAX_CHAR_AUDIO_DEV];
+       unsigned char flags;
+       int count;
+};
+
+
+#endif /* IVAC_H */