tsigkey_python.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. #ifndef __PYTHON_TSIGKEY_H
  15. #define __PYTHON_TSIGKEY_H 1
  16. #include <Python.h>
  17. namespace isc {
  18. namespace dns {
  19. class TSIGKey;
  20. class TSIGKeyRing;
  21. namespace python {
  22. // The s_* Class simply covers one instantiation of the object
  23. class s_TSIGKey : public PyObject {
  24. public:
  25. s_TSIGKey();
  26. TSIGKey* cppobj;
  27. };
  28. class s_TSIGKeyRing : public PyObject {
  29. public:
  30. s_TSIGKeyRing();
  31. TSIGKeyRing* cppobj;
  32. };
  33. extern PyTypeObject tsigkey_type;
  34. extern PyTypeObject tsigkeyring_type;
  35. bool initModulePart_TSIGKey(PyObject* mod);
  36. bool initModulePart_TSIGKeyRing(PyObject* mod);
  37. } // namespace python
  38. } // namespace dns
  39. } // namespace isc
  40. #endif // __PYTHON_TSIGKEY_H
  41. // Local Variables:
  42. // mode: c++
  43. // End: