aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-26 21:57:44 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-10-26 21:57:44 +0200
commit7e662d44f8c64be0533d2a4548b7ecdda45a2019 (patch)
tree0ae69f1a7c445257b5fe0b651ad45e3049736aa8 /src/pies.h
parent4769e173a6630c464c633198c3ac97da3500905a (diff)
downloadpies-7e662d44f8c64be0533d2a4548b7ecdda45a2019.tar.gz
pies-7e662d44f8c64be0533d2a4548b7ecdda45a2019.tar.bz2
Rearrange structures prog and component.
* config_array_to_argv (config_array_to_argv): Take four arguments. Return argc in the memory location pointed to by the 4th one (unless NULL). All callers updated. (_cb_command): Fill both comp->argv and comp->argc. (component_keywords): Pass pointer to struct component to _cb_command. * src/pies.h (struct component): New member `argc'. * src/progman.c (struct prog): Move idx to v.p; change its type to unsigned. Remove v.p.argc. All uses updated. (numprog): Rename to numcomp; change type to unsigned. (prog_lookup_by_idx): Check only elements of type TYPE_COMPONENT.
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pies.h b/src/pies.h
index 014bd81..08a9c4f 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -141,6 +141,7 @@ struct component
enum pies_comp_mode mode;
char *tag; /* Entry tag (for diagnostics purposes) */
char *program; /* Program name */
+ size_t argc; /* Number of command line arguments */
char **argv; /* Program command line */
char **env; /* Program environment */
char *dir; /* Working directory */

Return to:

Send suggestions and report system problems to the System administrator.