Added pure virtual Modem base class
[barry/pauldeden.git] / ChangeLog
blobe89768b00a7eae306ef4c3d4665a8af455e7f73f
1 Release: version 0.13 - 2008/05/??
2 ------------------------------------------------------------------------------
3 2008/05/15
4         - mention CVS and git on main documentation "how to" list
5         - moved PPP filter logic into its own class
6         - enhanced PPP filter class to support prepending of
7                 empty bytes if needed, in order to reduce data
8                 copying, and clarified why there is no GetBuffer()
9         - added ProbeResult::HasIpModem() to determine whether
10                 IpModem endpoints are available
11         - added pure virtual Modem base class for common
12                 modem-oriented API (only Open and Write so far)
13 2008/05/10
14         - modified the planned version numbering scheme in doc/VersionNotes,
15                 so that a 1.0 is possible, with 1.50 as the devel series
16 2008/05/09
17         - continuing to update html documentation in preparation for
18                 0.13 release
19 2008/05/02
20         - removed -fvisibility-inlines-hidden compile options since some
21                 distros have old or broken compilers or libraries where
22                 the build breaks looking for STL templates (Ubuntu 7.10,
23                 I'm looking at you...)
24         - changed brecsum so usage information is displayed automatically
25                 if no command line arguments are specified
26         - added opensync-plugin to maintainer test scripts, and added
27                 ubuntu710 to the test build sequence
28 2008/05/01
29         - updated doc/TroubleShooting.txt
30         - removed usb_control message check from IpModem endpoint probing
31                 in src/probe.cc, since some devices, like the 8700
32                 have both RIM_UsbSerData mode and IpModem mode.
33         - fixed serialization code for Calendar record class, in s11n-boost.h
34         - made UnknownField's data member into its own type,
35                 so that when building records, it doesn't get processed
36                 like a null terminated string... also added more
37                 BuildField() helper functions for accuracy
38         - fixed missing fields in the Calendar record build process
39         - added Calendar to list of Builders in tools/btool...
40                 it is now possible to run: btool -s "Calendar" -f datafile
41         - added tools/brecsum program, which calculates SHA1 checksums
42                 on database records, for testing
43         - added brecsum to debian and rpm builds
44         - added recurrence builder function to Calendar record builder code
45                 which completes builder support
46                 Checksums from the following commands now match:
47                         brecsum -d Calendar > sum1.txt
48                         btool -d Calendar -f calendar.dat
49                         btool -s Calendar -f calendar.dat
50                         brecsum -d Calendar > sum2.txt
51                         diff -u <(sort sum1.txt) <(sort sum2.txt)
52 2008/04/29
53         - applied Jason Thomas's ACLOCAL_FLAGS patch to make autoreconf
54                 work again... Thanks!
55         - applied Jason Thomas's debian build dependency patch
56         - updated AUTHORS
57 2008/04/26
58         - started documentation overhaul in doc/www, putting the commonly
59                 asked questions right on the front page, and making it more
60                 goal-oriented, so it is hopefully easier to use
61 2008/04/25
62         - updated NEWS file
63         - fixed error messages in m_desktop.cc that still referred
64                 to Controller
65 2008/04/25
66         - major merge of barry-b1-socket-arch-branch into MAIN.
67           The following is the changelog from that branch, which is now MAIN.
69         2008/04/25
70                 - added thread-safe logging mechanism
71                 - added preliminary IP modem support... requires a recent
72                         device... serial mode is not yet supported
73                 - merged HEAD changes
74         2008/03/27
75                 - changed Barry::Init() so programmer can choose where
76                         debug and exception information goes, instead of
77                         always to stdout
78         2008/03/22
79                 - merged HEAD changes
80         2008/03/20
81                 - fixed bug in probe class, which missed storing the PIN
82                         number in ProbeResult
83                 - also added ProbeResult constructor
84                 - merged changes from visibility branch:
85                         - GCC visibility support, limiting what symbols are
86                           visible in the shared library, libbarry... this makes
87                           a drastic reduction in the symbol table, and should
88                           avoid future name clashes with other libraries such
89                           as opensync
90                           See: http://gcc.gnu.org/wiki/Visibility
91                         - vformat_() function name changes
92         2008/03/07
93                 - merged HEAD changes
94                 - added threads library to new bs11nread build
95         2008/02/28
96                 - fixed variable size issues in btranslate.cc, evident with
97                         some compilers on 64 bit systems
98                 - merged HEAD changes
99                 - added comments for threaded usage in usbwrap.h
100                 - changed router to use SocketId typedef, for clarity
101         2008/02/22
102                 - fixed const char warnings from newer gcc compilers
103                 - controller object now saves a copy of the probe result
104                         and provides an API to retrieve it
105                 - added sanity checks to m_serial.cc
106                 - fixed probe behaviour so that a USB probe on an endpoint
107                         that doesn't respond won't halt everything
108                 - refactored some of the probe code, and added checks for
109                         IP modem endpoints
110                 - added Probe::DumpAll()
111                 - added Open() call to pppob.cc (not yet complete)
112         2008/01/30
113                 - implemented dataqueue.{h,cc}... looks ready for testing,
114                         once things compile again
115                 - changed free list copy in router.cc to use
116                         DataQueue::append_from()
117                 - finished packet.{h,cc} implementation, ready for testing
118                 - finished controller.{h,cc}, ready for testing
119                 - finished m_desktop.{h,cc}, ready for testing
120                 - added skeleton m_serial.cc
121                 - the base library and utilities compile again!
122                 - added constructor for SocketZero(queue)
123                 - fixed ErrnoError::GetMsg()
124                 - updated GUI and opensync plugin to compile with new API
125                 - moved Raw Send/Receive socket functions to private
126                 - fixed packet header size bug in socket that caused
127                         socket ID override to be skipped
128                 - fixed incorrect use of gettimeofday()
129                 - fixed race condition where Controller could destroy
130                         the Usb::Device object before the SocketRoutingQueue
131                         was done with it
132                 - fixed segfault in SocketZero::RawSend() when a router
133                         was in use
134                 - fixed Open() bugs in btool... Open() must be outside of loops
135                 - btool uses the router thread now, for testing
136                 - partially implemented m_serial.{h,cc}... needs testing
137                 - added automatic buffer allocation to SocketRoutingQueue
138                         constructor
139                 - made AllocateBuffers() a little smarter, so it was not
140                         pure appending
141                 - added a context data pointer to the SocketRoutingQueue
142                         RegisterInterest callback
143                 - added RegisterInterest functionality to Socket class
144                 - added exceptions on router read errors in socketzero
145         2008/01/26
146                 - implemented router.{h,cc}... looks ready for testing,
147                         once things compile again
148         2008/01/25
149                 - merged HEAD changes
150                 - added router.cc and continued work on new arch
151                 - merged HEAD changes for 2008 copyright statements
152                 - added scoped_lock.h
153                 - added ErrnoError exception class
154                 - documented Controller / SocketRoutingQueue behaviour
155                 - more router implementation
156                 - simplified pppob
157                 - audit and cleanup of socket.{h,cc} code... looks ready
158                         for testing now, once things compile again
159                 - removed FIXME in router.*
160                 - removed pthread header from pppob as it is not needed
161         2007/11/22
162                 - merged HEAD changes
163         2007/10/25
164                 - merged HEAD changes
165         2007/10/19
166                 - branch started, to track development of the new socket
167                         architecture, and new mode architecture, needed
168                         to support GPRS modem support, and threaded
169                         USB access
170                 - committed work-in-progress... does not compile
172 2008/04/10
173         - added Tasks and Memos to TODO list
174 2008/03/27
175         - added support for Blackberry 8120, which has a unique Product ID
176                 Sourceforge tracker ID: 1829537
177 2008/03/22
178         - removed TimeZones from TODO list, as it is done
179 2008/03/21
180         - version bump:
181                 - configure.ac
182                 - src/Makefile.am
183                 - src/version.cc
184                 - gui/src/BackupWindow.cc
185                 - src/Doxyfile
186                 - rpm/barry.spec
187                 - debian/changelog
188                 - opensync-plugin/src/barry_sync.cc
189         - added GCC visibility support, limiting what symbols are visible
190                 in the shared library, libbarry... this makes a drastic
191                 reduction in the symbol table, and should avoid future
192                 name clashes with other libraries such as opensync
193                 See: http://gcc.gnu.org/wiki/Visibility
195 Release: version 0.12 - 2008/03/21
196 ------------------------------------------------------------------------------
197 2008/03/21
198         - changed maintainer script to use CVS export instead of checkout,
199                 to avoid the CVS directories
200         - added support for building Debian source packages with proper
201                 diff.gz and dsc files
202         - fixed find warning in maintainer/make-rpm.sh
203         - added support for Ubuntu binary packages to the maintainer build
204                 scripts
205 2008/03/13
206         - renamed all vformat_ and VFormat symbols in opensync plugin's
207                 copy of vformat code, so they don't conflict with the
208                 real opensync libraries
209 2008/03/07
210         - updated the install.php web page with Paul Dugas's notes on
211                 building RPM's from CVS
212         - fixed problem in tools/Makefile.am where bs11nread was included
213                 in build, even if --with-boost was not specified
214                 on ./configure command line
215 2008/03/06
216         - changed format of Boost serialization file output from btool,
217                 so that the database name is stored as the first line
218                 of the file
219         - added tools/bs11nread.cc to read Boost serialization file data
220                 written by btool
221         - minor adjustments to r_message.h and r_timezone.h
222         - updated s11n-boost.h header to match record classes
223 2008/03/01
224         - applied Time Zone parsing patches from Brian Edginton
225         - added Time Zones to list of supported parsers in btool.cc
226 2008/02/29
227         - changed configure.ac to use bzip2 for "make dist".. thanks to
228                 Paul Dugas for the tip
229 2008/02/28
230         - committed Chris Burgess's update to the roadmap document
231         - applied Paul Dugas's x86-64 build patch, except the
232                 tar.bz2/tar.gz change
233         - updated AUTHORS file
234 2008/02/22
235         - fixed configure.ac's --with-boost option, so that without args,
236                 it defaults to using --includedir and --libdir settings,
237                 instead of hardcoding /usr/include and /usr/lib... this
238                 should allow smarter compiling on 64 bit systems
239         - updated RPM spec file to use new --with-boost behaviour
240         - ahem, fixed configure.ac again... don't use --includedir and
241                 --libdir, as those are install targets... oops.
242                 Don't add path overrides at all if not specified.
243 2008/01/25
244         - fixed locale issues in src/data.cc
245         - updated copyright statments for 2008
246 2007/12/21
247         - applied wording correction patch to btool from Matt LaPlante
248 2007/12/07
249         - changed hard coded databases names in btool to calls to
250                 <recordclass>::GetDBName()
251         - version bump:
252                 - configure.ac
253                 - src/Makefile.am
254                 - src/version.cc
255                 - gui/src/BackupWindow.cc
256                 - src/Doxygen
257                 - rpm/barry.spec
258                 - debian/changelog
259                 - opensync-plugin/src/barry_sync.cc
260         - updated TODO
262 Release: version 0.11 - 2007/12/01
263 ------------------------------------------------------------------------------
264 2007/12/01
265         - fixed null pointer bug in Probe class (bug #1842407)
266         - added pause to maintainer release script
267 2007/11/30
268         - version bump:
269                 - configure.ac
270                 - src/Makefile.am
271                 - src/version.cc
272                 - gui/src/BackupWindow.cc
273                 - src/Doxygen
274                 - rpm/barry.spec
275                 - debian/changelog
276                 - opensync-plugin/src/barry_sync.cc
278 Release: version 0.10 - 2007/11/30
279 ------------------------------------------------------------------------------
280 2007/11/30
281         - added support to the usbwrap Match class to limit its
282                 search by busname / devname
283         - added support to the Probe class to limit its search for
284                 Blackberry devices to a given bus or device name
285         - added command line options to btool for the above Probe
286                 bus/device names, and updated the man page
287         - updated the www docs with regard to the new usb_storage
288                 behaviour and the new blacklist files... less
289                 concern about berry_charge and usb_storage conflicts
290         - added bidentify tool and accompanying man page
291         - fixed bug in rpm maintenance script that used the wrong
292                 spec file for opensuse
293 2007/11/29
294         - added better error checking to breset
295         - commented the sleep() for the 8830
296         - added code to handle the race condition where usb_storage
297                 claims the device before bcharge arrives on the scene,
298                 by asking the kernel to detach the driver from
299                 the Mass Storage interface... this change makes it
300                 possible to run bcharge, moving from 0006 to 0004
301                 to 0001 and back to 0004, all *while* usb_storage
302                 is loaded!
303         - changed Probe class behaviour so that it will not throw an
304                 exception on Device Busy (-EBUSY) but instead
305                 log the error in an internal array and keep going.
306                 This makes it possible to use btool and barrybackup
307                 with two devices plugged in at the same time.
308                 BACKWARD COMPATIBILITY NOTE: this changes initializaion
309                         behaviour, but in practice, it should only
310                         make applications look more capable, not less.
311         - updated btool to show errors logged by Probe
312         - added message to specify which PIN device is being used by btool
313         - added explanatory comments to udev rules files, about why
314                 they are so verbose
315 2007/11/27
316         - added ClearHalt() calls to probe and controller classes, just
317                 before any communication happens... the 8830 seems
318                 to need this
319 2007/11/23
320         - added usbwrap.cc:GetConfiguration()
321         - added code to check whether the configuration is the one
322                 we require, before calling SetConfiguration()... and not
323                 to call it if unnecessary.  This allows us to run
324                 at the same time as usb_storage.
325                 Thanks to Martin Owens for not letting this issue go. :-)
326         - added sleep to bcharge, before calling usb_reset()... the
327                 Blackberry 8830 behaves like a Pearl device in that
328                 it has mass storage support, but behaves like a Classic
329                 in that it resets itself... the usb_reset() seems
330                 to reset it back to 0006.  The sleep allows the device
331                 to disappear via its own reset, and let usb_reset()
332                 fail naturally on these devices.
333                 This is not an ideal solution... mainly for testing.
334 2007/11/09
335         - added modprobe/blacklist-berry_charge as per Simon Ruggier's
336                 suggestion.  Thanks also to Niels de Vos for a similar
337                 suggestion.
338         - fixed udev rules to work on both old and new distros
339                 Thanks to Duncan Mak for the bug report.
340         - AUTHORS update
341         - fixed string comparison to use case insensitive compare in
342                 opensync plugin
343         - updated Debian package to include modprobe blacklist file
344         - updated rpm spec file to include modprobe blacklist file
345         - split the maintenance scripts into release and test, so
346                 that release package builds can be done faster
347 2007/10/26
348         - opensync plugin fixes:
349                 - fixed memory leak in vBase::GetAttr()
350                 - added support in vformat parser to parse "blocks"
351                         and keep track of the hierarchy when
352                         parsing an iCalendar, etc.
353                 - added support for searching for attributes only
354                         inside certain blocks (i.e. find first
355                         DTSTART in VEVENT block, not VTIMEZONE block)
356 2007/10/25
357         - fixed bug in Calendar::Clear, missing the Free / Class
358                 member variables, leaving them uninitialized
359         - added examples/addcalendar.cc
360         - added more logging to the opensync plugin, logging the
361                 ToBarry conversion results
362         - added code to force struct tm.tm_isdst to -1 before calling
363                 mktime, in vformat.c
364                 - fixed typo in previous fix
365 2007/10/12
366         - renamed ktrans and translate to bktrans and btranslate to avoid
367                 file name clashes with libtranslate of Gnome
368                 Closes bug #1812410 reported by Troy Engel.
369         - version bump:
370                 - configure.ac
371                 - src/Makefile.am
372                 - src/version.cc
373                 - gui/src/BackupWindow.cc
374                 - src/Doxygen
375                 - rpm/barry.spec
376                 - debian/changelog
377                 - opensync-plugin/src/barry_sync.cc
378         - fixed missing default config file in the debian package for
379                 the opensync plugin
380                 Closes bug #1812224 reported by Ariel (adonatti).
381         - added debian dbg packages for tracing segfaults
382         - modified maintainer scripts so debug packages would reference
383                 source code located in /usr/src/barry-0.9, etc.
385 Release: version 0.9 - 2007/10/12
386 ------------------------------------------------------------------------------
387 2007/09/29
388         - adjusted autosuspend disabling code in bcharge, based on new
389                 information on how kernels 2.6.21 / 2.6.22 work.
390                 See bcharge.cc for comments.  If device/power/level or
391                 device/power/autosuspend exist, charging should now work
392                 without recompiling the kernel.
393         - updated website docs with autosuspend info
394 2007/09/27
395         - large update to the doc/www web pages, moving some of the
396                 information in README files to html format, so that it
397                 is commonly available on the web
398         - added step in maintenance scripts to automatically build the
399                 .html files in doc/www when making a tarball release
400 2007/09/22
401         - added libopensync 0.22 version requirement to barry.spec file,
402                 but it doesn't seem to work on OpenSuSE 10.2, where it's
403                 needed.... hmmmm
404 2007/09/21
405         - updated README to mention new tree build configure options
406         - fixed the configure scripts and makefiles so that when building
407                 with custom CXXFLAGS and LDFLAGS environment variables,
408                 it doesn't break the full-tree build mode, when
409                 using --enable-gui and/or --enable-opensync-plugin
410         - added config.h.in~ to buildgen.sh clean target
411         - converted Debian build scripts to use cdbs
412         - added opensync plugin binary package for Debian
413         - added "Getting Started" section to web pages, as well as an
414                 explanatory document for various system requirements
415         - turned on opensync build in RPM maintainer scripts
416 2007/09/20
417         - added filename to power/state error message in bcharge.cc
418         - adjusted maintainer scripts to automatically adjust barry.spec
419                 for opensuse rpm builds
420 2007/09/13
421         - fixed some of the release build scripts and added support for
422                 automated opensuse 10.2 builds
423                 - fixed build target to i386
424                 - changed scripts to add to PKG_CONFIG_PATH variable instead
425                         of overwriting it
426 2007/09/07
427         - added website docs to doc/www... these are out of date at the
428                 moment, and hopefully by including them here, they
429                 will be updated more frequently
430 2007/09/05
431         - applied Simon Ruggier's build system patch that allowed a build
432                 of all 3 components from the root directory and fixed the
433                 configure scripts to support external build directories
434         - reordered clean commands in the buildgen.sh scripts, and removed
435                 the INSTALL files, since they are auto-generated by autoconf
436         - removed extraneous buildgen.sh calls in maintainer scripts
437         - added Simon Ruggier to AUTHORS
438         - added explanatory note to 3 stage test build process in
439                 maintainer script
440 2007/08/24
441         - fixed Category handling in the Contact record class, to
442                 parse the comma separated string into an array,
443                 and back
444                 Note: this involves a change to the boost serialization
445                         and will affect backward compatibility with
446                         old serialization datafiles
447         - added Category to examples/addcontact.cc
448         - added Category support to the opensync plugin
449 2007/08/23
450         - fixed wrong read/write in btool output (oops)
451         - added BadSize exception, and changed CheckSize() function
452                 to throw it on error
453         - changed backup GUI to catch BadSize exceptions on initial
454                 connect, and try a reset if that error occurs, since
455                 that likely means the device didn't shutdown properly
456         - fixed in opensync plugin:
457                 - some vcard data contains types codes in capital letters,
458                         so added lower case conversion routine
459                 - changed the order of address lines, so that address1
460                         is the street, address2 is the extended address,
461                         and address3 is the PO Box.  The Blackberry
462                         doesn't seem to have any PO Box field.
463 2007/08/20
464         - added -e endpoint override option to btool
465         - added status message to endpoint override
466 2007/08/18
467         - added configure check for strnlen, and implementation for
468                 systems that don't have it, or that have it implemented
469                 incorrectly.  Went a little paranoid here, since
470                 AC_FUNC_STRNLEN doesn't set a define in config.h,
471                 so I had to do it manually, and check in case autoconf
472                 changes in the future... ugh.  See src/strnlen.h for
473                 the gory details.
474         - added code in probe.cc to fetch the device's description.
475                 The description is now part of the probe results
476                 along with the PIN.  Updates to protocol.h, adding
477                 a new attribute definition.
478                 Thanks to Rick Scott for pointing out the code in
479                 XmBlackberry where he implemented this first.
480         - fixed header dependency in record-internal.h
481         - updated the "required autoconf" version to 2.61 for root build
482         - moved nested structs out of the record classes that contain them,
483                 in order to better support SWIG and Python
484 2007/08/17
485         - changed bcharge to use getopt() for its argument processing
486         - added options -p and -s to bcharge, to adjust usb suspend
487                 settings automatically where possible
488         - updated the udev rules to use the new bcharge settings
489         - updated the bcharge man page with the new arguments
490 2007/08/16
491         - cleaned up Usb exception handling, moving libusb error code
492                 processing into the Usb::Error exception class.
493                 error.cc is now an empty shell
494         - added return codes to the Usb::Error exceptions
495         - removed aboutdialog.{h,cc} from the backup GUI since even
496                 Debian stable now has up-to-date gtkmm libraries
497         - added more user friendly error message for the "device busy"
498                 case, recommending 'rmmod usb_storage'.
499 2007/08/09
500         - added better error checking to bcharge.cc
501         - version bump:
502                 - configure.ac
503                 - src/Makefile.am
504                 - src/version.cc
505                 - gui/src/BackupWindow.cc
506                 - src/Doxygen
507                 - rpm/barry.spec
508                 - debian/changelog
509                 - opensync-plugin/src/barry_sync.cc
510         - removed usb_set_configuration() check from bcharge.cc, since
511                 that may fail under normal operation, in this case
513 Release: version 0.8 - 2007/08/03
514 ------------------------------------------------------------------------------
515 2007/08/03
516         - moved Interface implementation to usbwrap.cc file
517         - added dout debugging messages to usbwrap.cc
518         - clarified unhandled packet error message in socket.cc
519         - added temporary workaround in opensync-plugin environment's
520                 Reconnect(), for odd message seen on newer Blackberry
521                 devices
522         - fixing issues with Brian Edginton's MessageRecord patch (2007/06/29)
523                 - fixed missing size check in message oriented ParseHeader()
524                 - fixed endian conversion issues (also found one pre-existing
525                         endian bug in the process)
526                 - moved message timestamp converter code to time.cc
527         - added Barry version number to opensync plugin name
528         - changed maintainer scripts and rpm.spec to use bzip2 instead of gzip
529         - added opensync-plugin to configure script build
530         - added -S option to btool, to list supported parsers and builders
531         - slight change to opensync-plugin/buildgen.sh to cleanup config.h.in~
532         - opensync-plugin/README update
533         - added opensync-plugin/patches for others who may be building and
534                 testing the plugin with OpenSync 0.22
535         - added debian package build scripts to maintainer/
536 2007/08/01
537         - added entry to doc/TroubleShooting.txt
538 2007/07/28
539         - added doc/TroubleShooting.txt
540 2007/07/27
541         - opensync plugin:
542                 - fixed bug in vcard.cc that was using the FN field
543                         for the broken-down name instead of N
544                 - added dbId and dbName to DatabaseSyncState
545                 - added Reconnect() functionality to BarryEnvironment class
546                         and moved connect logic out of barry_sync.cc
547                 - changed the batch commit functionality in barry_sync.cc
548                         to single-change-commit.  Why?  Because opensync
549                         0.22 groups all batch changes into one group
550                         and calls one batch commit function, even if you
551                         registered two.  Moving to single change commit
552                         mode removes a chunk of unneccessary code
553                         from the plugin as well, and can in theory
554                         ease memory pressure in the library.
555                 - added FinishSync() to perform actions needed on successful
556                         syncing completion
557                 - disconnect on successful sync completion, and reconnect,
558                         since the device's dirty flags don't seem to
559                         be updated until a disconnect occurs.
560 2007/07/26
561         - added ReadDataArray() to data.h, using an istream instead of
562                 requiring a file
563         - added raw data version of BuildField() to record-internal.h
564                 This is so that btool doesn't add extra null terminators
565                 to unknown data, when restoring with option -s
566         - fixed bugs in r_contact.cc:
567                 - fixed bug that caused a LastName/FirstName swap
568                         if FirstName was empty and you wrote a contact
569                         record into the device.... First/Last Name
570                         fields are position sensitive, and the code
571                         was missing the empty FirstName case on writing
572                 - fixed bug in BuildFields() and Dump() where they
573                         were not updated to handle the new field
574                         table added for the postal address changes
575                         on 2007/07/20, oops
576         - opensync plugin:
577                 - changed the plugin config file, so it is possible to
578                         turn debug output on/off without recompiling
579                 - moved the standalone Map2Uid() function into
580                         the DatabaseSyncState class, and changed the
581                         code to produce "contact-#" and "calendar-#"
582                         UID strings, instead of just numbers
583                 - changed default PIN to -1, so that if the user doesn't
584                         configure properly, it will fail... this is a
585                         safety measure to avoid syncing with different
586                         devices and corrupting the cache/idmap...
587                         this should be fixed someday, to handle this
588                         automatically
589                         On second thought... is this right?  Perhaps
590                         it is better to fail if the PIN is not what
591                         is expected, so a user doesn't accidentally
592                         sync the wrong device and lose data.
593                         Actions to take on new PIN:
594                                 - force slow_sync, or
595                                 - fail
596                 - incorporated the new VCardConverter code into the
597                         main barry_sync.cc plugin code
598                 - fixed bug that did not clear the devices dirty flags
599                         in the case where a sync only read data from it,
600                         and didn't write
601                 - changed PIN error message number to hex
602 2007/07/20
603         - minor wording change in backup GUI prompt: "Backup working..." to
604                 "Backup in progress..."
605         - renamed Contact class's Title field to JobTitle for clarity
606         - added record function ParseFieldString(), which properly handles
607                 strings from the device that have multiple null terminators,
608                 and changed the record parsing code to use this new function
609         - moved FullName() function from ldif.cc to r_contact.cc since it
610                 is generally useful in areas outside of LDIF processing
611         - refactored postal addresses in the Contact record class into
612                 a new class called PostalAddress
613         - renamed Address class in record.h to EmailAddress
614         - moved Contact::GetPostalAddress() to record.cc as part of the
615                 new PostalAddress class and renamed it
616                 PostalAddress::GetLabel()
617         - opensync plugin:
618                 - refactored vformat helpers into separate base class
619                         called vBase
620                 - added vCard converter class
621                 - commented out the code that skipped over the adding
622                         of empty attribute values and parameters,
623                         since VCARD depends on some of this behaviour
624                 - movified vformat.c:vformat_find_attribute() to take
625                         an extra nth argument, in order to search
626                         for multiple attributes with the same name...
627                         the way this is coded is a bit inefficient...
628                         but we're moving away from vformat when we move
629                         to OpenSync 0.3x / 0.40, so this is just temporary
630                         pain
631 2007/07/19
632         - added SUBSYSTEM=="usb_device" to example udev rules, in order
633                 to avoid running bcharge for each endpoint that is
634                 added by udev, when first plugged in.  Running bcharge
635                 back-to-back multiple times can crash some
636                 Blackberries.
637 2007/07/14
638         - opensync plugin:
639                 - fixed ID mapping bug in the case of a non-numeric UID
640                         from syncing external -> Barry, and then the
641                         new Barry ID would look like a new change
642                         when syncing back from Barry -> external.
643                 - added support for slow sync
644                 - added clear() to idmap class
645                 - added vformat attr parameter extraction class
646                 - added more trace logging during vformat/Barry conversions
647                 - added Notification time support
648                 - handled "all day" vformat special case, when DTEND
649                         does not exist in a vformat data block
650         - changed the min1900_t time conversion functions to handle
651                 the 0xffffffff special case, when notifications
652                 are turned off on a calendar event (src/time.cc)
653         - also made the calendar data dump output clearer for
654                 disabled timestamps, and added debug output
655                 for the raw min1900 value, in case there are more
656                 special cases in the future
657 2007/07/13
658         - fixed null pointer access in opensync's HasMultipleVEvents()
659 2007/07/12
660         - upper management directive: revert all OpenSync 0.3x changes
661                 and proceed with OpenSync 0.22.  Reverting the
662                 opensync-plugin/src tree to Barry 0.7 status.
663 2007/07/06
664         - reorganized exception and trace code in opensync plugin
665         - added XmlToCalendar() function, based on unfinished opensync
666                 library API that is not yet finished... will be
667                 committed to opensync svn tree when complete
668         - added OSyncXMLField logger to plugin trace class
669 2007/06/29
670         - applied email MessageRecord patch from Brian Edginton (thanks!)
671         - updated Message::Dump() to output more valid mbox data...
672                 the goal is to be able to do:
673                         btool -d "Messages" > email.mbox
674                         mutt -f email.mbox
675         - changed some TODO's to FIXME's to keep it grep-consistent
676         - applied Folder support patch from Brian Edginton
677         - fixed pedantic compile warnings, and changed order in src/Makefile.am
678         - removed unneeded cast in src/r_folder.cc
679 2007/06/28
680         - minor adjustment to ctags building in buildgen.sh
681         - applied patch from Brian Edginton for better boost detection
682                 in configure.ac
683         - added boost usage message to btool -h output
684 2007/06/21
685         - more porting of OpenSync module to 0.30
686         - added ctags build for opensync source tree to buildgen.sh
687 2007/06/14
688         - changed PKG_CONFIG_PATH setting in rpm script, so that systems
689                 like SuSE that have an extensive PKG_CONFIG_PATH
690                 in general use will not break on build
691         - added PKG_CONFIG_PATH to debian script too, just in case :-)
692         - added debian/changelog to doc/ReleaseChecklist.txt
693         - added comment to rpm/barry.spec regarding SuSE RPM builds
694 2007/06/08
695         - applied patch from Niels de Vos fixing debian package build
696                 dependency
697         - applied Brian Edginton's Saved Email Messages patch
698         - updated r_saved_messages.cc comment to match header
699         - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
700                 SetIds() is already there
701         - removed Address version of operator<<() from message related headers
702                 and moved into record.h
703         - added std::hex to message related dumps, and changed output to
704                 be more mbox-like
705         - updated doc/CodingStyle.txt to cover switch() statements
706         - opensync compiles again, with 0.30!  (not functional yet)
707                 - moving closer to more modular and reusable plugin functions
708         - updated release checklist for opensync version number
709 2007/06/07
710         - added doc/CodingStyle.txt... preliminary version
711 2007/06/06
712         - applied Brian Edginton's PIN message patch
713         - changes to PIN message patch:
714                 - fixed missing backslash in src/Makefile.am
715                 - fixed tab alignment throughout
716                 - removed typedef from Address struct
717                 - added clear() to Address... might as well, if it it is
718                         going to be a standalone type
719                 - fixed missing comma in PINMessageFieldLinks table
720                 - changed MessageRecordId in PINMessage to load from a new
721                         uint32_t field in CommonField, instead of piggy
722                         backing on a field for other use
723         - did some testing and found that PINMessage's MessageRecordId
724                 is the same as the RecordId given through the SetIds()
725                 API... but these Id's are duplicated in the protocol...
726                 RecordId is stored in the protocol header, while
727                 MessageRecordId is stored in the record it self as
728                 a common field... added RecType and RecordId to
729                 PIN Message so that we store both of these
730         - updated AUTHORS
731 2007/05/27
732         - added item to gui/TODO
733         - applied Brian Edginton's s11n-boost.h patch
734 2007/05/25
735         - renamed template values to more consistent naming scheme
736         - applied memos and tasks patch from Brian Edginton, slightly
737                 modified to split into the new separate files system
738         - changes to memos and tasks classes:
739                 - reformatted the code to match coding style
740                         (come on Brian) :-)
741                 - added copyright notice
742                 - changed class to singular (Memo, not Memos)
743                 - placed in Barry namespace
744                 - added #ifdef header protectors
745                 - added new files to Makefile.am
746                 - added new r_*.h headers to record.h
747         - added support for Memos and Tasks to tools/btool.cc, based on
748                 Brian Edginton's patch
749                 (currently commented out, for Boost library reasons):
750         - added doc/CommitPolicy.txt
751         - updated AUTHORS
752 2007/05/24
753         - added ctags generation to buildgen.sh
754         - applied record.{h,cc} fix patch from Brian Edginton
755                 - ClassFlag
756                 - FreeBusyFlag
757                 - Clear() fixes
758         - fixed broken formatting in above patch
759         - refactored record parser classes into separate files for each
760         - changed the ConvertHtoB<> template to inline, as it caused
761                 linker errors with the new file layout
762 2007/05/17
763         - fixed bug in Debian packaging that put util commands in
764                 /bin and /sbin instead of /usr/bin and /usr/sbin
765         - commited byteswap.h replacement code from gm2net
766         - backup gui:
767                 - removed unneeded debug messages on stdout
768                 - changed the default for debug output to "off"
769                         and added a command line option to turn
770                         it on if necessary  (--debug-output)
771                 - command line option --help now also works
772         - fixed bug in Calendar class where it didn't initialize
773                 RecType properly... and cleaned up other RecType
774                 code to use the GetDefaultRecType() functions,
775                 localizing the constants in one place
776 2007/05/11
777         - applied patches from Brian Edginton, parsing more
778                 fields in Contact and Calendar records
779         - added Brian Edginton to AUTHORS
780         - reformatted record.{h,cc} to match the rest of the code,
781                 removed commented out code, and removed mention of
782                 Outlook from the comments.
783         - updated udev/10-blackberry.rules.Debian for Debian Etch
784         - updated debian/rules to use new udev rules file
785         - removed debian/postinst, as stable versions of Debian now
786                 have a recent udev, and don't need the special handling
787         - updated Debian build scripts to build separate packages:
788                 libbarry
789                 libbarry-dev
790                 barry-util
791                 barrybackup-gui
792         - added menu support to Debian barrybackup-gui package
793         - made the buttons bigger in the backup GUI, as they were too
794                 small on Debian Etch
795         - opensync plugin:
796                 - more progress in porting to opensync 0.30, heavily
797                         based on the example plugin in the opensync
798                         svn tree...  this is a work in progress, and so far
799                         is incomplete
800 2007/05/04
801         - opensync plugin:
802                 - partial porting to opensync 0.30 (in progress!)
803                 - fixed bug in sync_done where it reported context error
804                         and then success afterward
805         - checking in new INSTALL files based on Etch's autoconf run
806         - added item to gui's todo list
807         - bumped version numbers to 0.8 in:
808                 - configure.ac
809                 - src/Makefile.am
810                 - src/version.cc
811                 - gui/src/BackupWindow.cc (about dialog)
812                 - src/Doxygen
813                 - rpm/barry*.spec
815 Release: version 0.7 - 2007/05/02
816 ------------------------------------------------------------------------------
817 2007/05/02
818         - added rpm building to maintainer/release scripts
819         - added "HEAD" feature to tarball creation script, for easier testing
820         - updated maintainer/README
821         - updated maintainer/release.sh to use new HEAD feature too
822 2007/05/01
823         - added pppob to rpm barry.spec
824         - bumped release number in barry.spec
825 2007/04/30
826         - opensync plugin:
827                 - fixed size check bugs (strlen() == 0 when empty)
828                 - finished refactoring calendar conversion routines
829                 - started timezone parsing, but this may go away
830                         if we use opensync 0.30's time functions and
831                         xml data format...
832                 - added development note to README
833 2007/04/29
834         - updated README and opensync-plugin/README with more current
835                 build instructions
836         - opensync plugin:
837                 - refactored some calendar conversion routines
838                 - added Barry->vCalendar conversion for recurring appointments
839 2007/04/27
840         - opensync module:
841                 - removed some unneeded trace logs
842                 - fixed VEventConverter constructor bug, with uninitialized
843                         m_Data pointer
844                 - eased up the requirement that every calendar event
845                         must have a summary... defaults to "<blank subject>"
846                         if empty
847                 - added more VCALENDAR fields to match Barry::Calendar record
848                 - fixed case sensitive compares in vformat.c
849 2007/04/26
850         - opensync module work:
851                 - added id map class to map string uid's from OpenSync to
852                         numeric ID's from the Blackberry
853                 - fixed bug in CommitChange() where it was still using
854                         a hard coded calendar record state table
855                 - added lots of logging throughout
856                 - fixed bug where newly added records didn't use the
857                         change object's uid, but created a new ID,
858                         causing another sync on the next run
859                         i.e. (CommitData_t was missing an argument)
860                 - fixed bug where uninitialized notification time was
861                         written to the Blackberry
862         - more opensync module work:
863                 - refactored the environment class into another subclass
864                         called DatabaseSyncState, and moved some stand-
865                         alone functions from barry_sync.cc into
866                         the environment classes
867                 - added a tagged constructor to the trace class
868                 - fixed idmap::Load() to clear map before loading
869 2007/04/20
870         - renamed barry-config to barry-sync, the default configuration
871                 file for the opensync module... and filled it with
872                 a sample configuration
873         - added code to update the calendar cache, and write it to disk
874                 on success (opensync module)
875         - added code to clear dirty flags in the device (opensync module)
876         - allowed comments in the config file
877         - added vformat.c from libopensync 0.22, since the vformat
878                 routines are not available from the plugin side
879 2007/04/19
880         - updated gui/TODO
881         - added -d switch to bcharge to switch back from 0001 to 0004 mode,
882                 changed the auto-detection logic to ignore iProduct and
883                 only use idProduct, and updated man page
884         - updated breset to recognize the Pearl in 00004 mode as well
885         - changed src/probe.cc logic to assume that the second endpoint
886                 pair is the one needed for database communication, instead
887                 of doing a reverse search from the end... newer Pearls
888                 in Dual mode seem to have at least 3 or 4 endpoint pairs,
889                 and the old search didn't always work
890         - applied sourceforge patch #1696884 from Peter Silva, updating
891                 the Debian build for Etch, and including all files in one deb
892         - added Peter Silva to AUTHORS file
893         - uncommented the "make distclean" in debian/rules, and removed
894                 the reliance on /tmp when installing 99-barry-perms.rules
895         - applied bb_task_format.txt patch from Peter Silva
896         - fixed each misspelling of "recurrance" to "recurrence"
897         - tweaked src/probe.cc again for paranoia's sake... start at
898                 offset 1 if more than 1 endpoint pair, otherwise start
899                 search at 0
900         - split up opensync module into multiple source files, and started
901                 using the opensync vformat routines for parsing and building
902                 the vevent20 data (experimental)
903 2007/04/04
904         - more incremental work on the opensync plugin, adding ADDED
905                 and MODIFIED functionality... (experimental!)
906 2007/03/30
907         - added code to dump extra descriptors during device discovery,
908                 if found
909         - bumped opensync version number in configure.ac, and made
910                 the configure scripts more consistent with the rest
911                 of the project
912         - fixed printf-format size bug in opensync module
913 2007/03/29
914         - applied patch from Niels de Vos, fixing deb udev rules for Pearl
915         - updated AUTHORS
916         - fixed extra space bug in LDIF output (added space when creating
917                 FullName, even if there was no last name)
918         - fixed Address Book record parsing in Contact class... the
919                 Blackberry database uses field id 0x20 for both the
920                 first and last names, and if only a last name exists,
921                 the first name will be empty.  Fixed parser to handle
922                 this special case, without relying on string length.
923                 Thanks to Troy Engel for reporting above two LDIF bugs.
924         - added a few more constants to bcharge.cc
925         - renamed opensync's configure.in to configure.ac
926 2007/03/17
927         - fixed bcharge to avoid endless reset loop... oops
928 2007/03/16
929         - reorganized bcharge.cc to make it possible to switch between
930                 Pearl modes 0004 and 0001
931         - added flag to BadPassword exception class, to signal whether
932                 the library considers the device "out of retries" or not
933         - updated socket.cc for new BadPassword exception
934         - added special case to Controller class destructor to reset the
935                 device if being destroyed in a half-open state... this is
936                 a temporary fix until we understand how to handle
937                 the "already open" message we get when opening the Desktop
938                 in some cases
939         - added password prompt dialog to the backup GUI
940         - fixed possible memory leak in GUI's DeviceInterface::Connect()
941 2007/03/08
942         - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
943                 udev rules for the Pearl
944         - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
945                 functionality
946         - applied Troy Engel's barry.spec patch to generate all required
947                 RPM's... Thank you!  Notes in the README taken from
948                 the sourceforge tracker entry containing the patch.
949         - added libusb lib flags to tools/ and examples/ makefiles,
950                 and tweaked configure.ac with a better default,
951                 to build cleanly on RHEL 4
952         - modified rpm/barry.spec:
953                 - does not create doc-only barry base package anymore
954                 - fixed "barry-backup" typo
955                 - removed the patch step, as version 0.7 shouldn't need it
956                 - added license file to each package
957                 - commented out console perms scripts, pending mailing list
958                         discussion
959         - updated AUTHORS
960         - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
961         - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
962                 for the bug report
963         - applied Troy Engel's udev permissions patch for Redhat/Fedora
964                 systems, which automatically set the ownership of a
965                 newly plugged in device to the currently logged in console
966                 user.
967         - added udev/README to document what all those files are for...
968                 part of the text comes from the sourceforge comment
969                 on the above udev permissions patch from Troy Engel
970         - uncommented the console perms scripts for rpm/barry.spec
971         - added libglademm-2.4 to gui/README's dependency list
972         - made usbwrap.* calls more threadsafe
973         - added Usb::Timeout exception for timeout errors
974         - added preliminary UsbSerData support to library for GPRS modem
975                 functionality, using Rick Scott's XmBlackBerry's serdata.c
976                 as a guide
977         - added overloaded Socket::Send() for sending without receiving
978         - added preliminary pppob command line tool
979 2007/03/02
980         - version bump in:
981                 - configure.ac
982                 - src/Makefile.am
983                 - src/version.cc
984                 - gui/src/BackupWindow.cc (about dialog)
985                 - src/Doxyfile
986                 - rpm/barry.spec
987         - build system tweaks for opensync-plugin, and added a buildgen.sh
988                 for it
989         - added better debug messages in probe.cc and usbwrap.cc's
990                 device discovery code
991         - changed error handling for null interface->altsetting pointers
992                 when doing device discovery in usbwrap.cc.  Seems that
993                 some devices report a higher number in bNumInterfaces
994                 than are really available... in this case, let's
995                 just ignore the missing data and assume success
996         - applied udev script patch #1663986 from Troy Engel
997         - applied barry-bcharge.spec patch #1672178 from Troy Engel
998         - ReleaseChecklist update
999         - added rpm/README based on Troy Engel's patch notes
1000         - updated new barry-bcharge.spec for version 0.7, removing patch
1001                 dependency
1003 Release: version 0.6 - 2007/02/28
1004 ------------------------------------------------------------------------------
1005 2007/02/28
1006         - fixed size checks for device database records larger than 64K
1007                 Thanks to Michael Brown for the bug report.
1008         - added initial release maintainer scripts
1009         - fixed odd backup success message in GUI when doing a backup with
1010                 no databases selected in configuration
1011                 Thanks to Michael Brown for the bug report.
1012         - added udev permissions file patch from Michael Brown
1013         - added Michael Brown to AUTHORS
1014         - updated README, gui/README, and doc/USB-capture.txt
1015         - added -o command line switch to bcharge.cc, and updated man page
1016 2007/02/23
1017         - changed library behaviour so it only turns on libusb debug output
1018                 if in data dump mode.  In btool, -v controls this output.
1019         - minor stream formatting fix in btool
1020         - added OpenSSL dependency to build for password hash support
1021         - made debug dout() output conditional on Init() flag... In btool,
1022                 -v now controls this as well
1023         - reverse engineered more of the initial probe packets, and
1024                 implemented probing in struct based code... changes include:
1025                 - added support for "attribute fetch" packets, used at
1026                         the beginning of USB conversations
1027                 - defined object/attribute id codes for the PIN number
1028                 - made Protocol::SocketCommand more robust, and implemented
1029                         its sequence number behaviour
1030                 - moved ModeSelectCommand into SocketCommand, as it is a
1031                         socket 0 level command
1032                 - added initial protocol struct: PasswordChallenge
1033                 - renamed Barry::Packet to DBPacket
1034                 - added ZeroPacket for socket 0 packet creation and analysis
1035                 - Barry::Packet is now the base class for the above
1036                 - implemented socket 0 behaviour in socket.cc
1037                 - changed return values for Send/Receive/Packet/NextRecord
1038                         members in the Socket class from bool to void, as they
1039                         don't generate errors themselves, but only can
1040                         have an error if Usb::Device throws an exception.
1041                         Cleaned up all code that called these members as well.
1042                 - removed "last status" from Socket class as it was unused
1043                 - updated probe.cc to use new socket 0 implementation
1044                 - removed two of the hard coded packet handshakes in favour
1045                         of socket 0 packets
1046                 - updated controller.cc:
1047                         - uses new socket 0 implementation
1048                         - removed "flag" hack when opening sockets and
1049                                 selecting modes, as it should use the
1050                                 socket 0 sequence number
1051         - added initial, incomplete prototype header for the C API
1052         - updated some .cvsignore files
1053         - updated TODO
1054         - updated ReleaseChecklist.txt, adding rpm spec file
1055         - added the following to ZeroPacket:
1056                 - ChallengeSeed()
1057                 - RemainingTries()
1058                 - SocketResponse()
1059                 - SocketSqeuence()
1060         - moved Command() to base Packet class
1061         - added comments to protostructs.h and size constants for the
1062                 new PasswordChallenge struct
1063         - added password support to Socket and Controller classes
1064                 Thanks to Rick Scott's XmBlackBerry for the openssl
1065                 password hashing logic.
1066         - updated btool to use new password support, and updated its man page
1067 2007/02/22
1068         - updated Doxygen input files and version, and added to ReleaseChecklist
1069         - fixed btool PIN output for LDIF mode, now commented in output
1070         - major LDIF overhaul:
1071                 - split LDIF specific code out of the record class and
1072                         into its own
1073                 - fixed "full name" behaviour that added an extra space
1074                         in dn attributes, as reported by Troy Engel
1075                 - added support for mapping of LDIF attributes to Barry
1076                         contact field names
1077                 - fixed base64 handling, so attributes are only so encoded
1078                         if necessary
1079                 - fixed base64 attribute reading inconsistency... some
1080                         notes fields were missed in old version if not
1081                         encoded
1082                 - added support for specifying alternate attribute for
1083                         constructing a FQDN, instead of just "cn"
1084                 - updated btool and upldif to use new features
1085         - large update to btool manpage
1086         - fixed initialization bug in Contact constructor (missed RecType)
1087 2007/02/15
1088         - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
1089         - removed commented code from translate.cc
1090         - added Pearl handshake support to bcharge.cc, which resets the
1091                 Pearl so that the vendor specific 0xFF class exists.
1092                 This should allow use of btool on the Pearl.
1093         - added Data::AppendHexString to data.cc
1094         - added better probing support for the Pearl, so it detects the
1095                 Product ID 0x0004 mode, and does a search for class 0xFF
1096                 instead of hardcoding it.
1097 2007/02/10
1098         - applied README patch from Ian Darwin
1099         - minor tweaks to README
1100         - added missing errno.h header in src/usbwrap.cc for AMD64
1101                 Thanks to Jonathan Hudson for reporting the bug.
1102         - tightened up size checks in Data::ReleaseBuffer()
1103         - stable libusb *does* return the actual length of the USB packet...
1104                 fixed this in usbwrap.cc to set the actual size of read data,
1105                 and removed the size hacks elsewhere in the code:
1106                 probe.cc, protocol.cc, socket.cc, usbwrap.cc
1107 2007/02/09
1108         - added proper return codes for error conditions in btool.cc
1109         - clarified some stream output code in the library, for hex/dec numbers
1110         - removed old, non-working connect.cc test program
1111         - added iomanip to debug.h
1112         - changed usbwrap to call libusb again if EINTR and EAGAIN
1113                 This should fix one of the OpenBSD issues
1114 2007/02/04
1115         - updated AUTHORS
1116         - fixed bug in barrybackup GUI that didn't create the target path
1117                 if the user didn't do Edit | Config first.
1118                 Thanks to Ian Darwin for reporting the bug.
1119         - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
1120                 from Ian Darwin
1121 2007/02/03
1122         - added initial btool.1 man page from Ian Darwin
1123         - updated man/Makefile.am for new btool.1
1124         - updated AUTHORS
1125         - applied btool -h help clarification patch from Ian Darwin
1126 2007/02/02
1127         - reworked exception hierarchy, so applications can handle all
1128                 Barry related exceptions, including Usb errors, with
1129                 one base class: Barry::Error
1130         - fixed all the ripple changes this caused throughout the codebase
1131         - added BadPassword exception
1132 2007/02/01
1133         - version bump in:
1134                 - configure.ac
1135                 - src/Makefile.am
1136                 - src/version.cc
1137                 - gui/src/BackupWindow.cc (about dialog)
1138         - updated doc/ReleaseChecklist.txt
1139         - added usb-level breset.cc command line tool
1140         - fixed bug in gui/src/tarfile.* for systems where
1141                 sizeof(int) != sizeof(void*)
1142                 - TarFile class now uses a plugin style for the compression
1143                         operations, to allow for threadsafe versions if needed
1144                         in the future.
1145                 - also fixed leaked file handle bug in open_compressed()
1146                 - Thanks to Jonathan Hudson for reporting this for 64bit systems
1147         - minor signed comparison fixes in the library
1148         - added better protocol data dumping code in probe.cc
1149         - added Usb::Device::BulkDrain(), to prevent Barry from hanging
1150                 due to pending reads
1152 Release: version 0.5 - 2007/01/26
1153 ------------------------------------------------------------------------------
1154 2007/01/26
1155         - added missing errno.h header to gui/src/util.cc
1156         - lots more endian fixes after testing on iMac  
1157         - iostream output size fixes
1158         - added option to btool to reset the device via software
1159         - beefed up exception handling in barrybackup
1160         - checked in opensync work-in-progress: trace logging, pointer bugfix
1161                 this is still experimental
1162         - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
1163                 class for systems running older versions of gtkmm, like
1164                 Debian stable
1165         - uncommented the about box menu handler
1166         - added "cleanall" option to root buildgen.sh script
1167         - update ReleaseChecklist.txt
1168         - removed CVS auto-history strings from aboutdialog.*
1169 2007/01/25
1170         - found a link between the unknown field in tagged protocol headers
1171                 and the unknown field in RecordStateTable entries.  This
1172                 field matters when uploading certain databases, such as
1173                 Browser Options.  It is unknown what this field really
1174                 means, but we're calling it RecType.  Updated the API
1175                 to use this in all parser objects and builder objects
1176                 and record objects that use it.
1177         - changed some uses of uint64_t to uint32_t, in Contact and
1178                 Calendar record objects... unique IDs only seem to be
1179                 32 bits
1180         - added new static function to record classes: GetDefaultRecType()
1181                 This returns the default rectype that should work
1182                 for that record.  Ideally this should be retrieved from
1183                 the device, but in the case where a database has no
1184                 records, this info would be good to know.
1185         - updated convenience template function Controller::AddRecordByType()
1186                 to use GetDefaultRecType()
1187         - documented the recurrence data and how to use it in Calendar objects
1188         - added data debug output for incoming USB packets in the
1189                 socket class... when we ported to the stable libusb
1190                 we lost some of the verbose output... this should get it
1191                 back.  (In the official release, you need to uncomment
1192                 ddout() in debug.h for the full blast of debug output).
1193         - backup GUI updates:
1194                 - changed error_done signal into a pure error signal,
1195                         and changed the logic so the restore continues
1196                         even if there was a protocol error on one database
1197                 - changed status bar messages to show what's happening
1198                         i.e. Backup or Restore
1199                 - default to not restore the "Handheld Agent" database as
1200                         it appears to be read-only on the device
1201                 - added temporary Restore & Backup mode for debugging
1202                 - added extra hyphen to backup files to show date/time better
1203                 - updated GUI to save and restore the new RecType field
1204                         supported now by the library
1205 2007/01/21
1206         - added future considerations to doc/ReleaseChecklist.txt
1207         - applied big endian patch from Jonathan Hudson
1208         - changes to patch:
1209                 - removed endian.h include from barry.h, since applications
1210                         using the library should not care about endianness
1211                 - hard coded the path to config.h in endian.h
1212                         so that endian.h never makes it into the final
1213                         install
1214                 - removed DEFAULT_INCLUDES setting from src/Makefile.am
1215                         for the same reason
1216                 - removed config.h dependency in btool.cc and used library
1217                         Version call instead
1218         - added big/little endian text to the Barry::Version call
1219         - updated AUTHORS
1220         - fixed install location of bcharge when building with ./configure;
1221                 now goes to sbin/ for both source compile and binary packages
1222                 Thanks to Jonathan Hudson for reporting this bug.
1223 2007/01/20
1224         - added smarter timeout values to controller, and allowed
1225                 timeout overrides in the packet, socket, and usbwrap code...
1226                 extra timeouts are needed for erasing databases for
1227                 some older devices
1228         - added an explicit DataDumpParser class to btool.cc, as the
1229                 library doesn't always have extreme verbose debugging on...
1230                 this makes sure anyone can always get raw database packets
1231                 through btool, for development
1232         - added thread callback signals for error finishes and erase_db
1233                 operations, so the GUI is updated properly
1234         - more GUI cleanups (status bar updates, etc)
1235         - finished implementation of GUI restore
1236         - fixed gtkmm/glibmm exception handling when the exceptions
1237                 occur in sigc signal handlers... in that case,
1238                 exceptions need to be handled with
1239                 Glib::add_exception_handler()
1240         - added filename-only reading support to TarFile class
1241         - added pending gui/TODO items
1242 2007/01/19
1243         - backup GUI now properly shows progress
1244         - the buttons become insensitive when backup is busy
1245         - refactored directory check code, and added mkdir check
1246                 when to the backup setup (so the directory exists
1247                 when we try to write to it)
1248         - updated code to use Barry::Data in new namespace
1249 2007/01/18
1250         - moved Data class into Barry namespace
1251 2007/01/13
1252         - updated copyright dates for the new year
1253         - clarified exception message in controller.cc
1254         - fixed pointer initialization bug in controller.cc
1255         - added documentation comments to parser.h and builder.h
1256         - updated ReleaseChecklist.txt
1257         - updated README
1258         - changed Barry library configure scripts to make better
1259                 use of pkg-config for autodetecting dependencies
1260         - added initial Barry Backup GUI (gui/ directory), capable of making
1261                 backups only at this point
1262 2007/01/11
1263         - added doc/ReleaseChecklist.txt
1264         - added version API, returning version number and string
1265         - added Troy Engel to AUTHORS
1266         - added special case to bcharge.cc for the Blackberry Pearl,
1267                 which doesn't reset itself after the charge handshake
1268                 Thanks to Troy Engel for testing.
1269 2007/01/05
1270         - added pkg-config support for the library (libbarry-0.pc.in)
1271         - fixed compile error on g++ 3.3 systems (missing stdint.h
1272                 in probe.h)
1273         - fixed protocol hang at end of Controller operation... in
1274                 controller destructor, it was deleting the USB interface
1275                 before closing the socket at the BlackBerry level, thereby
1276                 leaving the device in Desktop mode
1277 2007/01/04
1278         - support the newer udev packages on Ubuntu, which need slightly
1279                 different rules
1280         - modified bcharge.cc to search for Pearl devices too.
1281                 USB product ID 6
1282         - added Pearl product ID to probe code, but likely not functional
1283                 yet until we find someone able to get a USB capture for us
1284 2006/12/29
1285         - version bump in configure.ac and src/Makefile.am
1287 Release: version 0.4 - 2006/12/29
1288 ------------------------------------------------------------------------------
1289 2006/12/29
1290         - added bcharge.cc to the tools/ directory (whoohoo!)
1291         - added initial release version of rpm/barry.spec (aka bcharge.spec)
1292                 This begins the barry binary release, currently only
1293                 including the bcharge utility, but possibly more in
1294                 the future.  Future binary packages will likely include
1295                 libbarry, libbarry-devel, etc, which barry will then
1296                 depend on.
1297         - added udev rule script for BlackBerry devices
1298         - added man/ directory and bcharge.1 manpage
1299         - added debian/ directory for building deb packages, with initial
1300                 package scripts
1301         - added rpm/make-rpm-tarball.sh for building RPMs
1302         - split out technical docs into separate libbarry.docs file for
1303                 a future Debian install
1304         - added more cleaning to buildgen.sh
1305         - added new udev rule file for Debian stable
1306         - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
1307                 on my system and need to compile releases with stable
1308 2006/12/21
1309         - ported Barry to use the stable branch of libusb
1310                 NOTE: no longer depends on the devel libusb tarball!
1311                         Just use your distro's libusb packages.
1312         - fixed more endian issues
1313         - minor update to TODO
1314 2006/12/15
1315         - moved Exceptions, Hacking, and VersionNotes to doc/
1316         - added doc/USB-capture.txt
1317 2006/12/08
1318         - added Controller::AddRecord() and template helper
1319         - added beginning version of generic RecordFetch<> template
1320         - set default of Barry::Init() to false (no data dump mode)
1321         - added examples/ directory, with first addcontact.cc example
1322 2006/12/07
1323         - added autoconf support based on Peter McAlpine's patch
1324         - renamed Makefiles to Makefile.orig and added script to turn
1325                 on old build system if wanted
1326         - fixed boost-specific error path in btool
1327         - moved platform specific code out of time.h and into time.cc
1328         - moved btool.cc, translate.cc, and upldif.cc out of src/ and
1329                 into their own tools/ subdirectory
1330         - added NEWS file to make autotools happy
1331         - added a "clean" option to the buildgen.sh script... maintainer's
1332                 use only
1333         - reworked autoconf and automake files, to support
1334                 barry as a library, to move the programs into their
1335                 own tools directory, and support a proper installation
1336         - fixed headers in parser.h, btool.cc, and upldif.cc to work
1337                 properly when installed standalone
1338         - added tools/Makefile.plain for testing compiling against
1339                 installed barry library
1340         - added commentary on version number system
1341         - removed Makefile.conf and Makefile.orig, as new autoconf
1342                 system supercedes it
1343         - added support for boost serialization library in autoconf build
1344         - added library version number to autoconf build
1345         - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
1346         - removed debug.h dependency from btool.cc
1347         - removed libusb check in favour of specific --with-libusb
1348                 option... may need to revisit this later
1349         - quick installation update in README
1350 2006/12/01
1351         - fixed some missed endian conversions in record.cc and added
1352                 some size checks
1353         - fixed endian issues in time.h
1354         - added 2 more functions to the time zone API, and adjusted
1355                 the time zone table for better defaults in North America
1356         - added btool and upldif to the make install sequence
1357         - added support for Calendar recurrence data
1358         - small doc/TimeZones.txt update
1359 2006/11/24
1360         - added BlackBerry time zone code list, reverse engineered from a 7750
1361         - added GetTimeZone() to convert device time zone codes to useful data
1363 Release: version 0.0.3 - 2006/11/24
1364 ------------------------------------------------------------------------------
1365 2006/11/23
1366         - added return code check to Controller::SaveDatabase()
1367         - fixed Data() class constructor, so it doesn't auto-convert
1368                 from any int
1369         - fixed size checking bug in Packet::ReturnCode() that caused
1370                 uploading to device to fail
1371 2006/11/10
1372         - added Exceptions doc file, documenting the C++ exceptions used,
1373                 and their hierarchy
1374         - fixed small bug in 'make install' which didn't build first
1375         - minor documentation and cleanup in upldif.cc
1376         - added utility functions to the RecordStateTable class,
1377                 GetIndex() and MakeNewRecordId()
1378         - changed btool so that the -d command modifiers can be
1379                 specified multiple times to work with multiple records
1380                 at once
1381         - added Calendar sync code to the opensync module (not complete)
1382         - cleaned up exception handling in the opensync module, making
1383                 more use of the base exception to make sure no
1384                 exceptions leak into the C library code
1386 Release: version 0.0.2 - 2006/10/12
1387 ------------------------------------------------------------------------------
1388 2006/10/12
1389         - fixed casting error in opensync module
1390         - minor updates to documentation to prepare for release
1391 2006/09/29
1392         - added stdint.h to parser.h for uint32_t.  Thanks Ron Gage for
1393                 the bug report
1394 2006/09/08
1395         - large refactoring of the packet parsing and building code,
1396                 splitting the code into 3 groups:
1397                 - record: handles record specific parsing and building...
1398                         this is mostly subfields with CommonField structs
1399                         as their headers, but sometimes has a specific
1400                         header of its own, in the case of email
1401                         Note: email's header is as yet undecoded.
1402                         Record does not know the details of the packet
1403                         formats, only the formats of its own record data.
1404                 - packet: handles building of complete command packets
1405                         and handles parsing of commonly used header values,
1406                         providing an API for it... packet does not know
1407                         the record format details, but does know the
1408                         details of each Database Operation (protocol.h)
1409                         packet format.
1410                         So far, it seems that there is a real separation
1411                         of operation formats and record formats, with the
1412                         record formats being the same even with different
1413                         database operation codes (GET_RECORDS /
1414                         OLD_GET_RECORDS), which was not confirmed before.
1415                         See the header size of the email record after
1416                         refactoring.
1417                 - controller: handles device state, and the management of
1418                         sockets, commands, and checking for response values.
1419                         The Controller object does not know the format
1420                         of either the record or the packet it is sending,
1421                         but does know the protocol handshake logic used
1422                         to talk to the device.
1423         - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
1424                 we come!
1425         - spelling correction in opensync-plugin/AUTHORS
1426 2006/09/01
1427         - added sample hotplug scripts
1428         - added .cvsignore files for doxygen and opensync directories
1429         - added src/endian.h... still need to add configure support to
1430                 handle non-little-endian machines
1431         - added exception handler in opensync plugin commit_change()
1432         - removed the device reset code in probe.cc, as resetting a device
1433                 can renumber the devices in /proc on kernel 2.4.x,
1434                 and cause a failure to reach the device...
1435                 FIXME - this should be changed someday to reset if probing
1436                 fails, and restart the probe on reset, as sometimes
1437                 the blackberry devices respond differently when not reset
1438                 Ideally, the probe protocol should be properly reverse
1439                 engineered.
1440         - added support for retrieving record state table, which is needed
1441                 for smarter syncing
1442         - added support for retrieving, deleting, and clearing the dirty
1443                 flags of individual blackberry device records
1444         - added endian macros throughout the code
1445 2006/07/13
1446         - added opensync-plugin to root Makefile's clean
1447         - updated time conversion calls to match opensync's latest SVN
1448         - added opensync_change_set_changetype() (only add for now,
1449                 for development)
1450         - removed slow sync functions for now
1451 2006/07/07
1452         - added quick "install" makefile target, to src/install by default
1453         - added static library target... this is temporary until autoconf
1454                 stuff is added properly... needed for the opensync plugin
1455         - documented in comments that Barry::BError is intended to be
1456                 the base classes for all exceptions
1457         - added first round of implementation of an opensync plugin, based
1458                 on the example plugin code from the opensync sources
1459 2006/06/22
1460         - added to Contact record class:
1461                 - Clear()
1462                 - ReadLdif() to load and parse LDAP data
1463         - added fragmented send support to Socket class
1464         - added Probe::FindActive() to make client programs more streamlined
1465         - fixed hex/decimal printing of record counts in btool
1466         - added upldif.cc, a utility to take ldapsearch output on stdin
1467                 and upload it to a blackberry
1468         - updated src/.cvsignore
1469 2006/06/16
1470         - added parsing of service book fields:
1471                 - old and new name
1472                 - old and new unique ID (UID)
1473                 - content ID (CID)
1474                 - old and new description
1475                 - DSID
1476                 - bes domain / domain
1477         - date change in legal.txt
1478         - added initial parsing of ServiceBook field 0x09, and calling it
1479                 ServiceBookConfig for now, for lack of a better name
1480         - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
1481                 seems to be a name or description, but doesn't appear
1482                 in the device's own GUI... called "Hidden Name" for now
1483 2006/06/09
1484         - added ServiceBook record class and parser code, based on some
1485                 of Ron Gage's reverse engineering... code is by Chris Frey
1486         - added AUTHORS file
1487         - fixed the libusb set_configuration/claim_interface order
1488                 bug in controller.{h,cc}... already fixed in probe,
1489                 but not controller.  Thanks Ron Gage for finding this.
1490 2006/05/25
1491         - renamed Changelog to ChangeLog in preparation for autoconf
1492         - renamed Todo to TODO in preparation for autoconf
1493 2006/05/18
1494         - make clean cleans up tests properly now
1495 2006/03/31
1496         - turned source code browsing on in Doxyfile
1497         - added LoadDatabaseByName() and LoadDatabaseByType() template members
1498                 to the Controller class
1499                 - new file: controllertmpl.h
1500         - documentation fixes in builder.h
1501         - added static GetDBName() functions to all record classes, in
1502                 support of the template Controller functions
1503         - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
1504                 returning errors properly
1505         - documented sample btool.cc code better, and added example
1506                 of Controller template member usage
1507 2006/03/29
1508         - copyright dates updated for 2006
1509 2006/01/05
1510         - backed out update to latest libusb DEVEL tree, since it is buggy.
1511                 Stick with libusb 2005/11/26
1512 2005/12/30
1513         - added clean target to convenience Makefile
1514         - added Boost to list of dependencies in README
1515         - fixed minor compile warnings in base64.cc
1516         - fixed new USB discovery code, and changed endpoint usage to use
1517                 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
1518                 constants... constants are now removed
1519                 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
1520         - added ClearHalt() to Usb::Device (usbwrap.cc)
1521         - updated usbwrap.h to match latest libusb CVS devel tree
1522         - updated README to refer to 2005/12/30 libusb CVS devel tree
1523         - added roadmap to Todo list
1524 2005/12/29
1525         - added convenience Makefile in root directory
1526         - added Hacking document
1527         - minor touchups to README
1528         - added caution warning to README, since this release will support
1529                 delete / overwrite / upload functionality
1530         - minor compile order change in Makefile (speed reasons)
1531         - added dynamic endpoint discovery to probe.cc
1532         - changed claim_interface/set_configuration() function call order in
1533                 probe.cc based on feedback on the libusb mailing list
1534         - added USB discovery code to usbwrap.{h,cc}
1535 2005/12/23
1536         - fixed packing bug in new upload header struct
1537         - renamed CommonField union from data to u to be consistent
1538         - added return_code field to DBAccess struct, for error checking
1539         - added response checking during upload: if response is non-zero
1540                 throw exception in controller.cc
1541         - added sorting operators to record parser classes... when writing
1542                 contact data to the device, it may be important to write
1543                 group link items last, since they reference other contacts...
1544                 This needs to be tested, and if not required, removed.
1545         - added GROUP_FLAG field code to Contact parser class
1546         - fixed offset bug in Contact and Calendar Build() functions
1547         - fixed name bug in Contact::Build(), now output only with data
1548         - added appointment type flag support to Calendar record parser
1549                 class, and "all day event" flag support
1550 2005/12/22
1551         - added autoconf to Todo list
1552         - refactored the protocol structures so that record structs can
1553                 be reused for upload and download
1554         - with new protostructs, more header control is handled by
1555                 controller.cc instead of record.cc parsers and builders
1556         - parser code now accepts an offset, to govern start of record data
1557         - changed Data sizes from int to size_t and removed casts
1558         - removed unneeded Parser::GetHeaderSize() (new protostructs make
1559                 this obsolete)
1560         - added Calendar::Build() for calendar uploads
1561 2005/12/10
1562         - added s11n-boost.h serialization templates for boost::serialization
1563         - added boost::serialization to build
1564         - minor change in usbwrap.cc to display error codes in decimal
1565         - added SizePacket special case code to Socket::Send()... this is
1566                 required when uploaded packet size is a multiple of 0x40,
1567                 a special 3 byte size packet is sent
1568         - moved some record class variables to public: so they can be
1569                 properly serialized
1570         - fixed variable name but in RecordBuilder template
1571         - added -f switch to btool, for saving and loading of record data
1572         - added -s switch to btool, for uploading saved data back to handheld
1573         - added Controller::SaveDatabase()
1574 2005/12/08
1575         - fixed potential casting / pointer bug in controller.cc
1576         - added builder.h, to support uploading
1577         - minor comment fixes in parser.h
1578         - added preliminary Contact protocol record building support
1579         - fixed field order bug in ContactRecord protocol struct
1580         - Contact record.h class now saves unknown Group Link field,
1581                 for later saving
1582 2005/12/07
1583         - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
1584                 optimize away protocol struct casts
1585                 see: 
1586                 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
1587                 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
1588                 http://groups.google.ca/group/comp.lang.c++.moderated/ \
1589                         browse_thread/thread/e7bf096832526f8e/5714701b \
1590                         02a2a3cc?hl=en#5714701b02a2a3cc
1591         - changed headers so that any low level protocol-specific sizes and
1592                 structs are completely hidden in the library...
1593                 this adds library-only header: protostructs.h
1595 Release: version 0.0.1 - 2005/11/25
1596 ------------------------------------------------------------------------------
1597 2005/11/25
1598         - added barry.h for documentation purposes and application usage
1599         - updated README for release
1600         - renamed SBError exception class to BError
1601         - updated Doxyfile to version 1.4.5
1602         - added more doxygen comments
1603 2005/11/24
1604         - added conversion routines (and tests) between time_t and min1900_t
1605         - added -v option to btool to dynamically control protocol dumping
1606         - removed duplicated database database table display in controller.cc
1607         - minor spelling corrections
1608         - added copyright to usbwrap.{h,cc} as per earlier meeting
1609         - added support for Old protocol Calendar entries
1610 2005/11/20
1611         - added legal.txt, to save typing when adding new source files
1612         - ignore test-base64 file (cvsignore)
1613         - added contact-to-ldif generation, and updated supporting code
1614         - added argument to btool to support contact-to-ldif operation
1615         - added Contact::GetPostalAddress()
1616         - added README documentation in preparation for future release
1617 2005/11/19
1618         - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
1619         - added code to socket.cc's Packet() command to re-receive on
1620                 reception of empty packets... this seems to be a signal
1621                 from the device that it needs more time for long transfers
1622                 Current limit: 10 blank packets before exception is thrown
1623                 Observed maximum blank count: 1
1624         - added MessageRecord and OldMessageRecord to protocol.h
1625         - changed common record field structs to one CommonField struct
1626         - increased default USB timeout to 10 seconds (some loaded devices
1627                 seem to need more time...)
1628         - reorganized record.{h,cc} to try to reduce the code duplication
1629         - record.h classes now "know" the sizes of their corresponding
1630                 protocol structs... this may cause trouble down the line
1631                 with Python, if used(?)
1632         - added Message class for Email records
1633         - removed the "Get*" database functions and replaced with
1634                 general LoadDatabase() call, which loads any database
1635                 available, and parses it with a Parser object
1636         - added GetDBID() for searching for database numbers via name
1637         - added test code to retrieve and display all email
1638         - cleaned up comments
1639         - renamed blackberry.{h,cc} to controller.{h,cc}
1640         - renamed bbtool.cc to btool.cc
1641         - added Makefile.conf
1642         - added copyright notices to source files
1643         - added COPYING file with GPL
1644         - put parser in Barry namespace, and added auto_ptr-like mode for
1645                 store object pointers
1646         - added doxygen docs
1647         - added header comments to convo.awk script
1648         - removed Test() function in Controller object, and made class
1649                 better suited to its general API purpose
1650         - changed OpenMode() so it loads command table and DBDB... it is now
1651                 a public API function
1652         - moved Controller test code to btool.cc and made tool more
1653                 generically useful... can now download any DB by name on
1654                 the command line
1655         - added mode checks to Controller
1656         - added -t and -d command line options to btool
1657         - added base64 routines from John Walker / Fourmilab and Citadel/UX
1658         - converted base64 routines into an API, instead of hardcoded
1659                 file based
1660 2005/11/18
1661         - changed project name to Barry, including namespaces
1662         - renamed sbcommon.* to common.*
1663         - increased USB default timeout to 2 seconds
1664         - fixed formatting bug in Data operator<< output
1665         - cleaned up the protocol packet structs, getting rid of the
1666                 confusing param/simple split... param is now the tableCmd
1667                 from the Command Table
1668         - moved protocol structs from record.h to protocol.h
1669         - added support for older version of the USB protocol, which matches
1670                 the Cassis spec more closely
1671         - fixed the hardcoded offsets in blackberry.cc's protocol parsing
1672         - fixed Socket::Close() so on error, socket flags are reset.
1673                 This stops Close() from being called twice on exception
1674                 destructors
1675 2005/11/17
1676         - added Doxyfile to the project
1677         - tuned Makefile
1678         - added mode selection support to Blackberry class (RIM Desktop,
1679                 RIM Bypass, and RIM_JavaLoader)
1680                 Mode selection governs which socket is used in subsequent
1681                 data transfers.
1682         - added Command Table parsing and protocol support
1683                 Blackberry class, and CommandTable record class
1684         - added Database database parsing and protocol support
1685                 Blackberry class and DatabaseDatabase record class
1686         - added Address book retrieval support - dumps data to stdout for now
1687         - fixed bug in CopyOnWrite mode in Data class, where could allocate
1688                 less buffer than data copied
1689         - added "easy exception" debug output macro
1690         - fixed minor spelling error in protocol.cc
1691         - fixed ModeSelectCommand protocol structure - it is not a parameter
1692                 command, but uses the unknown slots for socket and flag
1693                 data
1694         - removed hardcoded socket numbers from protocol.h
1695         - fixed bug in socket.cc:Open() where packet size was not properly
1696                 saved
1697         - implemented socket::Close()
1698         - fixed sequence number checks, so it is reset properly on socket 0
1699         - added Socket::NextRecord() for multiple record data transfers
1700         - fixed input handling bug in translate.cc
1701 2005/11/11
1702         - added .cvsignore files to project
1703         - added README notes to document the source architecture
1704         - added dbsetup data script, which shows how to get into database
1705                 mode, using the RIM Desktop mode, and open a socket
1706         - added blackberry.{h,cc} class
1707         - added command line parameters to bbtool.cc
1708                 -l = list only
1709                 -p = specify pin of blackberry device
1710         - added blackberry test code in bbtool.cc - debugging the initial
1711                 opening protocol: sockets, modes, etc... see dbsetup for
1712                 results
1713         - added copy-on-write functionality to Data class, so it can be used
1714                 with plain data buffers with little performance impact
1715         - added eout() and ddout() debugging - to separate:
1716                 - regular debug output
1717                 - exception debug output (should probably be logged to
1718                         syslog someday, and never turned off)
1719                 - raw data dump output
1720         - changed errno SBError exception handler to try to decode the error
1721                 numbers into english (limited success)
1722         - fixed probe and socket USB Bulk message handling, so they don't
1723                 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
1724         - added common packet size checker in protocol.cc
1725         - fixed unpacked protocol packet structs... using gcc's
1726                 __attribute__ ((packed)) ... see protocol.h
1727         - added ModeSelectCommand structure (protocol.h)
1728         - finished Socket::Open() call  (Close() not yet implemented)
1729         - moved Socket::Send/Receive() out of private, as they can be used
1730                 for socket 0 operations.
1731         - cleaned up pointer management with macros:
1732                 MAKE_PACKET()
1733                 COMMAND()
1734                 IS_COMMAND()
1735         - added IO::Wait() and IO::Cancel() to correspond with libusb API
1736         - added datadumping in usbwrap for easy protocol capture
1737         - added preliminary record.{h,cc} classes
1738         - added Contact record parsing, and test code
1739 2005/10/20
1740         - syncberry tree started