12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef __LIBDNS_PYTHON_COMMON_H
- #define __LIBDNS_PYTHON_COMMON_H 1
- #include <Python.h>
- #include <stdexcept>
- #include <string>
- #include <util/python/pycppwrapper_util.h>
- namespace isc {
- namespace dns {
- namespace python {
- extern PyObject* po_IscException;
- extern PyObject* po_InvalidParameter;
- extern PyObject* po_DNSMessageBADVERS;
- int readDataFromSequence(uint8_t *data, size_t len, PyObject* sequence);
- int addClassVariable(PyTypeObject& c, const char* name, PyObject* obj);
- }
- }
- }
- #endif
|