Skip to content

Commit

Permalink
Fix pybinding build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Yershov authored and bykoianko committed Mar 9, 2017
1 parent 5acb64d commit 2b222f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tracking/pytracking/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BOOST_PYTHON_MODULE(pytracking)
.def_readwrite("lon", &ms::LatLon::lon);

class_<coding::TrafficGPSEncoder::DataPoint>("DataPoint")
.def(init<uint64_t, ms::LatLon const &>())
.def(init<uint64_t, ms::LatLon const &, uint8_t>())
.def_readwrite("timestamp", &coding::TrafficGPSEncoder::DataPoint::m_timestamp)
.def_readwrite("coords", &coding::TrafficGPSEncoder::DataPoint::m_latLon)
.def_readwrite("traffic", &coding::TrafficGPSEncoder::DataPoint::m_traffic);
Expand All @@ -39,9 +39,11 @@ BOOST_PYTHON_MODULE(pytracking)
.value("CurrentAuth", Protocol::PacketType::CurrentAuth)
.value("CurrentData", Protocol::PacketType::CurrentData);

vector<uint8_t> (*CreateDataPacket1)(Protocol::DataElementsCirc const &) =
vector<uint8_t> (*CreateDataPacket1)(Protocol::DataElementsCirc const &,
tracking::Protocol::PacketType) =
&Protocol::CreateDataPacket;
vector<uint8_t> (*CreateDataPacket2)(Protocol::DataElementsVec const &) =
vector<uint8_t> (*CreateDataPacket2)(Protocol::DataElementsVec const &,
tracking::Protocol::PacketType) =
&Protocol::CreateDataPacket;

class_<Protocol>("Protocol")
Expand Down

0 comments on commit 2b222f1

Please sign in to comment.