libgimp: add gimp_get_plug_in() which returns the GimpPlugIn singleton
This commit is contained in:
parent
5f92ced1f3
commit
992f4b0e8a
3 changed files with 29 additions and 2 deletions
|
|
@ -785,6 +785,22 @@ gimp_main_internal (GType plug_in_type,
|
|||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_get_plug_in:
|
||||
*
|
||||
* This function returns the plug-in's #GimpPlugIn instance, which can
|
||||
* exist exactly once per running plug-in program.
|
||||
*
|
||||
* Returns: The plug-in's #GimpPlugIn singleton, or %NULL.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
GimpPlugIn *
|
||||
gimp_get_plug_in (void)
|
||||
{
|
||||
return PLUG_IN;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_quit:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -283,6 +283,7 @@ EXPORTS
|
|||
gimp_get_parasite_list
|
||||
gimp_get_pdb_error
|
||||
gimp_get_pdb_status
|
||||
gimp_get_plug_in
|
||||
gimp_get_progname
|
||||
gimp_getpid
|
||||
gimp_gimprc_query
|
||||
|
|
@ -621,6 +622,8 @@ EXPORTS
|
|||
gimp_plug_in_add_menu_branch
|
||||
gimp_plug_in_add_temp_procedure
|
||||
gimp_plug_in_create_procedure
|
||||
gimp_plug_in_extension_enable
|
||||
gimp_plug_in_extension_process
|
||||
gimp_plug_in_get_temp_procedure
|
||||
gimp_plug_in_get_temp_procedures
|
||||
gimp_plug_in_get_type
|
||||
|
|
@ -648,8 +651,9 @@ EXPORTS
|
|||
gimp_procedure_add_argument
|
||||
gimp_procedure_add_menu_path
|
||||
gimp_procedure_add_return_value
|
||||
gimp_procedure_extension_ready
|
||||
gimp_procedure_get_arguments
|
||||
gimp_procedure_get_author
|
||||
gimp_procedure_get_authors
|
||||
gimp_procedure_get_blurb
|
||||
gimp_procedure_get_copyright
|
||||
gimp_procedure_get_date
|
||||
|
|
@ -668,8 +672,11 @@ EXPORTS
|
|||
gimp_procedure_new_arguments
|
||||
gimp_procedure_new_return_values
|
||||
gimp_procedure_run
|
||||
gimp_procedure_set_attribution
|
||||
gimp_procedure_set_documentation
|
||||
gimp_procedure_set_icon
|
||||
gimp_procedure_set_strings
|
||||
gimp_procedure_set_image_types
|
||||
gimp_procedure_set_menu_label
|
||||
gimp_progress_cancel
|
||||
gimp_progress_end
|
||||
gimp_progress_get_window_handle
|
||||
|
|
|
|||
|
|
@ -144,6 +144,10 @@ gint gimp_main (GType plug_in_type,
|
|||
gint argc,
|
||||
gchar *argv[]);
|
||||
|
||||
/* Return the GimpPlugIn singleton of this plug-in process
|
||||
*/
|
||||
GimpPlugIn * gimp_get_plug_in (void);
|
||||
|
||||
/* Forcefully causes the gimp library to exit and
|
||||
* close down its connection to main gimp application.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue