upgrading copyright year from 2015 to 2016
[hkl.git] / hkl / hkl-binding-private.h
blobaaf5b3b934694dfcea60d7575bbf99ffffc779ba
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-2016 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 double *hkl_engine_parameters_values_get_binding(const HklEngine *self, guint *len,
68 HklUnitEnum unit_type) HKL_ARG_NONNULL(1, 2);
70 HKLAPI const char **hkl_engine_axis_names_get_binding(const HklEngine *self,
71 HklEngineAxisNamesGet mode,
72 size_t *length) HKL_ARG_NONNULL(1, 3);
74 HKLAPI double *hkl_engine_pseudo_axis_values_get_binding(const HklEngine *self,
75 guint *len, HklUnitEnum unit_type);
77 /***************************/
78 /* HklPSeudoAxisEngineList */
79 /***************************/
81 HKLAPI GSList* hkl_engine_list_engines_get_as_gslist(HklEngineList *self);
83 /*************/
84 /* HklSample */
85 /*************/
87 HKLAPI GSList *hkl_sample_reflections_get(const HklSample *self);
89 HKLAPI HklSampleReflection *hkl_sample_add_reflection_binding(HklSample *self,
90 const HklGeometry *geometry,
91 const HklDetector *detector,
92 double h, double k, double l,
93 GError **error);
95 G_END_DECLS
97 #endif /* __HKL_BINDING_PRIVATE_H__ */