Refactor phonebook code
authorDenis Kenzior <denkenz@gmail.com>
Tue, 16 Jun 2009 21:33:05 +0000 (16:33 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 16 Jun 2009 21:42:02 +0000 (16:42 -0500)
commit5fa4cd895c8aa1dc604e8751978f1f6da71d46c4
tree202de070abf454cb885a71f18cfb3595dc823ac8
parentfc98cf91a8a4e8d6b39ea1ec1ac87c428dd47859
Refactor phonebook code

Use immediate mode reporting, which means that the individual CPBR
lines are reported up to the core immediately.  This has a couple
advantages:
  - We do not need to malloc/free a bunch of single variables
    and copy them over.  Helps performance.
  - The lines are not buffered up and given to the plugin in one
    shot, instead processing is performed piecemeal.  This helps
    with keeping memory consumption down to a minimum
drivers/atmodem/phonebook.c
src/driver.h
src/phonebook.c