1 Release: version 0.8 - 2007/05/??
2 ------------------------------------------------------------------------------
4 - added ReadDataArray() to data.h, using an istream instead of
6 - added raw data version of BuildField() to record-internal.h
7 This is so that btool doesn't add extra null terminators
8 to unknown data, when restoring with option -s
9 - fixed bugs in r_contact.cc:
10 - fixed bug that caused a LastName/FirstName swap
11 if FirstName was empty and you wrote a contact
12 record into the device.... First/Last Name
13 fields are position sensitive, and the code
14 was missing the empty FirstName case on writing
15 - fixed bug in BuildFields() and Dump() where they
16 were not updated to handle the new field
17 table added for the postal address changes
20 - changed the plugin config file, so it is possible to
21 turn debug output on/off without recompiling
22 - moved the standalone Map2Uid() function into
23 the DatabaseSyncState class, and changed the
24 code to produce "contact-#" and "calendar-#"
25 UID strings, instead of just numbers
26 - changed default PIN to -1, so that if the user doesn't
27 configure properly, it will fail... this is a
28 safety measure to avoid syncing with different
29 devices and corrupting the cache/idmap...
30 this should be fixed someday, to handle this
32 - incorporated the new VCardConverter code into the
33 main barry_sync.cc plugin code
34 - fixed bug that did not clear the devices dirty flags
35 in the case where a sync only read data from it,
37 - changed PIN error message number to hex
39 - minor wording change in backup GUI prompt: "Backup working..." to
40 "Backup in progress..."
41 - renamed Contact class's Title field to JobTitle for clarity
42 - added record function ParseFieldString(), which properly handles
43 strings from the device that have multiple null terminators,
44 and changed the record parsing code to use this new function
45 - moved FullName() function from ldif.cc to r_contact.cc since it
46 is generally useful in areas outside of LDIF processing
47 - refactored postal addresses in the Contact record class into
48 a new class called PostalAddress
49 - renamed Address class in record.h to EmailAddress
50 - moved Contact::GetPostalAddress() to record.cc as part of the
51 new PostalAddress class and renamed it
52 PostalAddress::GetLabel()
54 - refactored vformat helpers into separate base class
56 - added vCard converter class
57 - commented out the code that skipped over the adding
58 of empty attribute values and parameters,
59 since VCARD depends on some of this behaviour
60 - movified vformat.c:vformat_find_attribute() to take
61 an extra nth argument, in order to search
62 for multiple attributes with the same name...
63 the way this is coded is a bit inefficient...
64 but we're moving away from vformat when we move
65 to OpenSync 0.3x / 0.40, so this is just temporary
68 - added SUBSYSTEM=="usb_device" to example udev rules, in order
69 to avoid running bcharge for each endpoint that is
70 added by udev, when first plugged in. Running bcharge
71 back-to-back multiple times can crash some
75 - fixed ID mapping bug in the case of a non-numeric UID
76 from syncing external -> Barry, and then the
77 new Barry ID would look like a new change
78 when syncing back from Barry -> external.
79 - added support for slow sync
80 - added clear() to idmap class
81 - added vformat attr parameter extraction class
82 - added more trace logging during vformat/Barry conversions
83 - added Notification time support
84 - handled "all day" vformat special case, when DTEND
85 does not exist in a vformat data block
86 - changed the min1900_t time conversion functions to handle
87 the 0xffffffff special case, when notifications
88 are turned off on a calendar event (src/time.cc)
89 - also made the calendar data dump output clearer for
90 disabled timestamps, and added debug output
91 for the raw min1900 value, in case there are more
92 special cases in the future
94 - fixed null pointer access in opensync's HasMultipleVEvents()
96 - upper management directive: revert all OpenSync 0.3x changes
97 and proceed with OpenSync 0.22. Reverting the
98 opensync-plugin/src tree to Barry 0.7 status.
100 - reorganized exception and trace code in opensync plugin
101 - added XmlToCalendar() function, based on unfinished opensync
102 library API that is not yet finished... will be
103 committed to opensync svn tree when complete
104 - added OSyncXMLField logger to plugin trace class
106 - applied email MessageRecord patch from Brian Edginton (thanks!)
107 - updated Message::Dump() to output more valid mbox data...
108 the goal is to be able to do:
109 btool -d "Messages" > email.mbox
111 - changed some TODO's to FIXME's to keep it grep-consistent
112 - applied Folder support patch from Brian Edginton
113 - fixed pedantic compile warnings, and changed order in src/Makefile.am
114 - removed unneeded cast in src/r_folder.cc
116 - minor adjustment to ctags building in buildgen.sh
117 - applied patch from Brian Edginton for better boost detection
119 - added boost usage message to btool -h output
121 - more porting of OpenSync module to 0.30
122 - added ctags build for opensync source tree to buildgen.sh
124 - changed PKG_CONFIG_PATH setting in rpm script, so that systems
125 like SuSE that have an extensive PKG_CONFIG_PATH
126 in general use will not break on build
127 - added PKG_CONFIG_PATH to debian script too, just in case :-)
128 - added debian/changelog to doc/ReleaseChecklist.txt
129 - added comment to rpm/barry.spec regarding SuSE RPM builds
131 - applied patch from Niels de Vos fixing debian package build
133 - applied Brian Edginton's Saved Email Messages patch
134 - updated r_saved_messages.cc comment to match header
135 - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
136 SetIds() is already there
137 - removed Address version of operator<<() from message related headers
138 and moved into record.h
139 - added std::hex to message related dumps, and changed output to
141 - updated doc/CodingStyle.txt to cover switch() statements
142 - opensync compiles again, with 0.30! (not functional yet)
143 - moving closer to more modular and reusable plugin functions
144 - updated release checklist for opensync version number
146 - added doc/CodingStyle.txt... preliminary version
148 - applied Brian Edginton's PIN message patch
149 - changes to PIN message patch:
150 - fixed missing backslash in src/Makefile.am
151 - fixed tab alignment throughout
152 - removed typedef from Address struct
153 - added clear() to Address... might as well, if it it is
154 going to be a standalone type
155 - fixed missing comma in PINMessageFieldLinks table
156 - changed MessageRecordId in PINMessage to load from a new
157 uint32_t field in CommonField, instead of piggy
158 backing on a field for other use
159 - did some testing and found that PINMessage's MessageRecordId
160 is the same as the RecordId given through the SetIds()
161 API... but these Id's are duplicated in the protocol...
162 RecordId is stored in the protocol header, while
163 MessageRecordId is stored in the record it self as
164 a common field... added RecType and RecordId to
165 PIN Message so that we store both of these
168 - added item to gui/TODO
169 - applied Brian Edginton's s11n-boost.h patch
171 - renamed template values to more consistent naming scheme
172 - applied memos and tasks patch from Brian Edginton, slightly
173 modified to split into the new separate files system
174 - changes to memos and tasks classes:
175 - reformatted the code to match coding style
177 - added copyright notice
178 - changed class to singular (Memo, not Memos)
179 - placed in Barry namespace
180 - added #ifdef header protectors
181 - added new files to Makefile.am
182 - added new r_*.h headers to record.h
183 - added support for Memos and Tasks to tools/btool.cc, based on
184 Brian Edginton's patch
185 (currently commented out, for Boost library reasons):
186 - added doc/CommitPolicy.txt
189 - added ctags generation to buildgen.sh
190 - applied record.{h,cc} fix patch from Brian Edginton
194 - fixed broken formatting in above patch
195 - refactored record parser classes into separate files for each
196 - changed the ConvertHtoB<> template to inline, as it caused
197 linker errors with the new file layout
199 - fixed bug in Debian packaging that put util commands in
200 /bin and /sbin instead of /usr/bin and /usr/sbin
201 - commited byteswap.h replacement code from gm2net
203 - removed unneeded debug messages on stdout
204 - changed the default for debug output to "off"
205 and added a command line option to turn
206 it on if necessary (--debug-output)
207 - command line option --help now also works
208 - fixed bug in Calendar class where it didn't initialize
209 RecType properly... and cleaned up other RecType
210 code to use the GetDefaultRecType() functions,
211 localizing the constants in one place
213 - applied patches from Brian Edginton, parsing more
214 fields in Contact and Calendar records
215 - added Brian Edginton to AUTHORS
216 - reformatted record.{h,cc} to match the rest of the code,
217 removed commented out code, and removed mention of
218 Outlook from the comments.
219 - updated udev/10-blackberry.rules.Debian for Debian Etch
220 - updated debian/rules to use new udev rules file
221 - removed debian/postinst, as stable versions of Debian now
222 have a recent udev, and don't need the special handling
223 - updated Debian build scripts to build separate packages:
228 - added menu support to Debian barrybackup-gui package
229 - made the buttons bigger in the backup GUI, as they were too
232 - more progress in porting to opensync 0.30, heavily
233 based on the example plugin in the opensync
234 svn tree... this is a work in progress, and so far
238 - partial porting to opensync 0.30 (in progress!)
239 - fixed bug in sync_done where it reported context error
240 and then success afterward
241 - checking in new INSTALL files based on Etch's autoconf run
242 - added item to gui's todo list
243 - bumped version numbers to 0.8 in:
247 - gui/src/BackupWindow.cc (about dialog)
251 Release: version 0.7 - 2007/05/02
252 ------------------------------------------------------------------------------
254 - added rpm building to maintainer/release scripts
255 - added "HEAD" feature to tarball creation script, for easier testing
256 - updated maintainer/README
257 - updated maintainer/release.sh to use new HEAD feature too
259 - added pppob to rpm barry.spec
260 - bumped release number in barry.spec
263 - fixed size check bugs (strlen() == 0 when empty)
264 - finished refactoring calendar conversion routines
265 - started timezone parsing, but this may go away
266 if we use opensync 0.30's time functions and
268 - added development note to README
270 - updated README and opensync-plugin/README with more current
273 - refactored some calendar conversion routines
274 - added Barry->vCalendar conversion for recurring appointments
277 - removed some unneeded trace logs
278 - fixed VEventConverter constructor bug, with uninitialized
280 - eased up the requirement that every calendar event
281 must have a summary... defaults to "<blank subject>"
283 - added more VCALENDAR fields to match Barry::Calendar record
284 - fixed case sensitive compares in vformat.c
286 - opensync module work:
287 - added id map class to map string uid's from OpenSync to
288 numeric ID's from the Blackberry
289 - fixed bug in CommitChange() where it was still using
290 a hard coded calendar record state table
291 - added lots of logging throughout
292 - fixed bug where newly added records didn't use the
293 change object's uid, but created a new ID,
294 causing another sync on the next run
295 i.e. (CommitData_t was missing an argument)
296 - fixed bug where uninitialized notification time was
297 written to the Blackberry
298 - more opensync module work:
299 - refactored the environment class into another subclass
300 called DatabaseSyncState, and moved some stand-
301 alone functions from barry_sync.cc into
302 the environment classes
303 - added a tagged constructor to the trace class
304 - fixed idmap::Load() to clear map before loading
306 - renamed barry-config to barry-sync, the default configuration
307 file for the opensync module... and filled it with
308 a sample configuration
309 - added code to update the calendar cache, and write it to disk
310 on success (opensync module)
311 - added code to clear dirty flags in the device (opensync module)
312 - allowed comments in the config file
313 - added vformat.c from libopensync 0.22, since the vformat
314 routines are not available from the plugin side
317 - added -d switch to bcharge to switch back from 0001 to 0004 mode,
318 changed the auto-detection logic to ignore iProduct and
319 only use idProduct, and updated man page
320 - updated breset to recognize the Pearl in 00004 mode as well
321 - changed src/probe.cc logic to assume that the second endpoint
322 pair is the one needed for database communication, instead
323 of doing a reverse search from the end... newer Pearls
324 in Dual mode seem to have at least 3 or 4 endpoint pairs,
325 and the old search didn't always work
326 - applied sourceforge patch #1696884 from Peter Silva, updating
327 the Debian build for Etch, and including all files in one deb
328 - added Peter Silva to AUTHORS file
329 - uncommented the "make distclean" in debian/rules, and removed
330 the reliance on /tmp when installing 99-barry-perms.rules
331 - applied bb_task_format.txt patch from Peter Silva
332 - fixed each misspelling of "recurrance" to "recurrence"
333 - tweaked src/probe.cc again for paranoia's sake... start at
334 offset 1 if more than 1 endpoint pair, otherwise start
336 - split up opensync module into multiple source files, and started
337 using the opensync vformat routines for parsing and building
338 the vevent20 data (experimental)
340 - more incremental work on the opensync plugin, adding ADDED
341 and MODIFIED functionality... (experimental!)
343 - added code to dump extra descriptors during device discovery,
345 - bumped opensync version number in configure.ac, and made
346 the configure scripts more consistent with the rest
348 - fixed printf-format size bug in opensync module
350 - applied patch from Niels de Vos, fixing deb udev rules for Pearl
352 - fixed extra space bug in LDIF output (added space when creating
353 FullName, even if there was no last name)
354 - fixed Address Book record parsing in Contact class... the
355 Blackberry database uses field id 0x20 for both the
356 first and last names, and if only a last name exists,
357 the first name will be empty. Fixed parser to handle
358 this special case, without relying on string length.
359 Thanks to Troy Engel for reporting above two LDIF bugs.
360 - added a few more constants to bcharge.cc
361 - renamed opensync's configure.in to configure.ac
363 - fixed bcharge to avoid endless reset loop... oops
365 - reorganized bcharge.cc to make it possible to switch between
366 Pearl modes 0004 and 0001
367 - added flag to BadPassword exception class, to signal whether
368 the library considers the device "out of retries" or not
369 - updated socket.cc for new BadPassword exception
370 - added special case to Controller class destructor to reset the
371 device if being destroyed in a half-open state... this is
372 a temporary fix until we understand how to handle
373 the "already open" message we get when opening the Desktop
375 - added password prompt dialog to the backup GUI
376 - fixed possible memory leak in GUI's DeviceInterface::Connect()
378 - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
379 udev rules for the Pearl
380 - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
382 - applied Troy Engel's barry.spec patch to generate all required
383 RPM's... Thank you! Notes in the README taken from
384 the sourceforge tracker entry containing the patch.
385 - added libusb lib flags to tools/ and examples/ makefiles,
386 and tweaked configure.ac with a better default,
387 to build cleanly on RHEL 4
388 - modified rpm/barry.spec:
389 - does not create doc-only barry base package anymore
390 - fixed "barry-backup" typo
391 - removed the patch step, as version 0.7 shouldn't need it
392 - added license file to each package
393 - commented out console perms scripts, pending mailing list
396 - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
397 - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
399 - applied Troy Engel's udev permissions patch for Redhat/Fedora
400 systems, which automatically set the ownership of a
401 newly plugged in device to the currently logged in console
403 - added udev/README to document what all those files are for...
404 part of the text comes from the sourceforge comment
405 on the above udev permissions patch from Troy Engel
406 - uncommented the console perms scripts for rpm/barry.spec
407 - added libglademm-2.4 to gui/README's dependency list
408 - made usbwrap.* calls more threadsafe
409 - added Usb::Timeout exception for timeout errors
410 - added preliminary UsbSerData support to library for GPRS modem
411 functionality, using Rick Scott's XmBlackBerry's serdata.c
413 - added overloaded Socket::Send() for sending without receiving
414 - added preliminary pppob command line tool
420 - gui/src/BackupWindow.cc (about dialog)
423 - build system tweaks for opensync-plugin, and added a buildgen.sh
425 - added better debug messages in probe.cc and usbwrap.cc's
426 device discovery code
427 - changed error handling for null interface->altsetting pointers
428 when doing device discovery in usbwrap.cc. Seems that
429 some devices report a higher number in bNumInterfaces
430 than are really available... in this case, let's
431 just ignore the missing data and assume success
432 - applied udev script patch #1663986 from Troy Engel
433 - applied barry-bcharge.spec patch #1672178 from Troy Engel
434 - ReleaseChecklist update
435 - added rpm/README based on Troy Engel's patch notes
436 - updated new barry-bcharge.spec for version 0.7, removing patch
439 Release: version 0.6 - 2007/02/28
440 ------------------------------------------------------------------------------
442 - fixed size checks for device database records larger than 64K
443 Thanks to Michael Brown for the bug report.
444 - added initial release maintainer scripts
445 - fixed odd backup success message in GUI when doing a backup with
446 no databases selected in configuration
447 Thanks to Michael Brown for the bug report.
448 - added udev permissions file patch from Michael Brown
449 - added Michael Brown to AUTHORS
450 - updated README, gui/README, and doc/USB-capture.txt
451 - added -o command line switch to bcharge.cc, and updated man page
453 - changed library behaviour so it only turns on libusb debug output
454 if in data dump mode. In btool, -v controls this output.
455 - minor stream formatting fix in btool
456 - added OpenSSL dependency to build for password hash support
457 - made debug dout() output conditional on Init() flag... In btool,
458 -v now controls this as well
459 - reverse engineered more of the initial probe packets, and
460 implemented probing in struct based code... changes include:
461 - added support for "attribute fetch" packets, used at
462 the beginning of USB conversations
463 - defined object/attribute id codes for the PIN number
464 - made Protocol::SocketCommand more robust, and implemented
465 its sequence number behaviour
466 - moved ModeSelectCommand into SocketCommand, as it is a
467 socket 0 level command
468 - added initial protocol struct: PasswordChallenge
469 - renamed Barry::Packet to DBPacket
470 - added ZeroPacket for socket 0 packet creation and analysis
471 - Barry::Packet is now the base class for the above
472 - implemented socket 0 behaviour in socket.cc
473 - changed return values for Send/Receive/Packet/NextRecord
474 members in the Socket class from bool to void, as they
475 don't generate errors themselves, but only can
476 have an error if Usb::Device throws an exception.
477 Cleaned up all code that called these members as well.
478 - removed "last status" from Socket class as it was unused
479 - updated probe.cc to use new socket 0 implementation
480 - removed two of the hard coded packet handshakes in favour
482 - updated controller.cc:
483 - uses new socket 0 implementation
484 - removed "flag" hack when opening sockets and
485 selecting modes, as it should use the
486 socket 0 sequence number
487 - added initial, incomplete prototype header for the C API
488 - updated some .cvsignore files
490 - updated ReleaseChecklist.txt, adding rpm spec file
491 - added the following to ZeroPacket:
496 - moved Command() to base Packet class
497 - added comments to protostructs.h and size constants for the
498 new PasswordChallenge struct
499 - added password support to Socket and Controller classes
500 Thanks to Rick Scott's XmBlackBerry for the openssl
501 password hashing logic.
502 - updated btool to use new password support, and updated its man page
504 - updated Doxygen input files and version, and added to ReleaseChecklist
505 - fixed btool PIN output for LDIF mode, now commented in output
506 - major LDIF overhaul:
507 - split LDIF specific code out of the record class and
509 - fixed "full name" behaviour that added an extra space
510 in dn attributes, as reported by Troy Engel
511 - added support for mapping of LDIF attributes to Barry
513 - fixed base64 handling, so attributes are only so encoded
515 - fixed base64 attribute reading inconsistency... some
516 notes fields were missed in old version if not
518 - added support for specifying alternate attribute for
519 constructing a FQDN, instead of just "cn"
520 - updated btool and upldif to use new features
521 - large update to btool manpage
522 - fixed initialization bug in Contact constructor (missed RecType)
524 - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
525 - removed commented code from translate.cc
526 - added Pearl handshake support to bcharge.cc, which resets the
527 Pearl so that the vendor specific 0xFF class exists.
528 This should allow use of btool on the Pearl.
529 - added Data::AppendHexString to data.cc
530 - added better probing support for the Pearl, so it detects the
531 Product ID 0x0004 mode, and does a search for class 0xFF
532 instead of hardcoding it.
534 - applied README patch from Ian Darwin
535 - minor tweaks to README
536 - added missing errno.h header in src/usbwrap.cc for AMD64
537 Thanks to Jonathan Hudson for reporting the bug.
538 - tightened up size checks in Data::ReleaseBuffer()
539 - stable libusb *does* return the actual length of the USB packet...
540 fixed this in usbwrap.cc to set the actual size of read data,
541 and removed the size hacks elsewhere in the code:
542 probe.cc, protocol.cc, socket.cc, usbwrap.cc
544 - added proper return codes for error conditions in btool.cc
545 - clarified some stream output code in the library, for hex/dec numbers
546 - removed old, non-working connect.cc test program
547 - added iomanip to debug.h
548 - changed usbwrap to call libusb again if EINTR and EAGAIN
549 This should fix one of the OpenBSD issues
552 - fixed bug in barrybackup GUI that didn't create the target path
553 if the user didn't do Edit | Config first.
554 Thanks to Ian Darwin for reporting the bug.
555 - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
558 - added initial btool.1 man page from Ian Darwin
559 - updated man/Makefile.am for new btool.1
561 - applied btool -h help clarification patch from Ian Darwin
563 - reworked exception hierarchy, so applications can handle all
564 Barry related exceptions, including Usb errors, with
565 one base class: Barry::Error
566 - fixed all the ripple changes this caused throughout the codebase
567 - added BadPassword exception
573 - gui/src/BackupWindow.cc (about dialog)
574 - updated doc/ReleaseChecklist.txt
575 - added usb-level breset.cc command line tool
576 - fixed bug in gui/src/tarfile.* for systems where
577 sizeof(int) != sizeof(void*)
578 - TarFile class now uses a plugin style for the compression
579 operations, to allow for threadsafe versions if needed
581 - also fixed leaked file handle bug in open_compressed()
582 - Thanks to Jonathan Hudson for reporting this for 64bit systems
583 - minor signed comparison fixes in the library
584 - added better protocol data dumping code in probe.cc
585 - added Usb::Device::BulkDrain(), to prevent Barry from hanging
588 Release: version 0.5 - 2007/01/26
589 ------------------------------------------------------------------------------
591 - added missing errno.h header to gui/src/util.cc
592 - lots more endian fixes after testing on iMac
593 - iostream output size fixes
594 - added option to btool to reset the device via software
595 - beefed up exception handling in barrybackup
596 - checked in opensync work-in-progress: trace logging, pointer bugfix
597 this is still experimental
598 - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
599 class for systems running older versions of gtkmm, like
601 - uncommented the about box menu handler
602 - added "cleanall" option to root buildgen.sh script
603 - update ReleaseChecklist.txt
604 - removed CVS auto-history strings from aboutdialog.*
606 - found a link between the unknown field in tagged protocol headers
607 and the unknown field in RecordStateTable entries. This
608 field matters when uploading certain databases, such as
609 Browser Options. It is unknown what this field really
610 means, but we're calling it RecType. Updated the API
611 to use this in all parser objects and builder objects
612 and record objects that use it.
613 - changed some uses of uint64_t to uint32_t, in Contact and
614 Calendar record objects... unique IDs only seem to be
616 - added new static function to record classes: GetDefaultRecType()
617 This returns the default rectype that should work
618 for that record. Ideally this should be retrieved from
619 the device, but in the case where a database has no
620 records, this info would be good to know.
621 - updated convenience template function Controller::AddRecordByType()
622 to use GetDefaultRecType()
623 - documented the recurrence data and how to use it in Calendar objects
624 - added data debug output for incoming USB packets in the
625 socket class... when we ported to the stable libusb
626 we lost some of the verbose output... this should get it
627 back. (In the official release, you need to uncomment
628 ddout() in debug.h for the full blast of debug output).
629 - backup GUI updates:
630 - changed error_done signal into a pure error signal,
631 and changed the logic so the restore continues
632 even if there was a protocol error on one database
633 - changed status bar messages to show what's happening
634 i.e. Backup or Restore
635 - default to not restore the "Handheld Agent" database as
636 it appears to be read-only on the device
637 - added temporary Restore & Backup mode for debugging
638 - added extra hyphen to backup files to show date/time better
639 - updated GUI to save and restore the new RecType field
640 supported now by the library
642 - added future considerations to doc/ReleaseChecklist.txt
643 - applied big endian patch from Jonathan Hudson
645 - removed endian.h include from barry.h, since applications
646 using the library should not care about endianness
647 - hard coded the path to config.h in endian.h
648 so that endian.h never makes it into the final
650 - removed DEFAULT_INCLUDES setting from src/Makefile.am
652 - removed config.h dependency in btool.cc and used library
654 - added big/little endian text to the Barry::Version call
656 - fixed install location of bcharge when building with ./configure;
657 now goes to sbin/ for both source compile and binary packages
658 Thanks to Jonathan Hudson for reporting this bug.
660 - added smarter timeout values to controller, and allowed
661 timeout overrides in the packet, socket, and usbwrap code...
662 extra timeouts are needed for erasing databases for
664 - added an explicit DataDumpParser class to btool.cc, as the
665 library doesn't always have extreme verbose debugging on...
666 this makes sure anyone can always get raw database packets
667 through btool, for development
668 - added thread callback signals for error finishes and erase_db
669 operations, so the GUI is updated properly
670 - more GUI cleanups (status bar updates, etc)
671 - finished implementation of GUI restore
672 - fixed gtkmm/glibmm exception handling when the exceptions
673 occur in sigc signal handlers... in that case,
674 exceptions need to be handled with
675 Glib::add_exception_handler()
676 - added filename-only reading support to TarFile class
677 - added pending gui/TODO items
679 - backup GUI now properly shows progress
680 - the buttons become insensitive when backup is busy
681 - refactored directory check code, and added mkdir check
682 when to the backup setup (so the directory exists
683 when we try to write to it)
684 - updated code to use Barry::Data in new namespace
686 - moved Data class into Barry namespace
688 - updated copyright dates for the new year
689 - clarified exception message in controller.cc
690 - fixed pointer initialization bug in controller.cc
691 - added documentation comments to parser.h and builder.h
692 - updated ReleaseChecklist.txt
694 - changed Barry library configure scripts to make better
695 use of pkg-config for autodetecting dependencies
696 - added initial Barry Backup GUI (gui/ directory), capable of making
697 backups only at this point
699 - added doc/ReleaseChecklist.txt
700 - added version API, returning version number and string
701 - added Troy Engel to AUTHORS
702 - added special case to bcharge.cc for the Blackberry Pearl,
703 which doesn't reset itself after the charge handshake
704 Thanks to Troy Engel for testing.
706 - added pkg-config support for the library (libbarry-0.pc.in)
707 - fixed compile error on g++ 3.3 systems (missing stdint.h
709 - fixed protocol hang at end of Controller operation... in
710 controller destructor, it was deleting the USB interface
711 before closing the socket at the BlackBerry level, thereby
712 leaving the device in Desktop mode
714 - support the newer udev packages on Ubuntu, which need slightly
716 - modified bcharge.cc to search for Pearl devices too.
718 - added Pearl product ID to probe code, but likely not functional
719 yet until we find someone able to get a USB capture for us
721 - version bump in configure.ac and src/Makefile.am
723 Release: version 0.4 - 2006/12/29
724 ------------------------------------------------------------------------------
726 - added bcharge.cc to the tools/ directory (whoohoo!)
727 - added initial release version of rpm/barry.spec (aka bcharge.spec)
728 This begins the barry binary release, currently only
729 including the bcharge utility, but possibly more in
730 the future. Future binary packages will likely include
731 libbarry, libbarry-devel, etc, which barry will then
733 - added udev rule script for BlackBerry devices
734 - added man/ directory and bcharge.1 manpage
735 - added debian/ directory for building deb packages, with initial
737 - added rpm/make-rpm-tarball.sh for building RPMs
738 - split out technical docs into separate libbarry.docs file for
739 a future Debian install
740 - added more cleaning to buildgen.sh
741 - added new udev rule file for Debian stable
742 - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
743 on my system and need to compile releases with stable
745 - ported Barry to use the stable branch of libusb
746 NOTE: no longer depends on the devel libusb tarball!
747 Just use your distro's libusb packages.
748 - fixed more endian issues
749 - minor update to TODO
751 - moved Exceptions, Hacking, and VersionNotes to doc/
752 - added doc/USB-capture.txt
754 - added Controller::AddRecord() and template helper
755 - added beginning version of generic RecordFetch<> template
756 - set default of Barry::Init() to false (no data dump mode)
757 - added examples/ directory, with first addcontact.cc example
759 - added autoconf support based on Peter McAlpine's patch
760 - renamed Makefiles to Makefile.orig and added script to turn
761 on old build system if wanted
762 - fixed boost-specific error path in btool
763 - moved platform specific code out of time.h and into time.cc
764 - moved btool.cc, translate.cc, and upldif.cc out of src/ and
765 into their own tools/ subdirectory
766 - added NEWS file to make autotools happy
767 - added a "clean" option to the buildgen.sh script... maintainer's
769 - reworked autoconf and automake files, to support
770 barry as a library, to move the programs into their
771 own tools directory, and support a proper installation
772 - fixed headers in parser.h, btool.cc, and upldif.cc to work
773 properly when installed standalone
774 - added tools/Makefile.plain for testing compiling against
775 installed barry library
776 - added commentary on version number system
777 - removed Makefile.conf and Makefile.orig, as new autoconf
779 - added support for boost serialization library in autoconf build
780 - added library version number to autoconf build
781 - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
782 - removed debug.h dependency from btool.cc
783 - removed libusb check in favour of specific --with-libusb
784 option... may need to revisit this later
785 - quick installation update in README
787 - fixed some missed endian conversions in record.cc and added
789 - fixed endian issues in time.h
790 - added 2 more functions to the time zone API, and adjusted
791 the time zone table for better defaults in North America
792 - added btool and upldif to the make install sequence
793 - added support for Calendar recurrence data
794 - small doc/TimeZones.txt update
796 - added BlackBerry time zone code list, reverse engineered from a 7750
797 - added GetTimeZone() to convert device time zone codes to useful data
799 Release: version 0.0.3 - 2006/11/24
800 ------------------------------------------------------------------------------
802 - added return code check to Controller::SaveDatabase()
803 - fixed Data() class constructor, so it doesn't auto-convert
805 - fixed size checking bug in Packet::ReturnCode() that caused
806 uploading to device to fail
808 - added Exceptions doc file, documenting the C++ exceptions used,
810 - fixed small bug in 'make install' which didn't build first
811 - minor documentation and cleanup in upldif.cc
812 - added utility functions to the RecordStateTable class,
813 GetIndex() and MakeNewRecordId()
814 - changed btool so that the -d command modifiers can be
815 specified multiple times to work with multiple records
817 - added Calendar sync code to the opensync module (not complete)
818 - cleaned up exception handling in the opensync module, making
819 more use of the base exception to make sure no
820 exceptions leak into the C library code
822 Release: version 0.0.2 - 2006/10/12
823 ------------------------------------------------------------------------------
825 - fixed casting error in opensync module
826 - minor updates to documentation to prepare for release
828 - added stdint.h to parser.h for uint32_t. Thanks Ron Gage for
831 - large refactoring of the packet parsing and building code,
832 splitting the code into 3 groups:
833 - record: handles record specific parsing and building...
834 this is mostly subfields with CommonField structs
835 as their headers, but sometimes has a specific
836 header of its own, in the case of email
837 Note: email's header is as yet undecoded.
838 Record does not know the details of the packet
839 formats, only the formats of its own record data.
840 - packet: handles building of complete command packets
841 and handles parsing of commonly used header values,
842 providing an API for it... packet does not know
843 the record format details, but does know the
844 details of each Database Operation (protocol.h)
846 So far, it seems that there is a real separation
847 of operation formats and record formats, with the
848 record formats being the same even with different
849 database operation codes (GET_RECORDS /
850 OLD_GET_RECORDS), which was not confirmed before.
851 See the header size of the email record after
853 - controller: handles device state, and the management of
854 sockets, commands, and checking for response values.
855 The Controller object does not know the format
856 of either the record or the packet it is sending,
857 but does know the protocol handshake logic used
858 to talk to the device.
859 - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
861 - spelling correction in opensync-plugin/AUTHORS
863 - added sample hotplug scripts
864 - added .cvsignore files for doxygen and opensync directories
865 - added src/endian.h... still need to add configure support to
866 handle non-little-endian machines
867 - added exception handler in opensync plugin commit_change()
868 - removed the device reset code in probe.cc, as resetting a device
869 can renumber the devices in /proc on kernel 2.4.x,
870 and cause a failure to reach the device...
871 FIXME - this should be changed someday to reset if probing
872 fails, and restart the probe on reset, as sometimes
873 the blackberry devices respond differently when not reset
874 Ideally, the probe protocol should be properly reverse
876 - added support for retrieving record state table, which is needed
878 - added support for retrieving, deleting, and clearing the dirty
879 flags of individual blackberry device records
880 - added endian macros throughout the code
882 - added opensync-plugin to root Makefile's clean
883 - updated time conversion calls to match opensync's latest SVN
884 - added opensync_change_set_changetype() (only add for now,
886 - removed slow sync functions for now
888 - added quick "install" makefile target, to src/install by default
889 - added static library target... this is temporary until autoconf
890 stuff is added properly... needed for the opensync plugin
891 - documented in comments that Barry::BError is intended to be
892 the base classes for all exceptions
893 - added first round of implementation of an opensync plugin, based
894 on the example plugin code from the opensync sources
896 - added to Contact record class:
898 - ReadLdif() to load and parse LDAP data
899 - added fragmented send support to Socket class
900 - added Probe::FindActive() to make client programs more streamlined
901 - fixed hex/decimal printing of record counts in btool
902 - added upldif.cc, a utility to take ldapsearch output on stdin
903 and upload it to a blackberry
904 - updated src/.cvsignore
906 - added parsing of service book fields:
908 - old and new unique ID (UID)
910 - old and new description
912 - bes domain / domain
913 - date change in legal.txt
914 - added initial parsing of ServiceBook field 0x09, and calling it
915 ServiceBookConfig for now, for lack of a better name
916 - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
917 seems to be a name or description, but doesn't appear
918 in the device's own GUI... called "Hidden Name" for now
920 - added ServiceBook record class and parser code, based on some
921 of Ron Gage's reverse engineering... code is by Chris Frey
923 - fixed the libusb set_configuration/claim_interface order
924 bug in controller.{h,cc}... already fixed in probe,
925 but not controller. Thanks Ron Gage for finding this.
927 - renamed Changelog to ChangeLog in preparation for autoconf
928 - renamed Todo to TODO in preparation for autoconf
930 - make clean cleans up tests properly now
932 - turned source code browsing on in Doxyfile
933 - added LoadDatabaseByName() and LoadDatabaseByType() template members
934 to the Controller class
935 - new file: controllertmpl.h
936 - documentation fixes in builder.h
937 - added static GetDBName() functions to all record classes, in
938 support of the template Controller functions
939 - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
940 returning errors properly
941 - documented sample btool.cc code better, and added example
942 of Controller template member usage
944 - copyright dates updated for 2006
946 - backed out update to latest libusb DEVEL tree, since it is buggy.
947 Stick with libusb 2005/11/26
949 - added clean target to convenience Makefile
950 - added Boost to list of dependencies in README
951 - fixed minor compile warnings in base64.cc
952 - fixed new USB discovery code, and changed endpoint usage to use
953 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
954 constants... constants are now removed
955 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
956 - added ClearHalt() to Usb::Device (usbwrap.cc)
957 - updated usbwrap.h to match latest libusb CVS devel tree
958 - updated README to refer to 2005/12/30 libusb CVS devel tree
959 - added roadmap to Todo list
961 - added convenience Makefile in root directory
962 - added Hacking document
963 - minor touchups to README
964 - added caution warning to README, since this release will support
965 delete / overwrite / upload functionality
966 - minor compile order change in Makefile (speed reasons)
967 - added dynamic endpoint discovery to probe.cc
968 - changed claim_interface/set_configuration() function call order in
969 probe.cc based on feedback on the libusb mailing list
970 - added USB discovery code to usbwrap.{h,cc}
972 - fixed packing bug in new upload header struct
973 - renamed CommonField union from data to u to be consistent
974 - added return_code field to DBAccess struct, for error checking
975 - added response checking during upload: if response is non-zero
976 throw exception in controller.cc
977 - added sorting operators to record parser classes... when writing
978 contact data to the device, it may be important to write
979 group link items last, since they reference other contacts...
980 This needs to be tested, and if not required, removed.
981 - added GROUP_FLAG field code to Contact parser class
982 - fixed offset bug in Contact and Calendar Build() functions
983 - fixed name bug in Contact::Build(), now output only with data
984 - added appointment type flag support to Calendar record parser
985 class, and "all day event" flag support
987 - added autoconf to Todo list
988 - refactored the protocol structures so that record structs can
989 be reused for upload and download
990 - with new protostructs, more header control is handled by
991 controller.cc instead of record.cc parsers and builders
992 - parser code now accepts an offset, to govern start of record data
993 - changed Data sizes from int to size_t and removed casts
994 - removed unneeded Parser::GetHeaderSize() (new protostructs make
996 - added Calendar::Build() for calendar uploads
998 - added s11n-boost.h serialization templates for boost::serialization
999 - added boost::serialization to build
1000 - minor change in usbwrap.cc to display error codes in decimal
1001 - added SizePacket special case code to Socket::Send()... this is
1002 required when uploaded packet size is a multiple of 0x40,
1003 a special 3 byte size packet is sent
1004 - moved some record class variables to public: so they can be
1006 - fixed variable name but in RecordBuilder template
1007 - added -f switch to btool, for saving and loading of record data
1008 - added -s switch to btool, for uploading saved data back to handheld
1009 - added Controller::SaveDatabase()
1011 - fixed potential casting / pointer bug in controller.cc
1012 - added builder.h, to support uploading
1013 - minor comment fixes in parser.h
1014 - added preliminary Contact protocol record building support
1015 - fixed field order bug in ContactRecord protocol struct
1016 - Contact record.h class now saves unknown Group Link field,
1019 - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
1020 optimize away protocol struct casts
1022 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
1023 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
1024 http://groups.google.ca/group/comp.lang.c++.moderated/ \
1025 browse_thread/thread/e7bf096832526f8e/5714701b \
1026 02a2a3cc?hl=en#5714701b02a2a3cc
1027 - changed headers so that any low level protocol-specific sizes and
1028 structs are completely hidden in the library...
1029 this adds library-only header: protostructs.h
1031 Release: version 0.0.1 - 2005/11/25
1032 ------------------------------------------------------------------------------
1034 - added barry.h for documentation purposes and application usage
1035 - updated README for release
1036 - renamed SBError exception class to BError
1037 - updated Doxyfile to version 1.4.5
1038 - added more doxygen comments
1040 - added conversion routines (and tests) between time_t and min1900_t
1041 - added -v option to btool to dynamically control protocol dumping
1042 - removed duplicated database database table display in controller.cc
1043 - minor spelling corrections
1044 - added copyright to usbwrap.{h,cc} as per earlier meeting
1045 - added support for Old protocol Calendar entries
1047 - added legal.txt, to save typing when adding new source files
1048 - ignore test-base64 file (cvsignore)
1049 - added contact-to-ldif generation, and updated supporting code
1050 - added argument to btool to support contact-to-ldif operation
1051 - added Contact::GetPostalAddress()
1052 - added README documentation in preparation for future release
1054 - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
1055 - added code to socket.cc's Packet() command to re-receive on
1056 reception of empty packets... this seems to be a signal
1057 from the device that it needs more time for long transfers
1058 Current limit: 10 blank packets before exception is thrown
1059 Observed maximum blank count: 1
1060 - added MessageRecord and OldMessageRecord to protocol.h
1061 - changed common record field structs to one CommonField struct
1062 - increased default USB timeout to 10 seconds (some loaded devices
1063 seem to need more time...)
1064 - reorganized record.{h,cc} to try to reduce the code duplication
1065 - record.h classes now "know" the sizes of their corresponding
1066 protocol structs... this may cause trouble down the line
1067 with Python, if used(?)
1068 - added Message class for Email records
1069 - removed the "Get*" database functions and replaced with
1070 general LoadDatabase() call, which loads any database
1071 available, and parses it with a Parser object
1072 - added GetDBID() for searching for database numbers via name
1073 - added test code to retrieve and display all email
1074 - cleaned up comments
1075 - renamed blackberry.{h,cc} to controller.{h,cc}
1076 - renamed bbtool.cc to btool.cc
1077 - added Makefile.conf
1078 - added copyright notices to source files
1079 - added COPYING file with GPL
1080 - put parser in Barry namespace, and added auto_ptr-like mode for
1081 store object pointers
1082 - added doxygen docs
1083 - added header comments to convo.awk script
1084 - removed Test() function in Controller object, and made class
1085 better suited to its general API purpose
1086 - changed OpenMode() so it loads command table and DBDB... it is now
1087 a public API function
1088 - moved Controller test code to btool.cc and made tool more
1089 generically useful... can now download any DB by name on
1091 - added mode checks to Controller
1092 - added -t and -d command line options to btool
1093 - added base64 routines from John Walker / Fourmilab and Citadel/UX
1094 - converted base64 routines into an API, instead of hardcoded
1097 - changed project name to Barry, including namespaces
1098 - renamed sbcommon.* to common.*
1099 - increased USB default timeout to 2 seconds
1100 - fixed formatting bug in Data operator<< output
1101 - cleaned up the protocol packet structs, getting rid of the
1102 confusing param/simple split... param is now the tableCmd
1103 from the Command Table
1104 - moved protocol structs from record.h to protocol.h
1105 - added support for older version of the USB protocol, which matches
1106 the Cassis spec more closely
1107 - fixed the hardcoded offsets in blackberry.cc's protocol parsing
1108 - fixed Socket::Close() so on error, socket flags are reset.
1109 This stops Close() from being called twice on exception
1112 - added Doxyfile to the project
1114 - added mode selection support to Blackberry class (RIM Desktop,
1115 RIM Bypass, and RIM_JavaLoader)
1116 Mode selection governs which socket is used in subsequent
1118 - added Command Table parsing and protocol support
1119 Blackberry class, and CommandTable record class
1120 - added Database database parsing and protocol support
1121 Blackberry class and DatabaseDatabase record class
1122 - added Address book retrieval support - dumps data to stdout for now
1123 - fixed bug in CopyOnWrite mode in Data class, where could allocate
1124 less buffer than data copied
1125 - added "easy exception" debug output macro
1126 - fixed minor spelling error in protocol.cc
1127 - fixed ModeSelectCommand protocol structure - it is not a parameter
1128 command, but uses the unknown slots for socket and flag
1130 - removed hardcoded socket numbers from protocol.h
1131 - fixed bug in socket.cc:Open() where packet size was not properly
1133 - implemented socket::Close()
1134 - fixed sequence number checks, so it is reset properly on socket 0
1135 - added Socket::NextRecord() for multiple record data transfers
1136 - fixed input handling bug in translate.cc
1138 - added .cvsignore files to project
1139 - added README notes to document the source architecture
1140 - added dbsetup data script, which shows how to get into database
1141 mode, using the RIM Desktop mode, and open a socket
1142 - added blackberry.{h,cc} class
1143 - added command line parameters to bbtool.cc
1145 -p = specify pin of blackberry device
1146 - added blackberry test code in bbtool.cc - debugging the initial
1147 opening protocol: sockets, modes, etc... see dbsetup for
1149 - added copy-on-write functionality to Data class, so it can be used
1150 with plain data buffers with little performance impact
1151 - added eout() and ddout() debugging - to separate:
1152 - regular debug output
1153 - exception debug output (should probably be logged to
1154 syslog someday, and never turned off)
1155 - raw data dump output
1156 - changed errno SBError exception handler to try to decode the error
1157 numbers into english (limited success)
1158 - fixed probe and socket USB Bulk message handling, so they don't
1159 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
1160 - added common packet size checker in protocol.cc
1161 - fixed unpacked protocol packet structs... using gcc's
1162 __attribute__ ((packed)) ... see protocol.h
1163 - added ModeSelectCommand structure (protocol.h)
1164 - finished Socket::Open() call (Close() not yet implemented)
1165 - moved Socket::Send/Receive() out of private, as they can be used
1166 for socket 0 operations.
1167 - cleaned up pointer management with macros:
1171 - added IO::Wait() and IO::Cancel() to correspond with libusb API
1172 - added datadumping in usbwrap for easy protocol capture
1173 - added preliminary record.{h,cc} classes
1174 - added Contact record parsing, and test code
1176 - syncberry tree started