Make sure it gets exported and add documentation.
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;
}
global:
kmod_module_apply_filter;
} LIBKMOD_5;
+
+LIBKMOD_22 {
+global:
+ kmod_get_dirname;
+} LIBKMOD_6;