[Barry-devel] Library API change coming
Status: Beta
Brought to you by:
ndprojects
From: Chris F. <cd...@fo...> - 2008-01-30 12:39:07
|
Hi folks, I've nearly finished the preliminary work on the new socket architecture in the Barry library. This change is needed for GPRS modem support in the future, plus, it cleans up some of the code. For those of you programming with Barry, the change affects how you connect to the device. Currently, you would do: Controller con(proberesult); con.OpenMode(Controller::Desktop); con.LoadDatabase(...); With the new API changes, this will become: Controller con(proberesult); Mode::Desktop desktop(con); desktop.Open(); desktop.LoadDatabase(...); In the future, there will be a Mode::Serial class that can use the modem as well. If anyone wants to test this development branch, you can grab it via CVS with the following command: cd /path/where/you/keep/Barry ./buildgen.sh cleanall cvs update -Pd -r barry-b1-socket-arch-branch ./buildgen.sh ./configure, etc. To go back to the main tree, do: cd /path/where/you/keep/Barry ./buildgen.sh cleanall cvs update -PdA I'll be merging the barry-b1-socket-arch-branch tree into the main tree soon, but want to do some more testing on it. - Chris |