1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * gimppluginprocframe.h 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __GIMP_PLUG_IN_PROC_FRAME_H__ 21 #define __GIMP_PLUG_IN_PROC_FRAME_H__ 22 23 24 struct _GimpPlugInProcFrame 25 { 26 gint ref_count; 27 28 GimpContext *main_context; 29 GList *context_stack; 30 31 GimpProcedure *procedure; 32 GMainLoop *main_loop; 33 34 GimpValueArray *return_vals; 35 36 GimpProgress *progress; 37 gboolean progress_created; 38 gulong progress_cancel_id; 39 40 GimpPDBErrorHandler error_handler; 41 42 /* lists of things to clean up on dispose */ 43 GList *image_cleanups; 44 GList *item_cleanups; 45 }; 46 47 48 GimpPlugInProcFrame * gimp_plug_in_proc_frame_new (GimpContext *context, 49 GimpProgress *progress, 50 GimpPlugInProcedure *procedure); 51 void gimp_plug_in_proc_frame_init (GimpPlugInProcFrame *proc_frame, 52 GimpContext *context, 53 GimpProgress *progress, 54 GimpPlugInProcedure *procedure); 55 56 void gimp_plug_in_proc_frame_dispose (GimpPlugInProcFrame *proc_frame, 57 GimpPlugIn *plug_in); 58 59 GimpPlugInProcFrame * gimp_plug_in_proc_frame_ref (GimpPlugInProcFrame *proc_frame); 60 void gimp_plug_in_proc_frame_unref (GimpPlugInProcFrame *proc_frame, 61 GimpPlugIn *plug_in); 62 63 GimpValueArray * gimp_plug_in_proc_frame_get_return_values 64 (GimpPlugInProcFrame *proc_frame); 65 66 67 #endif /* __GIMP_PLUG_IN_PROC_FRAME_H__ */ 68