1 #ifndef PLUGIN_GNM_PYTHON_H 2 #define PLUGIN_GNM_PYTHON_H 3 4 #include <glib.h> 5 #include <gnumeric.h> 6 #include "gnm-py-interpreter.h" 7 8 #define GNM_PYTHON_TYPE (gnm_python_get_type ()) 9 #define GNM_PYTHON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_PYTHON_TYPE, GnmPython)) 10 #define GNM_IS_PYTHON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_PYTHON_TYPE)) 11 12 GType gnm_python_get_type (void); 13 typedef struct _GnmPython GnmPython; 14 15 GnmPython *gnm_python_object_get (GOErrorInfo **err); 16 GnmPyInterpreter *gnm_python_new_interpreter (GnmPython *gpy, GOPlugin *plugin); 17 void gnm_python_destroy_interpreter (GnmPython *gpy, GnmPyInterpreter *interpreter); 18 GnmPyInterpreter *gnm_python_get_current_interpreter (GnmPython *gpy); 19 GnmPyInterpreter *gnm_python_get_default_interpreter (GnmPython *gpy); 20 GSList *gnm_python_get_interpreters (GnmPython *gpy); 21 void gnm_python_clear_error_if_needed (GnmPython *gpy); 22 23 void gnm_py_interpreter_register_type (GTypeModule *plugin); 24 void gnm_python_register_type (GTypeModule *plugin); 25 void gnm_py_command_line_register_type (GTypeModule *plugin); 26 void gnm_py_interpreter_selector_register_type (GTypeModule *plugin); 27 void gnm_python_plugin_loader_register_type (GTypeModule *plugin); 28 29 #endif /* PLUGIN_GNM_PYTHON_H */ 30