[hkl] fix the test suite due to binoculars new projection signature.
[hkl.git] / hkl / hkl-types.c
blob2c18de9815c76bc85180dfb8c9879e83ce5b6772
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) 2011-2019, 2022 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 #include <glib-object.h>
23 #include "hkl-types.h"
24 #include "glib/gthread.h" // for g_once_init_enter, etc
25 #include "glibconfig.h" // for gsize
26 #include "hkl-detector-private.h" // for hkl_detector_new_copy
27 #include "hkl-geometry-private.h" // for hkl_geometry_list_free, etc
28 #include "hkl-matrix-private.h" // for hkl_matrix_dup
29 #include "hkl-pseudoaxis-private.h" // for hkl_engine_list_new_copy
30 #include "hkl-sample-private.h" // for hkl_sample_reflection_free, etc
31 #include "hkl-unit-private.h" // for hkl_unit_dup, hkl_unit_free
32 #include "hkl-vector-private.h" // for hkl_vector_dup, etc
34 static void *hkl_fake_ref(void *src) { return src; }
35 static void hkl_fake_unref(void *src) { return; }
37 G_DEFINE_BOXED_TYPE (HklDetector, hkl_detector, hkl_detector_new_copy, hkl_detector_free);
38 G_DEFINE_BOXED_TYPE (HklEngine, hkl_engine, hkl_fake_ref, hkl_fake_unref);
39 G_DEFINE_BOXED_TYPE (HklEngineList, hkl_engine_list, hkl_engine_list_new_copy, hkl_engine_list_free);
40 G_DEFINE_BOXED_TYPE (HklFactory, hkl_factory, hkl_fake_ref, hkl_fake_unref);
41 G_DEFINE_BOXED_TYPE (HklGeometry, hkl_geometry, hkl_geometry_new_copy, hkl_geometry_free);
42 G_DEFINE_BOXED_TYPE (HklGeometryList, hkl_geometry_list, hkl_geometry_list_new_copy, hkl_geometry_list_free);
43 G_DEFINE_BOXED_TYPE (HklGeometryListItem, hkl_geometry_list_item, hkl_geometry_list_item_new_copy, hkl_geometry_list_item_free);
44 G_DEFINE_BOXED_TYPE (HklLattice, hkl_lattice, hkl_lattice_new_copy, hkl_lattice_free);
45 G_DEFINE_BOXED_TYPE (HklMatrix, hkl_matrix, hkl_matrix_dup, hkl_matrix_free);
46 G_DEFINE_BOXED_TYPE (HklParameter, hkl_parameter, hkl_parameter_new_copy, hkl_parameter_free);
47 G_DEFINE_BOXED_TYPE (HklQuaternion, hkl_quaternion, hkl_quaternion_dup, hkl_quaternion_free);
48 G_DEFINE_BOXED_TYPE (HklSample, hkl_sample, hkl_sample_new_copy, hkl_sample_free);
49 G_DEFINE_BOXED_TYPE (HklSampleReflection, hkl_sample_reflection, hkl_fake_ref, hkl_fake_unref);
50 G_DEFINE_BOXED_TYPE (HklUnit, hkl_unit, hkl_unit_dup, hkl_unit_free);
51 G_DEFINE_BOXED_TYPE (HklVector, hkl_vector, hkl_vector_dup, hkl_vector_free);