home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / modutils / depmod / conf_file.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-06  |  2.1 KB  |  73 lines

  1. /* Copyright 1997 Free Software Foundation, Inc.
  2.    Contributed by Marcin Dalecki <dalecki@sub994.sub.uni-goettingen.de>
  3.  
  4.    This file is part of the Linux modutils.
  5.  
  6.    This program is free software; you can redistribute it and/or modify it
  7.    under the terms of the GNU General Public License as published by the
  8.    Free Software Foundation; either version 2 of the License, or (at your
  9.    option) any later version.
  10.  
  11.    This program is distributed in the hope that it will be useful, but
  12.    WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.    General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software Foundation,
  18.    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. #ifndef CONFIG_H
  21. #define CONFIG_H
  22.  
  23. #ident "$Id: conf_file.h,v 1.1.1.1 1998/01/06 20:51:07 ewt Exp $"
  24.  
  25. #include "version.h"
  26. #define ETC_CONF_MODULES    "/etc/conf.modules"
  27. #define SHELL_WILD "\"\'\140$*?[]{}|\\"
  28.  
  29. enum command
  30.   {
  31.     PRE_INSTALL, POST_INSTALL, PRE_REMOVE, POST_REMOVE,
  32.     INSTALL, REMOVE
  33.   };
  34.  
  35. /*
  36.  * This struct is used for reporting path lists of matching files.
  37.  */
  38.  
  39. struct mod_path
  40.   {
  41.     struct mod_path *next;
  42.     char *path;
  43.   };
  44.  
  45. /*
  46.  * This is the  list of additional options supplied in /etc/modules.conf
  47.  */
  48. extern struct mod_option
  49.   {
  50.     int may_unload;
  51.     struct mod_option *next;
  52.     char *module;        /* the module this options will be appended */
  53.     char *args;            /* the options to pass to insmod when loading this module */
  54.   }
  55.  *mod_options;
  56.  
  57. /*
  58.  * Options for insmod found in the configuration file.
  59.  */
  60. extern char *insmod_opts;
  61.  
  62. /*
  63.  * The actually active full path name of the dependency file.
  64.  */
  65. extern char *depfile;
  66.  
  67. extern int read_config_file (char *);
  68. extern struct mod_path *find_matching_mods (const char *match, const char *type, int many);
  69. extern void print_active_config (void);
  70. extern char *find_assoc_cmd (enum command when, char *mod);
  71. extern struct mod_path *locate_mod_obj (char *match, char *type);
  72. #endif
  73.