Commit 90e75e76 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange Committed by bliss administrator

Add SIP interface

parent 6b73d1cf
//###########################################################################
// This file is part of LImA, a Library for Image Acquisition
//
// Copyright (C) : 2009-2011
// European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//###########################################################################
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_ARRAY_UNIQUE_SYMBOL _LimaNumPy
#include "numpy/arrayobject.h"
extern "C"
{
#if PY_VERSION_HEX >= 0x03000000
int lima_import_array()
{
import_array();
}
#else
void lima_import_array()
{
import_array();
}
#endif
}
target = limaeiger
sources = siplimaeigercmodule.cpp siplimaeigerEigerInterface.cpp siplimaeigerEigerCamera.cpp siplimaeigerEiger.cpp
headers = sipAPIlimaeiger.h
%Module(name=limaeiger,version=0)
%ModuleCode
extern "C" {
#if PY_VERSION_HEX >= 0x03000000
int lima_import_array();
#else
void lima_import_array();
#endif
}
%End
%ModuleHeaderCode
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include "numpy/numpyconfig.h"
#if (defined(NPY_API_VERSION) && NPY_API_VERSION >= 0x00000004 && PY_VERSION_HEX >= 0x03000000)
#include "numpy/npy_3kcompat.h"
#endif
%End
%UnitCode
#include <lima_repr_attr.cpp>
%End
%PostInitialisationCode
lima_import_array();
%End
%Import limacore.sip
%Include EigerCamera.sip
%Include EigerInterface.sip
%Include limaeiger.sip
This diff is collapsed.
/*
* Interface wrapper code.
*
* Generated by SIP 4.18.1
*/
#line 23 "/users/blissadm/Git/Lima/camera/eiger/sip/limaeiger.sip"
#include <lima_repr_attr.cpp>
#line 9 "/users/blissadm/Git/Lima/camera/eiger/sip/siplimaeigerEiger.cpp"
#include "sipAPIlimaeiger.h"
sipClassTypeDef sipTypeDef_limaeiger_Eiger = {
{
-1,
0,
0,
SIP_TYPE_NAMESPACE,
sipNameNr_Eiger,
{0}
},
{
sipNameNr_Eiger,
{0, 0, 1},
0, 0,
0, 0,
0, 0,
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
},
0,
-1,
-1,
0,
0,
0,
0,
0,
#if PY_MAJOR_VERSION >= 3
0,
0,
#else
0,
0,
0,
0,
#endif
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment