API changes on TnyAccountStore



The two methods for adding either store or transport accounts to a
TnyAccountStore have been removed from Tinymail's API.

Although they might come back, especially when needed for the ACAP
support, they are incorrectly implemented in all existing
TnyAccountStore implementations.

The API would also be drastically different.

Therefore I think it's better to remove it from the interface's struct,
and therefore I for now removed them.

This makes it possible to later 'append' them back, not interfering with
the valid API function pointers's offsets. And therefore making it
possible to commit changes to the type, without breaking ABI.

All existing implementations have the implementations kept in place for
now. These implementations, however, are now each of them specific to
the implementation. Their function prototypes are in the public .h file
of the specific type and don't use the "TnyAccountStore" type but rather
the "TnyMyAccountStore" one as their "self" type.

Although small, this might have an impact on the account-store
implementation of Modest. Feel free to ask me for assistance (it comes
down to removing the function pointer assignments in the GTypeInterface
initialisation function for TnyAccountStore).


-- 
Philip Van Hoof, software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://www.pvanhoof.be/blog







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]