Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
c6f04a39
Commit
c6f04a39
authored
Jan 04, 2013
by
JINMEI Tatuya
Browse files
[2438] corrected pytype var name (to match the one defined in .h)
parent
202d9dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/python/rrset_collection_python.cc
View file @
c6f04a39
...
...
@@ -352,7 +352,7 @@ PyMethodDef RRsetCollection_methods[] = {
// This defines the complete type for reflection in python and
// parsing of PyObject* to s_RRsetCollection
// Most of the functions are not actually implemented and NULL here.
PyTypeObject
rrsetcollection_type
=
{
PyTypeObject
rrset
_
collection_type
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
"dns.RRsetCollection"
,
sizeof
(
s_RRsetCollection
),
// tp_basicsize
...
...
@@ -408,15 +408,15 @@ initModulePart_RRsetCollection(PyObject* mod) {
// We initialize the static description object with PyType_Ready(),
// then add it to the module. This is not just a check! (leaving
// this out results in segmentation faults)
if
(
PyType_Ready
(
&
rrsetcollection_type
)
<
0
)
{
if
(
PyType_Ready
(
&
rrset
_
collection_type
)
<
0
)
{
return
(
false
);
}
void
*
p
=
&
rrsetcollection_type
;
void
*
p
=
&
rrset
_
collection_type
;
if
(
PyModule_AddObject
(
mod
,
"RRsetCollection"
,
static_cast
<
PyObject
*>
(
p
))
<
0
)
{
return
(
false
);
}
Py_INCREF
(
&
rrsetcollection_type
);
Py_INCREF
(
&
rrset
_
collection_type
);
return
(
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment