Merge lp:~oif-packaging/frame/ubuntu.v1.1.2 into lp:frame/ubuntu

Proposed by Henrik Rydberg
Status: Merged
Merged at revision: 24
Proposed branch: lp:~oif-packaging/frame/ubuntu.v1.1.2
Merge into: lp:frame/ubuntu
Diff against target: 509 lines (+159/-53)
8 files modified
ChangeLog (+33/-0)
configure (+56/-28)
configure.ac (+7/-3)
debian/changelog (+8/-0)
debian/control (+1/-1)
tools/utouch-frame-test-mtdev.1 (+2/-2)
tools/utouch-frame-test-mtdev.c (+50/-17)
tools/utouch-frame-test-xi2.1 (+2/-2)
To merge this branch: bzr merge lp:~oif-packaging/frame/ubuntu.v1.1.2
Reviewer Review Type Date Requested Status
Chase Douglas (community) Approve
Henrik Rydberg (community) Approve
Review via email: mp+53505@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Henrik Rydberg (rydberg) wrote :

Packaging for the evemu replay feature in utouch-frame-test-mtdev.

Revision history for this message
Henrik Rydberg (rydberg) wrote :

Added an xi-enabled version in the utouch unstable ppa. Test tool: utouch-frame-test-xi2

Revision history for this message
Henrik Rydberg (rydberg) wrote :

This branch was approved, merged and released already.

review: Approve
Revision history for this message
Henrik Rydberg (rydberg) wrote :

No it is not, sorry about that.

Revision history for this message
Henrik Rydberg (rydberg) wrote :

