Creates a new batch interpreter procedure named name which will call run_func when invoked.
See Procedure for information about proc_type.
BatchProcedure is a Procedure subclass that makes it easier to write batch interpreter procedures.
It automatically adds the standard
arguments of a batch procedure. It is possible to add additional arguments.
When invoked via run, it unpacks these standard arguments and calls
run_func which is a BatchFunc. The "args"
ValueArray of GimpRunSaveFunc only contains additionally added arguments.
| plug_in |
a PlugIn. |
| name |
the new procedure's name. |
| interpreter_name |
the public-facing name, e.g. "Python 3". |
| proc_type |
the new procedure's PDBProcType. |
| run_func |
the run function for the new procedure. |
| run_data |
user data passed to |
| run_data_destroy |
free function for |
|
a new Procedure. |