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
11 #ifndef MATH_VARIABLES_H
12 #define MATH_VARIABLES_H
14 #include <glib-object.h>
19 #define MATH_VARIABLES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_equation_get_type(), MathVariables))
21 typedef struct MathVariablesPrivate MathVariablesPrivate
;
25 GObject parent_instance
;
26 MathVariablesPrivate
*priv
;
31 GObjectClass parent_class
;
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
);
48 #endif /* MATH_VARIABLES_H */