diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-09-30 15:28:24 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-09-30 15:28:24 -0300 |
commit | f7f28510244e22c3676cea40f55dbed6338005f3 (patch) | |
tree | 75e20f92985c19804f3fd538bdb4614e48fa54ff /libkmod | |
parent | f3f62f5ec3b23823b2ce02e37bc707dc85c56461 (diff) | |
download | kmod-f7f28510244e22c3676cea40f55dbed6338005f3.tar.gz kmod-f7f28510244e22c3676cea40f55dbed6338005f3.tar.bz2 kmod-f7f28510244e22c3676cea40f55dbed6338005f3.zip |
libkmod: export new kmod_get_dirname() function
Make sure it gets exported and add documentation.
Diffstat (limited to 'libkmod')
-rw-r--r-- | libkmod/libkmod.c | 10 | ||||
-rw-r--r-- | libkmod/libkmod.sym | 5 |
2 files changed, 14 insertions, 1 deletions
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 643fd38..69fe431 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -146,7 +146,15 @@ static void log_filep(void *data, vfprintf(fp, format, args); } -const char *kmod_get_dirname(const struct kmod_ctx *ctx) + +/** + * kmod_get_dirname: + * @ctx: kmod library context + * + * Retrieve the absolute path used for linux modules in this context. The path + * is computed from the arguments to kmod_new(). + */ +KMOD_EXPORT const char *kmod_get_dirname(const struct kmod_ctx *ctx) { return ctx->dirname; } diff --git a/libkmod/libkmod.sym b/libkmod/libkmod.sym index 854d257..5f5e1fb 100644 --- a/libkmod/libkmod.sym +++ b/libkmod/libkmod.sym @@ -86,3 +86,8 @@ LIBKMOD_6 { global: kmod_module_apply_filter; } LIBKMOD_5; + +LIBKMOD_22 { +global: + kmod_get_dirname; +} LIBKMOD_6; |