Index: main_act.c =================================================================== --- main_act.c (revision 17464) +++ main_act.c (revision 17465) @@ -57,7 +57,7 @@ static const char pcb_acth_PrintActions[] = "Print all actions available."; -fgw_error_t pcb_act_PrintActions(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintActions(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; pcb_print_actions(); @@ -70,7 +70,7 @@ static const char pcb_acth_DumpActions[] = "Dump all actions available."; -fgw_error_t pcb_act_DumpActions(int oargc, const char **oargv) +fgw_error_t pcb_act_DumpActions(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; pcb_dump_actions(); @@ -164,7 +164,7 @@ return 0; } -fgw_error_t pcb_act_PrintUsage(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintUsage(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; u(""); @@ -198,7 +198,7 @@ static const char pcb_acth_PrintVersion[] = "Print version."; -fgw_error_t pcb_act_PrintVersion(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintVersion(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; printf("pcb-rnd version %s rev %s\n", PCB_VERSION, PCB_REVISION); @@ -211,7 +211,7 @@ static const char pcb_acth_PrintCopyright[] = "Print copyright notice."; -fgw_error_t pcb_act_PrintCopyright(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintCopyright(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; printf("\n" @@ -255,7 +255,7 @@ printf("\"\n"); } -fgw_error_t pcb_act_PrintPaths(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintPaths(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; htsp_entry_t *e; @@ -285,7 +285,7 @@ } } -fgw_error_t pcb_act_PrintFiles(int oargc, const char **oargv) +fgw_error_t pcb_act_PrintFiles(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; htsp_entry_t *e; @@ -301,7 +301,7 @@ static const char pcb_acth_DumpPlugins[] = "Print plugins loaded in a format digestable by scripts."; -fgw_error_t pcb_act_DumpPlugins(int oargc, const char **oargv) +fgw_error_t pcb_act_DumpPlugins(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; pup_plugin_t *p; @@ -329,7 +329,7 @@ static const char pcb_acth_DumpPluginDirs[] = "Print plugins directories in a format digestable by scripts."; -fgw_error_t pcb_act_DumpPluginDirs(int oargc, const char **oargv) +fgw_error_t pcb_act_DumpPluginDirs(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; char **p; @@ -347,7 +347,7 @@ printf(" %lx %s %s\n", flg, fb->name, fb->help); } -fgw_error_t pcb_act_DumpObjFlags(int oargc, const char **oargv) +fgw_error_t pcb_act_DumpObjFlags(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; unsigned long ot, max = PCB_OBJ_CLASS_REAL + 1; @@ -366,7 +366,7 @@ static const char pcb_acts_System[] = "System(shell_cmd)"; static const char pcb_acth_System[] = "Run shell command"; -fgw_error_t pcb_act_System(int oargc, const char **oargv) +fgw_error_t pcb_act_System(fgw_arg_t *ores, int oargc, fgw_arg_t *oargv) { PCB_OLD_ACT_BEGIN; char tmp[128];