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