libkmod-private: allow to get aliases from config

This commit is contained in:
Lucas De Marchi 2012-01-13 01:14:46 -02:00
parent 3bf8d4b056
commit 8b5ee61872
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,7 @@ const struct kmod_list *kmod_get_options(const struct kmod_ctx *ctx) __must_chec
const struct kmod_list *kmod_get_install_commands(const struct kmod_ctx *ctx) __must_check __attribute__((nonnull(1)));
const struct kmod_list *kmod_get_remove_commands(const struct kmod_ctx *ctx) __must_check __attribute__((nonnull(1)));
const struct kmod_list *kmod_get_softdeps(const struct kmod_ctx *ctx) __must_check __attribute__((nonnull(1)));
const struct kmod_list *kmod_get_aliases(const struct kmod_ctx *ctx) __must_check __attribute__((nonnull(1)));
/* libkmod-config.c */

View File

@ -768,3 +768,8 @@ const struct kmod_list *kmod_get_softdeps(const struct kmod_ctx *ctx)
{
return ctx->config->softdeps;
}
const struct kmod_list *kmod_get_aliases(const struct kmod_ctx *ctx)
{
return ctx->config->aliases;
}