From libhid-discuss@lists.ailab.ch Mon Oct 4 00:11:51 2004 From: libhid-discuss@lists.ailab.ch (Charles Lepple) Date: Sun, 03 Oct 2004 17:11:51 -0600 Subject: [commits] [svn] r151 - trunk/doc Message-ID: Author: clepple-guest Date: Sun Oct 3 17:11:51 2004 New Revision: 151 Modified: trunk/doc/frontpage.dox Log: Starting to document svn transition Modified: trunk/doc/frontpage.dox ============================================================================== --- trunk/doc/frontpage.dox (original) +++ trunk/doc/frontpage.dox Sun Oct 3 17:11:51 2004 @@ -50,7 +50,13 @@ target="_blank">libhid-cvs [ archives ] -- a mailing list receiving -CVS commit mails. If you want to closely track libhid development, you +CVS commit mails. This list is being superceded by libhid-commits (below). + +
  • libhid-commits [ archives ] -- a mailing list receiving +Subversion (svn) commit mails. If you want to closely track libhid development, you probably want to subscribe to this list.
  • @@ -204,7 +210,7 @@ width="88" />

    -$Id: frontpage.dox,v 1.2 2004/09/22 02:26:41 clepple Exp $
    +$Id$
     
    */ From libhid-discuss@lists.ailab.ch Mon Oct 4 00:47:45 2004 From: libhid-discuss@lists.ailab.ch (Martin F. Krafft) Date: Sun, 03 Oct 2004 17:47:45 -0600 Subject: [commits] libhid r152 - trunk/doc/www Message-ID: Author: madduck Date: Sun Oct 3 17:47:44 2004 New Revision: 152 Modified: trunk/doc/www/index.html Log: Subsume commit mailing list with subversion. Modified: trunk/doc/www/index.html ============================================================================== --- trunk/doc/www/index.html (original) +++ trunk/doc/www/index.html Sun Oct 3 17:47:44 2004 @@ -61,7 +61,14 @@ target="_blank">libhid-cvs [ archives ] -- a mailing list receiving -CVS commit mails. If you want to closely track libhid development, you +CVS commit mails. This list is being superceded by libhid-commits +(below). + +
  • libhid-commits [ archives ] -- a mailing list receiving +Subversion (svn) commit mails. If you want to closely track libhid development, you probably want to subscribe to this list.
  • @@ -215,7 +222,7 @@ width="88" />

    -$Id: index.html,v 1.12 2004/09/22 02:26:41 clepple Exp $
    +$Id$
     
    From libhid-discuss@lists.ailab.ch Mon Oct 4 00:56:13 2004 From: libhid-discuss@lists.ailab.ch (Charles Lepple) Date: Sun, 03 Oct 2004 17:56:13 -0600 Subject: [commits] libhid r153 - trunk/doc/www Message-ID: Author: clepple-guest Date: Sun Oct 3 17:56:12 2004 New Revision: 153 Modified: trunk/doc/www/index.html Log: Added a bit more explanation to Subversion transition info Modified: trunk/doc/www/index.html ============================================================================== --- trunk/doc/www/index.html (original) +++ trunk/doc/www/index.html Sun Oct 3 17:56:12 2004 @@ -28,7 +28,7 @@ href="mailto:libhid-discuss@lists.ailab.ch">contact us!). Until one is ready, you are welcome to download the software and try it out, it should be easy to use if you have some knowledge of C and are willing to read someone -else 's code. Documentation does not yet exist, but we are working to provide +else's code. Documentation does not yet exist, but we are working to provide it using Doxygen (again, if you want to help, please contact us!).

    @@ -83,15 +83,28 @@

    libhid is available through various ways. In the following, we list the possibilities in decreasing order of preference/currency:

    -

    CVS

    +

    Subversion (svn)

    -

    The CVS tree contains the most recent version of libhid. You can check it -out in read-only mode with the following commands (the password is empty, so -just hit enter when prompted):

    +

    The Subversion +tree will be the preferred development repository from here forward. +The CVS version history is available in the Subversion repository as +well.

    + +

    To check out the latest version of libhid into the directory +libhid-svn, ensure that Subversion is installed, and use the +following command:

    -cvs -d :pserver:anoncvs@cvs.ailab.ch:/home/cvs/external login
    -cvs -z3 -d :pserver:anoncvs@cvs.ailab.ch:/home/cvs/external co libhid +svn co svn://svn.debian.org/libhid/trunk libhid-svn +
    + +

    To retrieve a particular released (or otherwise tagged) version of +libhid, simply modify the checkout URL. You may have to browse with +viewcvs (see below) to find the exact tag name. As an example, let's +retrieve version 0.2.7-1:

    + + +svn co svn://svn.debian.org/libhid/tags/libhid_0_2_7-1 libhid-0.2.7-1

    Instructions on how to compile the code are available in the mailing list if you have questions, comments, or problems.

    +

    The Subversion tree can also be viewed online via viewcvs.

    + +

    If you want to contribute, please send a patch or two. We cannot give out +write access to the repository just like that, but if you show us a patch, +we'll conclude that you are serious about developing libhid. Your +account would then be added to the libhid project on Alioth, effectively +giving you write access.

    + +

    CVS

    + +

    The CVS tree contains all changes to libhid through October 2004. You can +check it out in read-only mode with the following commands (the password is +empty, so just hit enter when prompted):

    + + +cvs -d :pserver:anoncvs@cvs.ailab.ch:/home/cvs/external login
    +cvs -z3 -d :pserver:anoncvs@cvs.ailab.ch:/home/cvs/external co libhid +
    +

    In addition, the CVS tree can be viewed online.

    -

    If you want to contribute, please send a patch or two. We cannot give out -write access to the CVS just like that, but if you show us a patch, we'll -conclude that you are serious about developing libhid, and you'll get your -account.

    -

    Debian

    libhid has entered Debian, but the versions may be a little behind. You can From libhid-discuss@lists.ailab.ch Mon Oct 4 01:10:42 2004 From: libhid-discuss@lists.ailab.ch (Martin F. Krafft) Date: Sun, 03 Oct 2004 18:10:42 -0600 Subject: [commits] libhid r154 - trunk/doc/www Message-ID: Author: madduck Date: Sun Oct 3 18:10:41 2004 New Revision: 154 Modified: trunk/doc/www/index.html Log: wow! a conflict! resolved... Modified: trunk/doc/www/index.html ============================================================================== --- trunk/doc/www/index.html (original) +++ trunk/doc/www/index.html Sun Oct 3 18:10:41 2004 @@ -116,10 +116,13 @@ href="http://svn.debian.org/viewcvs/libhid/">online via viewcvs.

    If you want to contribute, please send a patch or two. We cannot give out -write access to the repository just like that, but if you show us a patch, -we'll conclude that you are serious about developing libhid. Your -account would then be added to the libhid project on Alioth, effectively -giving you write access.

    +write access to the Subversion tree just like that, but if you show us +a patch, we'll conclude that you are serious about developing libhid, and give +you permission. You will need an account on Alioth. You can Alioth for free (and need not be affiliated with +Debian).

    CVS

    @@ -143,8 +146,8 @@ following to your /etc/apt/sources.list file:

    -deb http://people.debian.org/~madduck/stage ./
    -deb-src http://people.debian.org/~madduck/stage ./ +deb http://people.debian.org/~madduck/packages/stage/libhid ./
    +deb-src http://people.debian.org/~madduck/packages/stage/libhid ./

    and then install it. You may leave out python-hid if you do not @@ -157,7 +160,7 @@

    Tarball

    Of course, libhid is available as a tarball from the Debian repository. Simply find the latest file with the extension .orig.tar.gz, download it, unpack it, and then do the standard

    From libhid-discuss@lists.ailab.ch Mon Oct 4 01:17:12 2004 From: libhid-discuss@lists.ailab.ch (Martin F. Krafft) Date: Sun, 03 Oct 2004 18:17:12 -0600 Subject: [commits] libhid r155 - trunk/doc/www Message-ID: Author: madduck Date: Sun Oct 3 18:17:10 2004 New Revision: 155 Modified: trunk/doc/www/index.html Log: added reference to the trunk. fixed some typos. Modified: trunk/doc/www/index.html ============================================================================== --- trunk/doc/www/index.html (original) +++ trunk/doc/www/index.html Sun Oct 3 18:17:10 2004 @@ -91,7 +91,7 @@ well.

    To check out the latest version of libhid into the directory -libhid-svn, ensure that Subversion is installed, and use the +libhid-svn, ensure that Subversion is installed, and use the following command:

    @@ -113,16 +113,18 @@ if you have questions, comments, or problems.

    The Subversion tree can also be viewed online via viewcvs.

    +href="http://svn.debian.org/viewcvs/libhid/">online via viewcvs. The +latest version is available at the trunk.

    If you want to contribute, please send a patch or two. We cannot give out write access to the Subversion tree just like that, but if you show us a patch, we'll conclude that you are serious about developing libhid, and give you permission. You will need an account on Alioth. You can Alioth for free (and need not be affiliated with -Debian).

    +href="http://alioth.debian.org/account/register.php" target="_blank">sign +up for free (and need not be affiliated with Debian).

    CVS

    @@ -142,8 +144,8 @@

    Debian

    libhid has entered Debian, but the versions may be a little behind. You can -use my (madduck) repository to always get the latest versions. Simply add the -following to your /etc/apt/sources.list file:

    +use my (madduck's) repository to always get the latest versions. Simply add +the following to your /etc/apt/sources.list file:

    deb http://people.debian.org/~madduck/packages/stage/libhid ./
    From libhid-discuss@lists.ailab.ch Mon Oct 4 02:29:44 2004 From: libhid-discuss@lists.ailab.ch (Martin F. Krafft) Date: Sun, 03 Oct 2004 19:29:44 -0600 Subject: [commits] libhid r156 - trunk/test Message-ID: Author: madduck Date: Sun Oct 3 19:29:43 2004 New Revision: 156 Modified: trunk/test/test_libhid.c Log: incorporated return code checking, kudos to Kevin Douglas Modified: trunk/test/test_libhid.c ============================================================================== --- trunk/test/test_libhid.c (original) +++ trunk/test/test_libhid.c Sun Oct 3 19:29:43 2004 @@ -21,26 +21,55 @@ hid_set_usb_debug(0); hid_return ret = hid_init(); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_init failed with return code %d\n", ret); + return 1; + } HIDInterface* hid = hid_new_HIDInterface(); + if (hid == 0) { + fprintf(stderr, "hid_new_HIDInterface() failed, out of memory?\n"); + return 1; + } + char* serial = "01816"; HIDInterfaceMatcher matcher = { 0x06c2, 0x0038, match_serial_number, (void*)serial, strlen(serial)+1 }; ret = hid_force_open(hid, 0, &matcher, 3); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_force_open failed with return code %d\n", ret); + return 1; + } ret = hid_write_identification(stdout, hid); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_write_identification failed with return code %d\n", ret); + return 1; + } ret = hid_dump_tree(stdout, hid); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_dump_tree failed with return code %d\n", ret); + return 1; + } int path1[] = { 0xffa00001, 0xffa00002, 0xffa10003 }; int path2[] = { 0xffa00001, 0xffa00002, 0x0 }; int path3[] = { 0xffa00001, 0xffa00002, 0xffa10004 }; ret = hid_close(hid); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_close failed with return code %d\n", ret); + return 1; + } hid_delete_HIDInterface(&hid); ret = hid_cleanup(); + if (ret != HID_RET_SUCCESS) { + fprintf(stderr, "hid_cleanup failed with return code %d\n", ret); + return 1; + } return 0; }