summaryrefslogtreecommitdiffstats
path: root/lib/module.h
diff options
context:
space:
mode:
authorMarek Vavruša <marek.vavrusa@nic.cz>2015-12-09 23:52:09 +0100
committerMarek Vavruša <marek.vavrusa@nic.cz>2015-12-10 00:43:02 +0100
commite0fe89e57a86872cc5be89d43449745b964d5ba9 (patch)
tree568df8a7a44c2ccbe39f66a7f7619b47b21e4576 /lib/module.h
parentcontrib: compile to convenience static library (diff)
downloadknot-resolver-e0fe89e57a86872cc5be89d43449745b964d5ba9.tar.xz
knot-resolver-e0fe89e57a86872cc5be89d43449745b964d5ba9.zip
build: library able to compile to both static/dynamic versioned libs
* PIE,RELRO+NOW and other security features enabled * support for both static/dynamic builds with BUILDMODE * dynamic library is ABI-versioned, starting at 1 * pkg-config file is installed
Diffstat (limited to 'lib/module.h')
-rw-r--r--lib/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/module.h b/lib/module.h
index d3d2c7b3..4b9ec2b9 100644
--- a/lib/module.h
+++ b/lib/module.h
@@ -72,6 +72,7 @@ struct kr_module {
* @param path module search path
* @return 0 or an error
*/
+KR_EXPORT
int kr_module_load(struct kr_module *module, const char *name, const char *path);
/**
@@ -79,6 +80,7 @@ int kr_module_load(struct kr_module *module, const char *name, const char *path)
*
* @param module module structure
*/
+KR_EXPORT
void kr_module_unload(struct kr_module *module);
/**