diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-11-16 18:47:53 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-11-16 18:47:53 -1000 |
commit | 573aca728ffe5bd45ddc10763512c81d9c0275c8 (patch) | |
tree | 5dc076df77afc7d5a7fa0aff929f409a460a9870 /loader/modules.h | |
parent | 01c22ad6ff057a9474da7fb8ac443fea4d04440a (diff) | |
download | anaconda-573aca728ffe5bd45ddc10763512c81d9c0275c8.tar.gz anaconda-573aca728ffe5bd45ddc10763512c81d9c0275c8.tar.xz anaconda-573aca728ffe5bd45ddc10763512c81d9c0275c8.zip |
Use glib data structures in loader's module handling code.
Use glib's data structures and string functions in modules.c since we
already have glib. Add in some safety checks as well.
Diffstat (limited to 'loader/modules.h')
-rw-r--r-- | loader/modules.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/loader/modules.h b/loader/modules.h index 6c0d8adcd..88fa25fc7 100644 --- a/loader/modules.h +++ b/loader/modules.h @@ -1,7 +1,7 @@ /* * modules.h * - * Copyright (C) 2007 Red Hat, Inc. All rights reserved. + * Copyright (C) 2007, 2009 Red Hat, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,16 +15,29 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Author(s): David Cantrell <dcantrell@redhat.com> */ #ifndef H_MODULES #define H_MODULES +#include <glib.h> +#include "loader.h" #include "moduleinfo.h" -void mlInitModuleConfig(); -int mlLoadModule(const char * module, char ** args); -int mlLoadModuleSet(const char * modNames); -void mlAddBlacklist(char *module); -void mlRemoveBlacklist(char *module); +#define MODULES_CONF "/etc/modprobe.d/anaconda.conf" + +typedef struct _module_t { + gchar *name; + GSList *options; +} module_t; + +gboolean mlInitModuleConfig(void); +gboolean mlLoadModule(const gchar *, gchar **); +gboolean mlLoadModuleSet(const gchar *); +gboolean mlAddBlacklist(gchar *); +gboolean mlRemoveBlacklist(gchar *); +void loadKickstartModule(struct loaderData_s *, int, char **); + #endif |