diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-23 14:13:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-23 15:53:51 +0200 |
commit | 8a7cf4b45431bbead62b2ae390f49caedf702fe5 (patch) | |
tree | 8fa64b9d0d390bc7828d309b8661c1ce14e9b366 /src/pies.h | |
parent | ea7d455926a675ad5d605450fc2ae61da14b79f3 (diff) | |
download | pies-8a7cf4b45431bbead62b2ae390f49caedf702fe5.tar.gz pies-8a7cf4b45431bbead62b2ae390f49caedf702fe5.tar.bz2 |
Minor change.
* src/pies.h (CF_DISABLED)
(CF_PRECIOUS): New defines.
(struct component): Replace precious and
disabled by a bitmask member `flags'. All uses updated.
* src/progman.c: Reflect the above change.
* src/pies.c (_cb_bitmask): New function.
(_cb_precious, _cb_disabled): New callbacks.
(component_keywords): Change handling of precious and disabled.
* bootstrap.conf: Add Emacs mode marker
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -136,6 +136,9 @@ enum pies_comp_mode pies_comp_pass_fd }; +#define CF_DISABLED 0x01 /* The componenet is disabled */ +#define CF_PRECIOUS 0x02 /* The component is precious (cannot be disabled) */ + struct component { enum pies_comp_mode mode; @@ -147,9 +150,7 @@ struct component char *dir; /* Working directory */ gl_list_t prereq; /* Prerequisites */ gl_list_t depend; /* Dependency targets */ - /* FIXME: disabled and precious can be encoded as bits in mode */ - int disabled; /* The componenet is disabled */ - int precious; /* The component is precious (cannot be disabled) */ + int flags; /* CF_ bitmask */ char *rmfile; /* Try to remove this file before starting */ struct pies_privs privs; /* UID/GIDS+groups to run under */ mode_t umask; /* Umask to install before starting */ |