[contrib] use (*~~) and (/~~) instead of from/toAngles
[hkl.git] / hkl / hkl-binding-private.h
bloba8895cd8a8a8237821f8c79962aea3806e0c37e4
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) 2012-2014 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_BINDING_PRIVATE_H__
23 #define __HKL_BINDING_PRIVATE_H__
25 #include <glib.h> // for GError, GHashTable, etc
26 #include <sys/types.h> // for uint
27 #include "hkl.h" // for HKLAPI, HklGeometry, etc
29 G_BEGIN_DECLS
31 /**************/
32 /* HklFactory */
33 /**************/
35 HKLAPI GHashTable *hkl_factories(void);
37 /***************/
38 /* HklGeometry */
39 /***************/
41 HKLAPI const char **hkl_geometry_axis_names_get_binding(const HklGeometry *self,
42 size_t *length) HKL_ARG_NONNULL(1, 2);
45 HKLAPI double* hkl_geometry_axis_values_get_binding(const HklGeometry *self, unsigned int *len,
46 HklUnitEnum unit_type) HKL_ARG_NONNULL(1, 2);
48 /*******************/
49 /* HklGeometryList */
50 /*******************/
52 HKLAPI GSList* hkl_geometry_list_items(HklGeometryList *self) HKL_ARG_NONNULL(1);
54 /*************/
55 /* HklEngine */
56 /*************/
58 HKLAPI const char **hkl_engine_modes_names_get_binding(const HklEngine *self,
59 size_t *length) HKL_ARG_NONNULL(1, 2);
61 HKLAPI const char **hkl_engine_pseudo_axis_names_get_binding(HklEngine *self,
62 size_t *length) HKL_ARG_NONNULL(1, 2);
64 HKLAPI const char **hkl_engine_parameters_names_get_binding(const HklEngine *self,
65 size_t *length) HKL_ARG_NONNULL(1, 2);
67 HKLAPI const char **hkl_engine_axis_names_get_binding(const HklEngine *self,
68 HklEngineAxisNamesGet mode,
69 size_t *length) HKL_ARG_NONNULL(1, 3);
71 HKLAPI double *hkl_engine_pseudo_axis_values_get_binding(const HklEngine *self,
72 guint *len, HklUnitEnum unit_type);
74 /***************************/
75 /* HklPSeudoAxisEngineList */
76 /***************************/
78 HKLAPI GSList* hkl_engine_list_engines_get_as_gslist(HklEngineList *self);
80 /*************/
81 /* HklSample */
82 /*************/
84 HKLAPI GSList *hkl_sample_reflections_get(const HklSample *self);
86 HKLAPI HklSampleReflection *hkl_sample_add_reflection_binding(HklSample *self,
87 const HklGeometry *geometry,
88 const HklDetector *detector,
89 double h, double k, double l,
90 GError **error);
92 G_END_DECLS
94 #endif /* __HKL_BINDING_PRIVATE_H__ */