summaryrefslogtreecommitdiff
path: root/libkmod/libkmod.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2011-12-10 20:47:01 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2011-12-11 20:58:21 -0200
commitbd3f5535268836aa697f84fa6946e4b0fc22df0b (patch)
treed4a8185ed32d79a17170c91d992e07d1a7bb16b0 /libkmod/libkmod.h
parentb6a534f72c66b489a6dbc71468db9eb609c3c8bb (diff)
downloadkmod-bd3f5535268836aa697f84fa6946e4b0fc22df0b.tar.gz
kmod-bd3f5535268836aa697f84fa6946e4b0fc22df0b.tar.bz2
kmod-bd3f5535268836aa697f84fa6946e4b0fc22df0b.zip
export module's options and commands.
This will be required to implement modprobe later. The implementation follows "man modprobe.conf" and allows options to be specified for alias as well, thus the need for kmod_resolve_alias_options(). Example mod-a.conf: options mod-a a=1 b=2 options mod-a c=3 alias mymod-a mod-a options mymod-a d=4 Results in: options mod-a a=1 b=2 c=3 options mymod-a a=1 b=2 c=3 d=4 Install commands are being concatenated with ";", but manpage is not clean about this behavior.
Diffstat (limited to 'libkmod/libkmod.h')
-rw-r--r--libkmod/libkmod.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h
index 4bff2a3..a7fc776 100644
--- a/libkmod/libkmod.h
+++ b/libkmod/libkmod.h
@@ -127,6 +127,12 @@ void kmod_module_section_free_list(struct kmod_list *list);
long kmod_module_get_size(const struct kmod_module *mod);
+const char *kmod_module_get_options(const struct kmod_module *mod);
+const char *kmod_module_get_install_commands(const struct kmod_module *mod);
+const char *kmod_module_get_remove_commands(const struct kmod_module *mod);
+
+int kmod_resolve_alias_options(struct kmod_ctx *ctx, const char *alias, char **options);
+
#ifdef __cplusplus
} /* extern "C" */
#endif