Special attention required for app developers using TnyHeader



Hi there,

The get functions of the TnyHeader interface have been changed. The ones
that used to return a const char* are now returning a char* and their
returned value must be freed if not NULL using g_free.

For convenience are the functions themselves renamed from 'get' to
'dup'. This way will your compiler error on you unless you fix this.

This is intentional so that everybody has the opportunity to find the
occurrences of his TnyHeader's get function usage, to replace it with a
dup and then free the returned value if necessary.

The API will not change back to get functions. The dup name is the final
name for it in 1.0 (which will be released soon).

I apologise for this very late yet drastic API change.

Given the severity of the situation, it is nonetheless the right thing
to do.


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






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