# -*- coding: utf-8 -*- """ This file is part of **python-openzwave** project https://github.com/OpenZWave/python-openzwave. License : GPL(v3) **python-openzwave** 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. **python-openzwave** 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 python-openzwave. If not, see http://www.gnu.org/licenses. """ #stdlib uint32_t #ctypedef unsigned int uint32_t #stdlib uint64_t #ctypedef unsigned long uint64_t #stdlib int32_t #ctypedef signed int int32_t #stdlib int16_t #ctypedef signed short int16_t #stdlib uint8_t #ctypedef unsigned char uint8_t #stdlib int8_t #ctypedef signed char int8_t cdef extern from "Python.h": void PyEval_InitThreads() void Py_Initialize() cdef extern from *: ctypedef char* const_char_ptr "const char*" cdef extern from "" namespace "std": cdef cppclass string: string() string(char *) string (size_t n, char c) char * c_str() #cdef extern from "stdlib.h": # void* malloc(size_t size) # void free(void* ptr) #cdef extern from "" namespace "std": # void* new(size_t size) # void delete(void* ptr) # void* new[](size_t size) # void delete[](void* ptr)