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