[tests] another memory leak
[hkl.git] / hkl / hkl-lattice-private.h
blob7c2e6a736bf45c69eb3726c0fe0f5e441be6619e
1 /* This file is part of the hkl library.
3 * The hkl library is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * The hkl library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with the hkl library. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright (C) 2003-2015 Synchrotron SOLEIL
17 * L'Orme des Merisiers Saint-Aubin
18 * BP 48 91192 GIF-sur-YVETTE CEDEX
20 * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22 #ifndef __HKL_LATTICE_PRIVATE_H__
23 #define __HKL_LATTICE_PRIVATE_H__
25 #include <stdio.h>
27 #include "hkl.h"
29 G_BEGIN_DECLS
31 struct _HklLattice
33 HklParameter *a;
34 HklParameter *b;
35 HklParameter *c;
36 HklParameter *alpha;
37 HklParameter *beta;
38 HklParameter *gamma;
39 HklParameter *volume;
42 #define HKL_LATTICE_ERROR hkl_lattice_error_quark ()
44 static GQuark hkl_lattice_error_quark (void)
46 return g_quark_from_static_string ("hkl-lattice-error-quark");
49 typedef enum {
50 HKL_LATTICE_CHECK_LATTICE, /* the lattice parameters are not valid */
51 } HklLatticeError;
53 extern void hkl_lattice_lattice_set(HklLattice *self, const HklLattice *lattice);
55 extern void hkl_lattice_randomize(HklLattice *self);
57 extern void hkl_lattice_fprintf(FILE *f, const HklLattice *self);
59 G_END_DECLS
61 #endif /* __HKL_LATTICE_PRIVATE_H__ */