FIX: update bambu source api

Change-Id: I1689733af6cd8778f017a732dd36ad91bff80ea8
(cherry picked from commit 40bc2c251e00d6d95289fdd9def11f9e1bd9202f)
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent 00284f52b8
commit 66c5d39e28
3 files changed
+81 -58

No files matched your search

+3 -2
View File
@@ -174,7 +174,7 @@ private:
void SendChangedEvent(wxEventType type, size_t index = (size_t)-1, std::string const &str = {}, long extra = 0);
static void DumpLog(Bambu_Session *session, int level, Bambu_Message const *msg);
static void DumpLog(void* context, int level, tchar const *msg);
private:
template<typename T> using Translator = std::function<int(json const &, T &, unsigned char const *)>;
@@ -265,8 +265,9 @@ private:
int m_task_flags = 0;
private:
struct Session : Bambu_Session
struct Session
{
Bambu_Tunnel tunnel = nullptr;
PrinterFileSystem * owner;
};
Session m_session;