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

Gilles Caulier caulier.gilles at gmail.com
Thu Nov 25 09:31:28 GMT 2010


2010/11/25 Marcel Wiesweg <marcel.wiesweg at gmx.de>:
>
>> 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.


and i increased ABI id of course, as API id.

Gilles



More information about the Digikam-devel mailing list