Skip to content

Commit

Permalink
Make GDALTransformerArg a typedef of an anonymous struct GDALTransfor…
Browse files Browse the repository at this point in the history
…merArgOpaque*
  • Loading branch information
rouault committed Oct 8, 2024
1 parent 1aaac05 commit 2eb51d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions MIGRATION_GUIDE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ MIGRATION GUIDE FROM GDAL 3.9 to GDAL 3.10
- New color interpretation (GCI_xxxx) items have been added to the GDALColorInterp
enumeration. Code testing color interpretation may need to be adapted.

- Out of tree code using GDALTransformer. "void* pTransformArg" arguments have
now become "GDALTransformerArg pTransformArg" where GDALTransformerArg is
a typedef to a point to an anonymous struct. Code doing things lie
static_cast<MyCustomTransformerInfo*>(...) must now use
reinterpret_cast<MyCustomTransformerInfo>(...)
and code returning a void* that is a transformer argument must use
reinterpret_cast<GDALTransformerArg>(...).


MIGRATION GUIDE FROM GDAL 3.8 to GDAL 3.9
-----------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion alg/gdal_alg.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CPLErr CPL_DLL CPL_STDCALL GDALSieveFilter(
* All transformer arguments should have a GDALTransformerInfo member as their
* first member.
*/
typedef void *GDALTransformerArg;
typedef struct GDALTransformerArgOpaque *GDALTransformerArg;

typedef int (*GDALTransformerFunc)(GDALTransformerArg pTransformerArg,
int bDstToSrc, int nPointCount, double *x,
Expand Down

0 comments on commit 2eb51d9

Please sign in to comment.