main


Description:


[ Version ( since = "3.0" ) ]
public int main (Type plug_in_type, string[] argv)

The main plug-in function that must be called with the plug-in's [class@Gimp.

PlugIn] subclass Type and the 'argc' and 'argv' that are passed to the platform's `main()`.

For instance, in Python, you will want to end your plug-in with this call:

```py Gimp.main(MyPlugIn.__gtype__, sys.argv) ```

For C plug-ins, use instead the [func@Gimp.MAIN] macro

Parameters:

plug_in_type

the type of the PlugIn subclass of the plug-in

argv

the arguments

argc

the number of arguments

Returns:

an exit status as defined by the C library, on success `EXIT_SUCCESS`.


Namespace: Gimp
Package: gimp-3.0