File: gnm-py-interpreter.h

package info (click to toggle)
gnumeric 1.4.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 71,576 kB
  • ctags: 28,555
  • sloc: ansic: 282,333; xml: 45,788; sh: 8,479; makefile: 3,119; yacc: 1,129; lisp: 200; perl: 173; python: 86
file content (26 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef PLUGIN_GNM_PY_INTERPRETER_H
#define PLUGIN_GNM_PY_INTERPRETER_H

#include <glib.h>
#include <gnumeric.h>
#include "python-loader.h"

#define GNM_PY_INTERPRETER_TYPE     (gnm_py_interpreter_get_type ())
#define GNM_PY_INTERPRETER(o)       (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_PY_INTERPRETER_TYPE, GnmPyInterpreter))
#define IS_GNM_PY_INTERPRETER(o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_PY_INTERPRETER_TYPE))

GType gnm_py_interpreter_get_type (void);
typedef struct _GnmPyInterpreter GnmPyInterpreter;

GnmPyInterpreter *gnm_py_interpreter_new	(GnmPlugin *plugin);
void              gnm_py_interpreter_destroy	(GnmPyInterpreter *interpreter,
						 GnmPyInterpreter *new_interpreter);
void              gnm_py_interpreter_switch_to	(GnmPyInterpreter *interpreter);
void              gnm_py_interpreter_run_string (GnmPyInterpreter *interpreter,
                                                 char const *str,
						 char **opt_stdout, char **opt_stderr);
const char       *gnm_py_interpreter_get_name	(GnmPyInterpreter *interpreter);
GnmPlugin        *gnm_py_interpreter_get_plugin	(GnmPyInterpreter *interpreter);
int               gnm_py_interpreter_compare	(gconstpointer a, gconstpointer b);

#endif /* PLUGIN_GNM_PY_INTERPRETER_H */