It seems the FFe has been approved, so a review of this branch and subsequent upload before adding more new stuff seems like a good idea.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Looks good to me. I think we should aim for oneiric with this though, so lets merge it and get it into a daily build. We can do an upstream release when we want to too.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-02-24 15:01:51 +0000
+++ ChangeLog 2011-03-16 07:08:31 +0000
@@ -1,4 +1,37 @@
1------------------------------------------------------------1------------------------------------------------------------
2revno: 29
3tags: v1.1.2
4committer: Henrik Rydberg <rydberg@bitmath.org>
5branch nick: trunk
6timestamp: Tue 2011-03-15 20:15:23 +0100
7message:
8 Release version 1.1.2
9
10 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
11------------------------------------------------------------
12revno: 28
13committer: Henrik Rydberg <rydberg@bitmath.org>
14branch nick: trunk
15timestamp: Tue 2011-03-15 20:15:17 +0100
16message:
17 Allow replay of device data through utouch-frame
18
19 This patch adds replay capabilities to test-mtdev.
20 If the specified device points to a valid evemu file,
21 the device properties will be extracted from that file
22 instead. Any appended event data will be replayed in
23 realtime. In practise, test-mtdev can be executed with
24 a test file.
25
26 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
27------------------------------------------------------------
28revno: 27 [merge]
29committer: Stephen M. Webb <stephen.webb@canonical.com>
30branch nick: utouch-frame
31timestamp: Tue 2011-03-15 15:04:33 -0400
32message:
33 Added a dependency check on xorg-server-dev when building with xi2 support.
34------------------------------------------------------------
2revno: 2635revno: 26
3tags: v1.1.136tags: v1.1.1
4committer: Henrik Rydberg <rydberg@bitmath.org>37committer: Henrik Rydberg <rydberg@bitmath.org>
538
=== modified file 'configure'
--- configure 2011-02-24 15:03:01 +0000
+++ configure 2011-03-16 07:08:31 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for Touch Frame Library 1.1.1.3# Generated by GNU Autoconf 2.67 for Touch Frame Library 1.1.2.
4#4#
5#5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -698,8 +698,8 @@
698# Identity of this package.698# Identity of this package.
699PACKAGE_NAME='Touch Frame Library'699PACKAGE_NAME='Touch Frame Library'
700PACKAGE_TARNAME='utouch-frame'700PACKAGE_TARNAME='utouch-frame'
701PACKAGE_VERSION='1.1.1'701PACKAGE_VERSION='1.1.2'
702PACKAGE_STRING='Touch Frame Library 1.1.1'702PACKAGE_STRING='Touch Frame Library 1.1.2'
703PACKAGE_BUGREPORT=''703PACKAGE_BUGREPORT=''
704PACKAGE_URL=''704PACKAGE_URL=''
705705
@@ -1440,7 +1440,7 @@
1440 # Omit some internal or obsolete options to make the list less imposing.1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF1442 cat <<_ACEOF
1443\`configure' configures Touch Frame Library 1.1.1 to adapt to many kinds of systems.1443\`configure' configures Touch Frame Library 1.1.2 to adapt to many kinds of systems.
14441444
1445Usage: $0 [OPTION]... [VAR=VALUE]...1445Usage: $0 [OPTION]... [VAR=VALUE]...
14461446
@@ -1510,7 +1510,7 @@
15101510
1511if test -n "$ac_init_help"; then1511if test -n "$ac_init_help"; then
1512 case $ac_init_help in1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of Touch Frame Library 1.1.1:";;1513 short | recursive ) echo "Configuration of Touch Frame Library 1.1.2:";;
1514 esac1514 esac
1515 cat <<\_ACEOF1515 cat <<\_ACEOF
15161516
@@ -1626,7 +1626,7 @@
1626test -n "$ac_init_help" && exit $ac_status1626test -n "$ac_init_help" && exit $ac_status
1627if $ac_init_version; then1627if $ac_init_version; then
1628 cat <<\_ACEOF1628 cat <<\_ACEOF
1629Touch Frame Library configure 1.1.11629Touch Frame Library configure 1.1.2
1630generated by GNU Autoconf 2.671630generated by GNU Autoconf 2.67
16311631
1632Copyright (C) 2010 Free Software Foundation, Inc.1632Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1904,7 +1904,7 @@
1904This file contains any messages produced by compilers while1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.1905running configure, to aid debugging if configure makes a mistake.
19061906
1907It was created by Touch Frame Library $as_me 1.1.1, which was1907It was created by Touch Frame Library $as_me 1.1.2, which was
1908generated by GNU Autoconf 2.67. Invocation command line was1908generated by GNU Autoconf 2.67. Invocation command line was
19091909
1910 $ $0 $@1910 $ $0 $@
@@ -2724,7 +2724,7 @@
27242724
2725# Define the identity of the package.2725# Define the identity of the package.
2726 PACKAGE='utouch-frame'2726 PACKAGE='utouch-frame'
2727 VERSION='1.1.1'2727 VERSION='1.1.2'
27282728
27292729
2730cat >>confdefs.h <<_ACEOF2730cat >>confdefs.h <<_ACEOF
@@ -11282,12 +11282,12 @@
11282 pkg_cv_EVEMU_CFLAGS="$EVEMU_CFLAGS"11282 pkg_cv_EVEMU_CFLAGS="$EVEMU_CFLAGS"
11283 elif test -n "$PKG_CONFIG"; then11283 elif test -n "$PKG_CONFIG"; then
11284 if test -n "$PKG_CONFIG" && \11284 if test -n "$PKG_CONFIG" && \
11285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"utouch-evemu >= 1.0\""; } >&511285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"utouch-evemu >= 1.0.5\""; } >&5
11286 ($PKG_CONFIG --exists --print-errors "utouch-evemu >= 1.0") 2>&511286 ($PKG_CONFIG --exists --print-errors "utouch-evemu >= 1.0.5") 2>&5
11287 ac_status=$?11287 ac_status=$?
11288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11289 test $ac_status = 0; }; then11289 test $ac_status = 0; }; then
11290 pkg_cv_EVEMU_CFLAGS=`$PKG_CONFIG --cflags "utouch-evemu >= 1.0" 2>/dev/null`11290 pkg_cv_EVEMU_CFLAGS=`$PKG_CONFIG --cflags "utouch-evemu >= 1.0.5" 2>/dev/null`
11291else11291else
11292 pkg_failed=yes11292 pkg_failed=yes
11293fi11293fi
@@ -11298,12 +11298,12 @@
11298 pkg_cv_EVEMU_LIBS="$EVEMU_LIBS"11298 pkg_cv_EVEMU_LIBS="$EVEMU_LIBS"
11299 elif test -n "$PKG_CONFIG"; then11299 elif test -n "$PKG_CONFIG"; then
11300 if test -n "$PKG_CONFIG" && \11300 if test -n "$PKG_CONFIG" && \
11301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"utouch-evemu >= 1.0\""; } >&511301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"utouch-evemu >= 1.0.5\""; } >&5
11302 ($PKG_CONFIG --exists --print-errors "utouch-evemu >= 1.0") 2>&511302 ($PKG_CONFIG --exists --print-errors "utouch-evemu >= 1.0.5") 2>&5
11303 ac_status=$?11303 ac_status=$?
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; }; then11305 test $ac_status = 0; }; then
11306 pkg_cv_EVEMU_LIBS=`$PKG_CONFIG --libs "utouch-evemu >= 1.0" 2>/dev/null`11306 pkg_cv_EVEMU_LIBS=`$PKG_CONFIG --libs "utouch-evemu >= 1.0.5" 2>/dev/null`
11307else11307else
11308 pkg_failed=yes11308 pkg_failed=yes
11309fi11309fi
@@ -11323,14 +11323,14 @@
11323 _pkg_short_errors_supported=no11323 _pkg_short_errors_supported=no
11324fi11324fi
11325 if test $_pkg_short_errors_supported = yes; then11325 if test $_pkg_short_errors_supported = yes; then
11326 EVEMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "utouch-evemu >= 1.0" 2>&1`11326 EVEMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "utouch-evemu >= 1.0.5" 2>&1`
11327 else11327 else
11328 EVEMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "utouch-evemu >= 1.0" 2>&1`11328 EVEMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "utouch-evemu >= 1.0.5" 2>&1`
11329 fi11329 fi
11330 # Put the nasty error message in config.log where it belongs11330 # Put the nasty error message in config.log where it belongs
11331 echo "$EVEMU_PKG_ERRORS" >&511331 echo "$EVEMU_PKG_ERRORS" >&5
1133211332
11333 as_fn_error $? "Package requirements (utouch-evemu >= 1.0) were not met:11333 as_fn_error $? "Package requirements (utouch-evemu >= 1.0.5) were not met:
1133411334
11335$EVEMU_PKG_ERRORS11335$EVEMU_PKG_ERRORS
1133611336
@@ -11389,12 +11389,21 @@
11389 pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"11389 pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
11390 elif test -n "$PKG_CONFIG"; then11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \11391 if test -n "$PKG_CONFIG" && \
11392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1\""; } >&511392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext
11393 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1") 2>&511393 xi >= 1.4.1.99.1
11394 inputproto >= 2.0.99.1
11395 xorg-server\""; } >&5
11396 ($PKG_CONFIG --exists --print-errors "x11 xext
11397 xi >= 1.4.1.99.1
11398 inputproto >= 2.0.99.1
11399 xorg-server") 2>&5
11394 ac_status=$?11400 ac_status=$?
11395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396 test $ac_status = 0; }; then11402 test $ac_status = 0; }; then
11397 pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1" 2>/dev/null`11403 pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext
11404 xi >= 1.4.1.99.1
11405 inputproto >= 2.0.99.1
11406 xorg-server" 2>/dev/null`
11398else11407else
11399 pkg_failed=yes11408 pkg_failed=yes
11400fi11409fi
@@ -11405,12 +11414,21 @@
11405 pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"11414 pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
11406 elif test -n "$PKG_CONFIG"; then11415 elif test -n "$PKG_CONFIG"; then
11407 if test -n "$PKG_CONFIG" && \11416 if test -n "$PKG_CONFIG" && \
11408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1\""; } >&511417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext
11409 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1") 2>&511418 xi >= 1.4.1.99.1
11419 inputproto >= 2.0.99.1
11420 xorg-server\""; } >&5
11421 ($PKG_CONFIG --exists --print-errors "x11 xext
11422 xi >= 1.4.1.99.1
11423 inputproto >= 2.0.99.1
11424 xorg-server") 2>&5
11410 ac_status=$?11425 ac_status=$?
11411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412 test $ac_status = 0; }; then11427 test $ac_status = 0; }; then
11413 pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1" 2>/dev/null`11428 pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext
11429 xi >= 1.4.1.99.1
11430 inputproto >= 2.0.99.1
11431 xorg-server" 2>/dev/null`
11414else11432else
11415 pkg_failed=yes11433 pkg_failed=yes
11416fi11434fi
@@ -11430,14 +11448,23 @@
11430 _pkg_short_errors_supported=no11448 _pkg_short_errors_supported=no
11431fi11449fi
11432 if test $_pkg_short_errors_supported = yes; then11450 if test $_pkg_short_errors_supported = yes; then
11433 XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1" 2>&1`11451 XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext
11452 xi >= 1.4.1.99.1
11453 inputproto >= 2.0.99.1
11454 xorg-server" 2>&1`
11434 else11455 else
11435 XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1" 2>&1`11456 XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext
11457 xi >= 1.4.1.99.1
11458 inputproto >= 2.0.99.1
11459 xorg-server" 2>&1`
11436 fi11460 fi
11437 # Put the nasty error message in config.log where it belongs11461 # Put the nasty error message in config.log where it belongs
11438 echo "$XINPUT_PKG_ERRORS" >&511462 echo "$XINPUT_PKG_ERRORS" >&5
1143911463
11440 as_fn_error $? "Package requirements (x11 xext xi >= 1.4.1.99.1 inputproto >= 2.0.99.1) were not met:11464 as_fn_error $? "Package requirements (x11 xext
11465 xi >= 1.4.1.99.1
11466 inputproto >= 2.0.99.1
11467 xorg-server) were not met:
1144111468
11442$XINPUT_PKG_ERRORS11469$XINPUT_PKG_ERRORS
1144311470
@@ -11470,6 +11497,7 @@
1147011497
11471fi11498fi
1147211499
11500
11473fi11501fi
1147411502
11475# Extract the first word of "a2x", so it can be a program name with args.11503# Extract the first word of "a2x", so it can be a program name with args.
@@ -12062,7 +12090,7 @@
12062# report actual input values of CONFIG_FILES etc. instead of their12090# report actual input values of CONFIG_FILES etc. instead of their
12063# values after options handling.12091# values after options handling.
12064ac_log="12092ac_log="
12065This file was extended by Touch Frame Library $as_me 1.1.1, which was12093This file was extended by Touch Frame Library $as_me 1.1.2, which was
12066generated by GNU Autoconf 2.67. Invocation command line was12094generated by GNU Autoconf 2.67. Invocation command line was
1206712095
12068 CONFIG_FILES = $CONFIG_FILES12096 CONFIG_FILES = $CONFIG_FILES
@@ -12128,7 +12156,7 @@
12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=112156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"12157ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12130ac_cs_version="\\12158ac_cs_version="\\
12131Touch Frame Library config.status 1.1.112159Touch Frame Library config.status 1.1.2
12132configured by $0, generated by GNU Autoconf 2.67,12160configured by $0, generated by GNU Autoconf 2.67,
12133 with options \\"\$ac_cs_config\\"12161 with options \\"\$ac_cs_config\\"
1213412162
1213512163
=== modified file 'configure.ac'
--- configure.ac 2011-02-24 15:03:01 +0000
+++ configure.ac 2011-03-16 07:08:31 +0000
@@ -1,7 +1,7 @@
1# Initialize Autoconf1# Initialize Autoconf
2AC_PREREQ([2.60])2AC_PREREQ([2.60])
3AC_INIT([Touch Frame Library],3AC_INIT([Touch Frame Library],
4 [1.1.1],4 [1.1.2],
5 [],5 [],
6 [utouch-frame])6 [utouch-frame])
7AC_CONFIG_SRCDIR([Makefile.am])7AC_CONFIG_SRCDIR([Makefile.am])
@@ -23,13 +23,17 @@
23AC_PROG_INSTALL23AC_PROG_INSTALL
2424
25PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.1])25PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.1])
26PKG_CHECK_MODULES([EVEMU], [utouch-evemu >= 1.0])26PKG_CHECK_MODULES([EVEMU], [utouch-evemu >= 1.0.5])
2727
28AC_ARG_WITH([xi], AS_HELP_STRING([--with-xi], [Build with XI2.1 support]))28AC_ARG_WITH([xi], AS_HELP_STRING([--with-xi], [Build with XI2.1 support]))
29AM_CONDITIONAL([HAVE_XI], [test "x$with_xi" != "x"])29AM_CONDITIONAL([HAVE_XI], [test "x$with_xi" != "x"])
3030
31AS_IF([test "x$with_xi" = "xyes"], [31AS_IF([test "x$with_xi" = "xyes"], [
32 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.4.1.99.1] [inputproto >= 2.0.99.1])32 PKG_CHECK_MODULES(XINPUT, x11 xext
33 [xi >= 1.4.1.99.1]
34 [inputproto >= 2.0.99.1]
35 [xorg-server])
36
33])37])
34 38
35AC_CHECK_PROG([ASCIIDOC], [a2x], [a2x])39AC_CHECK_PROG([ASCIIDOC], [a2x], [a2x])
3640
=== modified file 'debian/changelog'
--- debian/changelog 2011-02-24 16:17:17 +0000
+++ debian/changelog 2011-03-16 07:08:31 +0000
@@ -1,3 +1,11 @@
1utouch-frame (1.1.2-0ubuntu1) UNRELEASED; urgency=low
2
3 * New upstream release.
4 * Feature freeze exception LP: #735672
5 * Updated dependency evemu-1.0.5
6
7 -- Henrik Rydberg <rydberg@bitmath.org> Wed, 16 Mar 2011 08:08:58 +0100
8
1utouch-frame (1.1.1-0ubuntu1) natty; urgency=low9utouch-frame (1.1.1-0ubuntu1) natty; urgency=low
210
3 [ Henrik Rydberg ]11 [ Henrik Rydberg ]
412
=== modified file 'debian/control'
--- debian/control 2011-02-18 14:37:53 +0000
+++ debian/control 2011-03-16 07:08:31 +0000
@@ -13,7 +13,7 @@
13 libtool,13 libtool,
14 cdbs,14 cdbs,
15 libmtdev-dev (>= 1.1),15 libmtdev-dev (>= 1.1),
16 libutouch-evemu-dev (>= 1.0)16 libutouch-evemu-dev (>= 1.0.5)
17Standards-Version: 3.9.117Standards-Version: 3.9.1
18Vcs-Bzr: https://code.launchpad.net/~utouch-packaging/utouch-frame/ubuntu18Vcs-Bzr: https://code.launchpad.net/~utouch-packaging/utouch-frame/ubuntu
1919
2020
=== modified file 'tools/utouch-frame-test-mtdev.1'
--- tools/utouch-frame-test-mtdev.1 2011-02-24 15:01:51 +0000
+++ tools/utouch-frame-test-mtdev.1 2011-03-16 07:08:31 +0000
@@ -2,12 +2,12 @@
2.\" Title: utouch-frame-test-mtdev2.\" Title: utouch-frame-test-mtdev
3.\" Author: [see the "AUTHOR" section]3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 02/24/20115.\" Date: 03/15/2011
6.\" Manual: \ \&6.\" Manual: \ \&
7.\" Source: \ \&7.\" Source: \ \&
8.\" Language: English8.\" Language: English
9.\"9.\"
10.TH "UTOUCH\-FRAME\-TEST\" "1" "02/24/2011" "\ \&" "\ \&"10.TH "UTOUCH\-FRAME\-TEST\" "1" "03/15/2011" "\ \&" "\ \&"
11.\" -----------------------------------------------------------------11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------13.\" -----------------------------------------------------------------
1414
=== modified file 'tools/utouch-frame-test-mtdev.c'
--- tools/utouch-frame-test-mtdev.c 2011-02-23 10:25:28 +0000
+++ tools/utouch-frame-test-mtdev.c 2011-03-16 07:08:31 +0000
@@ -36,25 +36,32 @@
36 struct evemu_device *evemu;36 struct evemu_device *evemu;
37 struct mtdev *mtdev;37 struct mtdev *mtdev;
38 utouch_frame_handle fh;38 utouch_frame_handle fh;
39 struct stat fs;
40 FILE *fptest;
41 int fd;
39};42};
4043
41static int init_evemu(struct frame_test *test, int fd)44static int init_evemu(struct frame_test *test)
42{45{
43 test->evemu = evemu_new(NULL);46 test->evemu = evemu_new(NULL);
44 if (!test->evemu)47 if (!test->evemu)
45 return -1;48 return -1;
46 return evemu_extract(test->evemu, fd);49 if (test->fptest)
50 return evemu_read(test->evemu, test->fptest) <= 0;
51 return evemu_extract(test->evemu, test->fd);
47}52}
4853
49static int init_mtdev(struct frame_test *test, int fd)54static int init_mtdev(struct frame_test *test)
50{55{
51 test->mtdev = mtdev_new_open(fd);56 if (test->fptest)
57 return 0;
58 test->mtdev = mtdev_new_open(test->fd);
52 if (!test->mtdev)59 if (!test->mtdev)
53 return -1;60 return -1;
54 return 0;61 return 0;
55}62}
5663
57static int init_frame(struct frame_test *test, int fd)64static int init_frame(struct frame_test *test)
58{65{
59 test->fh = utouch_frame_new_engine(100, 32, 100);66 test->fh = utouch_frame_new_engine(100, 32, 100);
60 if (!test->fh)67 if (!test->fh)
@@ -65,46 +72,71 @@
65static void destroy_all(struct frame_test *test)72static void destroy_all(struct frame_test *test)
66{73{
67 utouch_frame_delete_engine(test->fh);74 utouch_frame_delete_engine(test->fh);
68 mtdev_close_delete(test->mtdev);75 if (test->mtdev)
76 mtdev_close_delete(test->mtdev);
69 evemu_delete(test->evemu);77 evemu_delete(test->evemu);
78 if (test->fptest)
79 fclose(test->fptest);
80 else
81 ioctl(test->fd, EVIOCGRAB, 0);
82 close(test->fd);
70 memset(test, 0, sizeof(*test));83 memset(test, 0, sizeof(*test));
71}84}
7285
73static void loop_device(struct frame_test *test, int fd)86static void loop_device(struct frame_test *test)
74{87{
88 FILE * fp = test->fptest;
75 const struct utouch_frame *frame;89 const struct utouch_frame *frame;
76 struct input_event ev;90 struct input_event ev;
7791
78 while (!mtdev_idle(test->mtdev, fd, 5000)) {92 if (fp) {
79 while (mtdev_get(test->mtdev, fd, &ev, 1) > 0) {93 struct timeval evtime;
94 memset(&evtime, 0, sizeof(evtime));
95 while (evemu_read_event_realtime(fp, &ev, &evtime) > 0) {
80 frame = utouch_frame_pump_mtdev(test->fh, &ev);96 frame = utouch_frame_pump_mtdev(test->fh, &ev);
81 if (frame)97 if (frame)
82 report_frame(frame);98 report_frame(frame);
83 }99 }
100 } else {
101 while (!mtdev_idle(test->mtdev, test->fd, 5000)) {
102 while (mtdev_get(test->mtdev, test->fd, &ev, 1) > 0) {
103 frame = utouch_frame_pump_mtdev(test->fh, &ev);
104 if (frame)
105 report_frame(frame);
106 }
107 }
84 }108 }
85}109}
86110
87int main(int argc, char *argv[])111int main(int argc, char *argv[])
88{112{
89 struct frame_test test;113 struct frame_test test;
90 int fd;
91114
92 if (argc < 2) {115 if (argc < 2) {
93 fprintf(stderr, "Usage: %s <device>\n", argv[0]);116 fprintf(stderr, "Usage: %s <device>\n", argv[0]);
94 return -1;117 return -1;
95 }118 }
96119
97 fd = open(argv[1], O_RDONLY | O_NONBLOCK);120 memset(&test, 0, sizeof(test));
98 if (fd < 0) {121
122 test.fd = open(argv[1], O_RDONLY | O_NONBLOCK);
123 if (test.fd < 0) {
99 fprintf(stderr, "error: could not open device\n");124 fprintf(stderr, "error: could not open device\n");
100 return -1;125 return -1;
101 }126 }
102 if (ioctl(fd, EVIOCGRAB, 1)) {127 if (fstat(test.fd, &test.fs)) {
128 fprintf(stderr, "error: could not stat the device\n");
129 return -1;
130 }
131 if (!test.fs.st_rdev)
132 test.fptest = fdopen(test.fd, "r");
133
134 if (!test.fptest && ioctl(test.fd, EVIOCGRAB, 1)) {
103 fprintf(stderr, "error: could not grab the device\n");135 fprintf(stderr, "error: could not grab the device\n");
104 return -1;136 return -1;
105 }137 }
106138
107 if (init_evemu(&test, fd)) {139 if (init_evemu(&test)) {
108 fprintf(stderr, "error: could not describe device\n");140 fprintf(stderr, "error: could not describe device\n");
109 return -1;141 return -1;
110 }142 }
@@ -115,19 +147,20 @@
115147
116 fprintf(stderr, "device: %s\n", evemu_get_name(test.evemu));148 fprintf(stderr, "device: %s\n", evemu_get_name(test.evemu));
117149
118 if (init_mtdev(&test, fd)) {150 if (init_mtdev(&test)) {
119 fprintf(stderr, "error: could not init mtdev\n");151 fprintf(stderr, "error: could not init mtdev\n");
120 return -1;152 return -1;
121 }153 }
122 if (init_frame(&test, fd)) {154 if (init_frame(&test)) {
123 fprintf(stderr, "error: could not init frame\n");155 fprintf(stderr, "error: could not init frame\n");
124 return -1;156 return -1;
125 }157 }
126158
127 report_device_caps(test.fh);159 report_device_caps(test.fh);
128160
129 loop_device(&test, fd);161 loop_device(&test);
130162
131 destroy_all(&test);163 destroy_all(&test);
164
132 return 0;165 return 0;
133}166}
134167
=== modified file 'tools/utouch-frame-test-xi2.1'
--- tools/utouch-frame-test-xi2.1 2011-02-24 15:01:51 +0000
+++ tools/utouch-frame-test-xi2.1 2011-03-16 07:08:31 +0000
@@ -2,12 +2,12 @@
2.\" Title: utouch-frame-test-xi22.\" Title: utouch-frame-test-xi2
3.\" Author: [see the "AUTHOR" section]3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 02/24/20115.\" Date: 03/15/2011
6.\" Manual: \ \&6.\" Manual: \ \&
7.\" Source: \ \&7.\" Source: \ \&
8.\" Language: English8.\" Language: English
9.\"9.\"
10.TH "UTOUCH\-FRAME\-TEST\" "1" "02/24/2011" "\ \&" "\ \&"10.TH "UTOUCH\-FRAME\-TEST\" "1" "03/15/2011" "\ \&" "\ \&"
11.\" -----------------------------------------------------------------11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------13.\" -----------------------------------------------------------------

Subscribers

People subscribed via source and target branches

to all changes: