diff options
Diffstat (limited to 'src/prog.h')
-rw-r--r-- | src/prog.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -51,7 +51,8 @@ struct prog struct { struct component *comp; - int wait; + int wait :1; + int active :1; int socket; struct prog *redir[2]; /* Pointers to redirectors */ time_t timestamp; /* Time of last startup */ @@ -82,7 +83,7 @@ struct prog #define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT) #define IS_ACTIVE_COMPONENT(prog) \ - (IS_COMPONENT(prog) && !((prog)->v.p.comp->flags & CF_DISABLED)) + (IS_COMPONENT(prog) && (prog)->v.p.active) struct prog *progman_locate (const char *name); int progman_foreach (int (*filter) (struct prog *, void *data), void *data); |