diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2011-05-13 19:13:51 +0200 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2011-05-13 19:13:51 +0200 |
commit | 4472e3c7cbfb5fd33ce575bd2666036d363b2ce2 (patch) | |
tree | f7871f0535be98151be23bc0bd7bfaf8998fac60 /src/lib/dns/python/tsigerror_python.cc | |
parent | [trac905] added more detailed documentation text, which was half automated (diff) | |
download | kea-4472e3c7cbfb5fd33ce575bd2666036d363b2ce2.tar.xz kea-4472e3c7cbfb5fd33ce575bd2666036d363b2ce2.zip |
[trac905] clarified in comments which calls to PyArg_ParseTuple()
in TSIGError_init correspond to which C++ constructors.
Diffstat (limited to 'src/lib/dns/python/tsigerror_python.cc')
-rw-r--r-- | src/lib/dns/python/tsigerror_python.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dns/python/tsigerror_python.cc b/src/lib/dns/python/tsigerror_python.cc index 2e822ad781..afabf7a6aa 100644 --- a/src/lib/dns/python/tsigerror_python.cc +++ b/src/lib/dns/python/tsigerror_python.cc @@ -92,6 +92,7 @@ PyMethodDef TSIGError_methods[] = { int TSIGError_init(s_TSIGError* self, PyObject* args) { try { + // Constructor from the code value long code = 0; if (PyArg_ParseTuple(args, "l", &code)) { if (code < 0 || code > 0xffff) { @@ -102,6 +103,7 @@ TSIGError_init(s_TSIGError* self, PyObject* args) { return (0); } + // Constructor from Rcode s_Rcode* py_rcode; if (PyArg_ParseTuple(args, "O!", &rcode_type, &py_rcode)) { self->cppobj = new TSIGError(*py_rcode->cppobj); |