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