Update version number
[gcalctool.git] / src / math-variables.h
blobade413422fb7dd6c34346d338efdac135fee4358
1 /*
2 * Copyright (C) 2008-2011 Robert Ancell
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation, either version 2 of the License, or (at your option) any later
7 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
8 * license.
9 */
11 #ifndef MATH_VARIABLES_H
12 #define MATH_VARIABLES_H
14 #include <glib-object.h>
15 #include "mp.h"
17 G_BEGIN_DECLS
19 #define MATH_VARIABLES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_equation_get_type(), MathVariables))
21 typedef struct MathVariablesPrivate MathVariablesPrivate;
23 typedef struct
25 GObject parent_instance;
26 MathVariablesPrivate *priv;
27 } MathVariables;
29 typedef struct
31 GObjectClass parent_class;
32 } MathVariablesClass;
34 GType math_variables_get_type(void);
36 MathVariables *math_variables_new(void);
38 gchar **math_variables_get_names(MathVariables *variables);
40 void math_variables_set(MathVariables *variables, const char *name, const MPNumber *value);
42 MPNumber *math_variables_get(MathVariables *variables, const char *name);
44 void math_variables_delete(MathVariables *variables, const char *name);
46 G_END_DECLS
48 #endif /* MATH_VARIABLES_H */