[contrib][haskell] PyFAI.Detector
[hkl.git] / hkl / hkl-detector-factory.c
blob52b3700ce4ae955981fcb290f967b3d494753e89
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-2017 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 <stddef.h> // for NULL
23 #include "hkl-detector-private.h" // for hkl_detector_new
24 #include "hkl.h" // for HklDetector, etc
26 /**
27 * hkl_detector_factory_new:
28 * @type:
30 * Detector factory
32 * Returns:
33 **/
34 HklDetector *hkl_detector_factory_new(HklDetectorType type)
36 HklDetector *detector = NULL;
38 switch(type) {
39 case HKL_DETECTOR_TYPE_0D:
40 detector = hkl_detector_new();
41 break;
44 return detector;