44#include < pybind11/operators.h>
55
66#include < NodeInfo.h>
7+ #include < Bitmap.h>
78
89namespace py = pybind11;
910using namespace BPrivate ;
1011using namespace BPrivate ::Storage;
1112using namespace BPrivate ::Storage::Mime;
1213
13- void define_NodeInfo (py::module_& m)
14+ PYBIND11_MODULE (NodeInfo, m)
1415{
1516py::class_<BNodeInfo>(m," BNodeInfo" )
1617.def (py::init ()," " )
@@ -19,15 +20,15 @@ py::class_<BNodeInfo>(m, "BNodeInfo")
1920.def (" InitCheck" , &BNodeInfo::InitCheck," " )
2021.def (" GetType" , &BNodeInfo::GetType," " ,py::arg (" type" ))
2122.def (" SetType" , &BNodeInfo::SetType," " ,py::arg (" type" ))
22- .def (" GetIcon" , py::overload_cast<BBitmap *, icon_size>(&BNodeInfo::GetIcon)," " ,py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
23+ .def (" GetIcon" , py::overload_cast<BBitmap *, icon_size>(&BNodeInfo::GetIcon, py::const_ )," " ,py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
2324.def (" SetIcon" , py::overload_cast<const BBitmap *, icon_size>(&BNodeInfo::SetIcon)," " ,py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
24- .def (" GetIcon" , py::overload_cast<unsigned char ,size_t *, type_code *>(&BNodeInfo::GetIcon)," " ,py::arg (" data" ),py::arg (" size" ),py::arg (" type" ))
25- .def (" SetIcon" , py::overload_cast<unsigned char ,size_t >(&BNodeInfo::SetIcon)," " ,py::arg (" data" ),py::arg (" size" ))
25+ // .def("GetIcon", py::overload_cast<unsigned char, size_t *, type_code *>(&BNodeInfo::GetIcon, py::const_ ), "", py::arg("data"), py::arg("size"), py::arg("type"))
26+ .def (" SetIcon" , py::overload_cast<const uint8* ,size_t >(&BNodeInfo::SetIcon)," " ,py::arg (" data" ),py::arg (" size" ))
2627.def (" GetPreferredApp" , &BNodeInfo::GetPreferredApp," " ,py::arg (" signature" ),py::arg (" verb" )=B_OPEN)
2728.def (" SetPreferredApp" , &BNodeInfo::SetPreferredApp," " ,py::arg (" signature" ),py::arg (" verb" )=B_OPEN)
2829.def (" GetAppHint" , &BNodeInfo::GetAppHint," " ,py::arg (" ref" ))
2930.def (" SetAppHint" , &BNodeInfo::SetAppHint," " ,py::arg (" ref" ))
30- .def (" GetTrackerIcon" , py::overload_cast<BBitmap *, icon_size>(&BNodeInfo::GetTrackerIcon)," " ,py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
31+ .def (" GetTrackerIcon" , py::overload_cast<BBitmap *, icon_size>(&BNodeInfo::GetTrackerIcon, py::const_ )," " ,py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
3132.def_static (" GetTrackerIcon" , py::overload_cast<const entry_ref *, BBitmap *, icon_size>(&BNodeInfo::GetTrackerIcon)," " ,py::arg (" ref" ),py::arg (" icon" ),py::arg (" which" )=B_LARGE_ICON)
3233;
3334