From 35bc5b4431bdfeff79d72412c7de66143ba763a5 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Wed, 23 Nov 2016 14:28:19 +0100 Subject: [PATCH] adding namespace to init funcitons --- src/identity.cc | 2 +- src/pEpmodule.cc | 24 ++++++++++++------------ src/pEpmodule.hh | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/identity.cc b/src/identity.cc index 0b83ee8..88c4b28 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -1,4 +1,4 @@ -#include "Identity.hh" +#include "identity.hh" #include "pEpmodule.hh" #include "message_api.hh" #include diff --git a/src/pEpmodule.cc b/src/pEpmodule.cc index de7db9b..5e35e94 100644 --- a/src/pEpmodule.cc +++ b/src/pEpmodule.cc @@ -76,12 +76,12 @@ BOOST_PYTHON_MODULE(pEp) " lang ISO 639-1 language code for language being preferred\n" " on this communication channel\n" ) - .def(init()) - .def(init()) - .def(init()) - .def(init()) - .def(init()) - .def(init()) + .def(boost::python::init()) + .def(boost::python::init()) + .def(boost::python::init()) + .def(boost::python::init()) + .def(boost::python::init()) + .def(boost::python::init()) .def("__repr__", &Identity::_repr) .def("__str__", &Identity::_str, "string representation of this identity\n" @@ -128,9 +128,9 @@ BOOST_PYTHON_MODULE(pEp) " data bytes-like object\n" " mime_type MIME type for the data\n" " filename filename to store the data\n" , - init< object, char const*, char const* >(args("data", "mime_type", "filename"))) - .def(init()) - .def(init()) + boost::python::init< object, char const*, char const* >(args("data", "mime_type", "filename"))) + .def(boost::python::init()) + .def(boost::python::init()) .def("__repr__", &Message::Blob::_repr) .def("__len__", &Message::Blob::size, "size of Blob data in bytes") .def("decode", (string(Message::Blob::*)()) &Message::Blob::decode) @@ -165,9 +165,9 @@ BOOST_PYTHON_MODULE(pEp) "\n" " mime_text text in Multipurpose Internet Mail Extensions format\n" ) - .def(init()) - .def(init()) - .def(init()) + .def(boost::python::init()) + .def(boost::python::init()) + .def(boost::python::init()) .def("__str__", &Message::_str, "the string representation of a Message is it's MIME text" ) diff --git a/src/pEpmodule.hh b/src/pEpmodule.hh index 23083b6..3fc1030 100644 --- a/src/pEpmodule.hh +++ b/src/pEpmodule.hh @@ -1,8 +1,8 @@ #pragma once #include -#include "Identity.hh" -#include "Message.hh" +#include "identity.hh" +#include "message.hh" #include namespace pEp {