summaryrefslogtreecommitdiffstats
path: root/modules/README.rst
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2016-11-08 17:58:30 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2016-11-08 17:58:30 +0100
commit4ad98bff3a03337544d790673c65e1c58701093b (patch)
tree7fd7ffb95bb148819759bc394509ebda7f7e71ec /modules/README.rst
parentMerge branch 'mod-daf-after-http' into 'master' (diff)
downloadknot-resolver-4ad98bff3a03337544d790673c65e1c58701093b.tar.xz
knot-resolver-4ad98bff3a03337544d790673c65e1c58701093b.zip
layer: rename knot_ identifiers that are private now
It causes lots of line changes, but it would be confusing to keep the current state over long term.
Diffstat (limited to 'modules/README.rst')
-rw-r--r--modules/README.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/README.rst b/modules/README.rst
index 26a69232..6d988bd0 100644
--- a/modules/README.rst
+++ b/modules/README.rst
@@ -210,11 +210,11 @@ to avoid multiple declarations. Here's how the preface looks like:
#include "lib/layer.h"
#include "lib/module.h"
// Need a forward declaration of the function signature
- int finish(knot_layer_t *);
+ int finish(kr_layer_t *);
// Workaround for layers composition
- static inline const knot_layer_api_t *_layer(void)
+ static inline const kr_layer_api_t *_layer(void)
{
- static const knot_layer_api_t api = {
+ static const kr_layer_api_t api = {
.finish = &finish
};
return &api;
@@ -228,7 +228,7 @@ Now we can add the implementations for the ``finish`` layer and finalize the mod
.. code-block:: go
//export finish
- func finish(ctx *C.knot_layer_t) C.int {
+ func finish(ctx *C.kr_layer_t) C.int {
// Since the context is unsafe.Pointer, we need to cast it
var param *C.struct_kr_request = (*C.struct_kr_request)(ctx.data)
// Now we can use the C API as well
@@ -237,7 +237,7 @@ Now we can add the implementations for the ``finish`` layer and finalize the mod
}
//export mymodule_layer
- func mymodule_layer(module *C.struct_kr_module) *C.knot_layer_api_t {
+ func mymodule_layer(module *C.struct_kr_module) *C.kr_layer_api_t {
// Wrapping the inline trampoline function
return C._layer()
}