From: Vladimír Čunát Date: Thu, 11 Apr 2019 08:51:18 +0000 (+0200) Subject: document module API+ABI changes X-Git-Tag: v4.0.0~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b54dd81d2972651aac35329bf7232328d776bcad;p=thirdparty%2Fknot-resolver.git document module API+ABI changes --- diff --git a/NEWS b/NEWS index 33b8e6859..fe5429b15 100644 --- a/NEWS +++ b/NEWS @@ -42,6 +42,8 @@ Bugfixes Module API changes ------------------ - kr_straddr_split() changed API a bit (compiler will catch that) +- C modules defining `*_layer` or `*_props` symbols need to change a bit + See the upgrading guide for details. It's detected on module load. Knot Resolver 3.2.1 (2019-01-10) diff --git a/doc/upgrading.rst b/doc/upgrading.rst index 013d41c0f..c638d32c2 100644 --- a/doc/upgrading.rst +++ b/doc/upgrading.rst @@ -63,6 +63,9 @@ Module changes ``kres_modules.*``. * ``kr_straddr_split()`` API has changed. +* C modules defining ``*_layer`` or ``*_props`` symbols need to use a different style, but it's typically a trivial change. + Instead of exporting the corresponding symbols, the module should assign pointers to its static structures inside its ``*_init()`` function. Example migration: + `bogus_log module `_. .. _upgrade-from-2-to-3: