[Digikam-devel] Re: libkdcraw from graphics gsoc-branch

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Nov 25 09:16:07 GMT 2010


> Please correct me if I'm wrong. If the structure is used as a in parameter
> at library side there should be a problem. The application linked against
> old lib will allocate a structure in size of the old one. The new library
> with extended structure will parse the new size. So the there is a out of
> struture memory call at some place?

Yes, you are right. 
Compare for example with QStyleOptionViewItem in Qt: When the parameter, which 
is passed by value, gets new fields, there is need for QStyleOptionViewItemV2, 
...V3, ...V4.
Of course, if the ABI number is increased with the change of the structure, 
all is well.

Marcel



More information about the Digikam-devel mailing list