summaryrefslogtreecommitdiff
path: root/Source/DiVine/lib
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-15 08:46:13 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-15 08:46:13 +0100
commit7fe60435bce6595a9c58a9bfd8244d74b5320e96 (patch)
tree1ac714a916e02fc90901ddac8bc2a3c6d051d28c /Source/DiVine/lib
downloaddirectfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.tar.gz
directfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.tar.bz2
directfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.zip
Import DirectFB141_2k11R3_beta5
Diffstat (limited to 'Source/DiVine/lib')
-rwxr-xr-xSource/DiVine/lib/Makefile.am16
-rwxr-xr-xSource/DiVine/lib/Makefile.in496
-rwxr-xr-xSource/DiVine/lib/divine.c363
-rwxr-xr-xSource/DiVine/lib/idivine.c147
-rwxr-xr-xSource/DiVine/lib/idivine.h50
5 files changed, 1072 insertions, 0 deletions
diff --git a/Source/DiVine/lib/Makefile.am b/Source/DiVine/lib/Makefile.am
new file mode 100755
index 0000000..a8fb035
--- /dev/null
+++ b/Source/DiVine/lib/Makefile.am
@@ -0,0 +1,16 @@
+INCLUDES = \
+ -I$(top_srcdir)/include \
+ @DIRECTFB_INTERNAL_CFLAGS@
+
+lib_LTLIBRARIES = libdivine.la
+
+libdivine_la_SOURCES = \
+ divine.c \
+ idivine.c
+
+libdivine_la_LDFLAGS = \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -release $(LT_RELEASE)
+
+libdivine_la_LIBADD = \
+ @DIRECTFB_LIBS@
diff --git a/Source/DiVine/lib/Makefile.in b/Source/DiVine/lib/Makefile.in
new file mode 100755
index 0000000..cbeb7f0
--- /dev/null
+++ b/Source/DiVine/lib/Makefile.in
@@ -0,0 +1,496 @@
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = lib
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libdir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libdivine_la_DEPENDENCIES =
+am_libdivine_la_OBJECTS = divine.lo idivine.lo
+libdivine_la_OBJECTS = $(am_libdivine_la_OBJECTS)
+libdivine_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(libdivine_la_LDFLAGS) $(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libdivine_la_SOURCES)
+DIST_SOURCES = $(libdivine_la_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
+DIRECTFB_INTERNAL_CFLAGS = @DIRECTFB_INTERNAL_CFLAGS@
+DIRECTFB_LIBS = @DIRECTFB_LIBS@
+DIVINE_BINARY_AGE = @DIVINE_BINARY_AGE@
+DIVINE_INTERFACE_AGE = @DIVINE_INTERFACE_AGE@
+DIVINE_MAJOR_VERSION = @DIVINE_MAJOR_VERSION@
+DIVINE_MICRO_VERSION = @DIVINE_MICRO_VERSION@
+DIVINE_MINOR_VERSION = @DIVINE_MINOR_VERSION@
+DIVINE_VERSION = @DIVINE_VERSION@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_AGE = @LT_AGE@
+LT_CURRENT = @LT_CURRENT@
+LT_RELEASE = @LT_RELEASE@
+LT_REVISION = @LT_REVISION@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MODULEDIR = @MODULEDIR@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+INCLUDES = \
+ -I$(top_srcdir)/include \
+ @DIRECTFB_INTERNAL_CFLAGS@
+
+lib_LTLIBRARIES = libdivine.la
+libdivine_la_SOURCES = \
+ divine.c \
+ idivine.c
+
+libdivine_la_LDFLAGS = \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -release $(LT_RELEASE)
+
+libdivine_la_LIBADD = \
+ @DIRECTFB_LIBS@
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu lib/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libdivine.la: $(libdivine_la_OBJECTS) $(libdivine_la_DEPENDENCIES)
+ $(libdivine_la_LINK) -rpath $(libdir) $(libdivine_la_OBJECTS) $(libdivine_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/divine.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idivine.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(libdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-libLTLIBRARIES
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am \
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/Source/DiVine/lib/divine.c b/Source/DiVine/lib/divine.c
new file mode 100755
index 0000000..f1e2b2a
--- /dev/null
+++ b/Source/DiVine/lib/divine.c
@@ -0,0 +1,363 @@
+/*
+ (c) Copyright 2000-2002 convergence integrated media GmbH.
+ (c) Copyright 2002 convergence GmbH.
+
+ All rights reserved.
+
+ Written by Denis Oliver Kropp <dok@directfb.org>,
+ Andreas Hundt <andi@fischlustig.de> and
+ Sven Neumann <sven@convergence.de>.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+#include "config.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include <direct/direct.h>
+
+#include <misc/conf.h>
+
+#include "divine.h"
+#include "idivine.h"
+
+
+/**********************************************************************************************************************/
+
+static DFBResult CreateRemote( const char *host, int session, IDiVine **ret_interface );
+
+/**********************************************************************************************************************/
+
+DFBResult
+DiVineInit( int *argc, char *(*argv[]) )
+{
+ DFBResult ret;
+
+#ifdef DSLINUX
+ IDiVine_Requestor_ctor();
+#endif
+
+ ret = dfb_config_init( argc, argv );
+ if (ret)
+ return ret;
+
+ return DFB_OK;
+}
+
+/*
+ * Programs have to call this to get the super interface
+ * which is needed to access other functions
+ */
+DFBResult
+DiVineCreate( IDiVine **interface )
+{
+ DFBResult ret;
+ IDiVine *divine;
+
+ if (!dfb_config) {
+ /* don't use D_ERROR() here, it uses dfb_config */
+ direct_log_printf( NULL, "(!) DiVineCreate: DiVineInit has to be called before DiVineCreate!\n" );
+ return DFB_INIT;
+ }
+
+ if (!interface)
+ return DFB_INVARG;
+
+ direct_initialize();
+
+#ifndef DIRECTFB_PURE_VOODOO
+ if (dfb_config->remote.host)
+ return CreateRemote( dfb_config->remote.host, dfb_config->remote.session, interface );
+
+ DIRECT_ALLOCATE_INTERFACE( divine, IDiVine );
+
+ ret = IDiVine_Construct( divine );
+ if (ret)
+ return ret;
+
+ *interface = divine;
+
+ return DFB_OK;
+#else
+ return CreateRemote( dfb_config->remote.host ?: "", dfb_config->remote.session, interface );
+#endif
+}
+
+/**********************************************************************************************************************/
+
+static DFBResult
+CreateRemote( const char *host, int session, IDiVine **ret_interface )
+{
+ DFBResult ret;
+ DirectInterfaceFuncs *funcs;
+ void *interface;
+
+ D_ASSERT( host != NULL );
+ D_ASSERT( ret_interface != NULL );
+
+ ret = DirectGetInterface( &funcs, "IDiVine", "Requestor", NULL, NULL );
+ if (ret)
+ return ret;
+
+ ret = funcs->Allocate( &interface );
+ if (ret)
+ return ret;
+
+ ret = funcs->Construct( interface, host, session );
+ if (ret)
+ return ret;
+
+ *ret_interface = interface;
+
+ return DFB_OK;
+}
+
+/**********************************************************************************************************************/
+
+struct _DiVine {
+ int fd; /* The file descriptor of the connection (pipe) */
+};
+
+DiVine *
+divine_open( const char *path )
+{
+ int fd;
+ DiVine *divine;
+
+ /* Open the pipe specified by 'path' */
+ fd = open( path, O_WRONLY );
+ if (fd < 0) {
+ perror( path );
+ return NULL;
+ }
+
+ /* Allocate connection object */
+ divine = calloc( 1, sizeof(DiVine) );
+ if (!divine) {
+ fprintf( stderr, "Out of memory!!!\n" );
+ return NULL;
+ }
+
+ /* Fill out connection information */
+ divine->fd = fd;
+
+ /* Return connection object */
+ return divine;
+}
+
+void
+divine_send_event( DiVine *divine, const DFBInputEvent *event )
+{
+ /* Write event to pipe */
+ write( divine->fd, event, sizeof(DFBInputEvent) );
+}
+
+void
+divine_send_symbol( DiVine *divine, DFBInputDeviceKeySymbol symbol )
+{
+ DFBInputEvent event;
+
+ /* Construct 'press' event */
+ event.flags = DIEF_KEYSYMBOL;
+ event.type = DIET_KEYPRESS;
+ event.key_symbol = symbol;
+
+ /* Write 'press' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+
+ /* Turn into 'release' event */
+ event.type = DIET_KEYRELEASE;
+
+ /* Write 'release' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+}
+
+void
+divine_send_identifier( DiVine *divine, DFBInputDeviceKeyIdentifier identifier )
+{
+ DFBInputEvent event;
+
+ /* Construct 'press' event */
+ event.flags = DIEF_KEYID;
+ event.type = DIET_KEYPRESS;
+ event.key_id = identifier;
+
+ /* Write 'press' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+
+ /* Turn into 'release' event */
+ event.type = DIET_KEYRELEASE;
+
+ /* Write 'release' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+}
+
+/* crude hack for minicom vt102 escape sequences */
+void
+divine_send_vt102( DiVine *divine, int size, const char *ansistr )
+{
+ int i;
+
+ for (i = 0; i < size; i++) {
+ DFBInputEvent event;
+ int f = 0;
+
+ /* Construct 'press' event */
+ event.flags = DIEF_KEYSYMBOL;
+ event.type = DIET_KEYPRESS;
+ f = 0;
+
+ /* watch for escape sequences */
+ switch (ansistr[i]) {
+ case 27:
+ if (ansistr[i+1] == '[' || ansistr[i+1] == 'O') {
+ switch (ansistr[i+2]) {
+ case 'F': event.key_symbol = DIKS_END; f = 1; break;
+ case 'H': event.key_symbol = DIKS_HOME; f = 1; break;
+ case 'P': event.key_symbol = DIKS_F1; f = 1; break;
+ case 'Q': event.key_symbol = DIKS_F2; f = 1; break;
+ case 'R': event.key_symbol = DIKS_F3; f = 1; break;
+ case 'S': event.key_symbol = DIKS_F4; f = 1; break;
+ case '1': switch (ansistr[i+3]) {
+ case '6': event.key_symbol = DIKS_F5; break;
+ case '7': event.key_symbol = DIKS_F6; break;
+ case '8': event.key_symbol = DIKS_F7; break;
+ case '9': event.key_symbol = DIKS_F8; break;
+ case '~': event.key_symbol = DIKS_HOME; break;
+ default: break;
+ }
+ f = 3; break;
+ case '2': switch (ansistr[i+3]) {
+ case '0': event.key_symbol = DIKS_F9; break;
+ case '1': event.key_symbol = DIKS_F10; break;
+ case '3': event.key_symbol = DIKS_F11; break;
+ case '4': event.key_symbol = DIKS_F12; break;
+ case '~': event.key_symbol = DIKS_INSERT; break;
+ default: break;
+ }
+ f = 3; break;
+ case '3': event.key_symbol = DIKS_DELETE; f = 3; break;
+ case '5': event.key_symbol = DIKS_PAGE_UP; f = 3; break;
+ case '6': event.key_symbol = DIKS_PAGE_DOWN; f = 3; break;
+ case '7': event.key_symbol = DIKS_STOP; f = 3; break;
+ case 'A': event.key_symbol = DIKS_CURSOR_UP; f = 2; break;
+ case 'B': event.key_symbol = DIKS_CURSOR_DOWN; f = 2; break;
+ case 'C': event.key_symbol = DIKS_CURSOR_RIGHT; f = 2; break;
+ case 'D': event.key_symbol = DIKS_CURSOR_LEFT; f = 2; break;
+ default: break;
+ }
+ break;
+ }
+ else event.key_symbol = DIKS_ESCAPE; break;
+
+ case 127: event.key_symbol = DIKS_BACKSPACE; break;
+ case 10: event.key_symbol = DIKS_ENTER; break;
+
+ /* emulate numbers as coming from keypad */
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ event.key_id = DIKI_KP_0 + ansistr[i] - '0';
+ event.flags |= DIEF_KEYID;
+ /* fallthru */
+
+ default: event.key_symbol = ansistr[i]; break;
+ }
+ i= i + f;
+
+ write( divine->fd, &event, sizeof( DFBInputEvent) );
+
+ event.type = DIET_KEYRELEASE;
+
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+ }
+}
+
+void
+divine_send_motion_absolute( DiVine *divine, int x, int y )
+{
+ DFBInputEvent event;
+
+ /* Construct 'motion' event */
+ event.flags = DIEF_AXISABS;
+ event.type = DIET_AXISMOTION;
+ event.axis = DIAI_X;
+ event.axisabs = x;
+
+ /* Write 'motion' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+
+ /* Construct 'motion' event */
+ event.flags = DIEF_AXISABS;
+ event.type = DIET_AXISMOTION;
+ event.axis = DIAI_Y;
+ event.axisabs = y;
+
+ /* Write 'motion' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+}
+
+void
+divine_send_button_press( DiVine *divine, DFBInputDeviceButtonIdentifier button )
+{
+ DFBInputEvent event;
+
+ /* Construct 'press' event */
+ event.flags = DIEF_NONE;
+ event.type = DIET_BUTTONPRESS;
+ event.button = button;
+
+ /* Write 'press' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+}
+
+void
+divine_send_button_release( DiVine *divine, DFBInputDeviceButtonIdentifier button )
+{
+ DFBInputEvent event;
+
+ /* Construct 'release' event */
+ event.flags = DIEF_NONE;
+ event.type = DIET_BUTTONRELEASE;
+ event.button = button;
+
+ /* Write 'release' event to pipe */
+ write( divine->fd, &event, sizeof(DFBInputEvent) );
+}
+
+void
+divine_close( DiVine *divine )
+{
+ /* Close the pipe */
+ close( divine->fd );
+
+ /* Free connection object */
+ free( divine );
+}
diff --git a/Source/DiVine/lib/idivine.c b/Source/DiVine/lib/idivine.c
new file mode 100755
index 0000000..54ed3e0
--- /dev/null
+++ b/Source/DiVine/lib/idivine.c
@@ -0,0 +1,147 @@
+/*
+ (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
+ (c) Copyright 2000-2004 Convergence (integrated media) GmbH
+
+ All rights reserved.
+
+ Written by Denis Oliver Kropp <dok@directfb.org>,
+ Andreas Hundt <andi@fischlustig.de>,
+ Sven Neumann <neo@directfb.org>,
+ Ville Syrjälä <syrjala@sci.fi> and
+ Claudio Ciccani <klan@users.sf.net>.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+#include <config.h>
+
+#include <direct/debug.h>
+#include <direct/direct.h>
+#include <direct/messages.h>
+
+#include <divine.h>
+
+#include "idivine.h"
+
+
+D_DEBUG_DOMAIN( IDiVine_, "IDiVine", "DiVine Main Interface" );
+
+/**********************************************************************************************************************/
+
+/*
+ * Destructor
+ *
+ * Free data structure and set the pointer to NULL,
+ * to indicate the dead interface.
+ */
+void
+IDiVine_Destruct( IDiVine *thiz )
+{
+ IDiVine_data *data = thiz->priv;
+
+ D_DEBUG_AT( IDiVine_, "%s( %p )\n", __FUNCTION__, thiz );
+
+ divine_close( data->divine );
+
+ DIRECT_DEALLOCATE_INTERFACE( thiz );
+
+ direct_shutdown();
+}
+
+/**********************************************************************************************************************/
+
+static DirectResult
+IDiVine_AddRef( IDiVine *thiz )
+{
+ DIRECT_INTERFACE_GET_DATA(IDiVine)
+
+ D_DEBUG_AT( IDiVine_, "%s( %p )\n", __FUNCTION__, thiz );
+
+ data->ref++;
+
+ return DFB_OK;
+}
+
+static DirectResult
+IDiVine_Release( IDiVine *thiz )
+{
+ DIRECT_INTERFACE_GET_DATA(IDiVine)
+
+ D_DEBUG_AT( IDiVine_, "%s( %p )\n", __FUNCTION__, thiz );
+
+ if (--data->ref == 0)
+ IDiVine_Destruct( thiz );
+
+ return DFB_OK;
+}
+
+static DFBResult
+IDiVine_SendEvent( IDiVine *thiz,
+ const DFBInputEvent *event )
+{
+ DIRECT_INTERFACE_GET_DATA(IDiVine)
+
+ D_DEBUG_AT( IDiVine_, "%s( %p, %p )\n", __FUNCTION__, thiz, event );
+
+ divine_send_event( data->divine, event );
+
+ return DFB_OK;
+}
+
+static DFBResult
+IDiVine_SendSymbol( IDiVine *thiz,
+ DFBInputDeviceKeySymbol symbol )
+{
+ DIRECT_INTERFACE_GET_DATA(IDiVine)
+
+ D_DEBUG_AT( IDiVine_, "%s( %p, 0x%08x )\n", __FUNCTION__, thiz, symbol );
+
+ divine_send_symbol( data->divine, symbol );
+
+ return DFB_OK;
+}
+
+/**********************************************************************************************************************/
+
+/*
+ * Constructor
+ *
+ * Fills in function pointers and intializes data structure.
+ */
+DFBResult
+IDiVine_Construct( IDiVine *thiz )
+{
+ DIRECT_ALLOCATE_INTERFACE_DATA(thiz, IDiVine)
+
+ D_DEBUG_AT( IDiVine_, "%s( %p )\n", __FUNCTION__, thiz );
+
+ data->ref = 1;
+ data->divine = divine_open( "/tmp/divine" );
+
+ if (!data->divine) {
+ D_ERROR( "%s: divine_open() failed!\n", __FUNCTION__ );
+ DIRECT_DEALLOCATE_INTERFACE( thiz );
+ return DFB_FAILURE;
+ }
+
+ thiz->AddRef = IDiVine_AddRef;
+ thiz->Release = IDiVine_Release;
+ thiz->SendEvent = IDiVine_SendEvent;
+ thiz->SendSymbol = IDiVine_SendSymbol;
+
+ return DFB_OK;
+}
+
diff --git a/Source/DiVine/lib/idivine.h b/Source/DiVine/lib/idivine.h
new file mode 100755
index 0000000..37c91c1
--- /dev/null
+++ b/Source/DiVine/lib/idivine.h
@@ -0,0 +1,50 @@
+/*
+ (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
+ (c) Copyright 2000-2004 Convergence (integrated media) GmbH
+
+ All rights reserved.
+
+ Written by Denis Oliver Kropp <dok@directfb.org>,
+ Andreas Hundt <andi@fischlustig.de>,
+ Sven Neumann <neo@directfb.org>,
+ Ville Syrjälä <syrjala@sci.fi> and
+ Claudio Ciccani <klan@users.sf.net>.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+#ifndef __IDIVINE_H__
+#define __IDIVINE_H__
+
+#include <divine.h>
+
+/*
+ * private data struct of IDiVine
+ */
+typedef struct {
+ int ref; /* reference counter */
+
+ DiVine *divine;
+} IDiVine_data;
+
+/*
+ * IDiVine constructor/destructor
+ */
+DFBResult IDiVine_Construct( IDiVine *thiz );
+
+void IDiVine_Destruct ( IDiVine *thiz );
+
+#endif