Bind the 02.08.01.52 plugin's new ABI symbols

Add the 11 functions the newer plugin exports (HMS snapshot, GoLive camera
URL, consent report, cloud filament-spool CRUD, AMS-filament sync, login-state
and studio-info hooks) plus their four parameter structs. Everything resolves
to null on older plugins and no caller invokes them yet, so this is inert ABI
surface for later features.
This commit is contained in:
SoftFever
2026-07-16 00:48:56 +08:00
parent bf4fb64c8a
commit aa44d57eac
3 changed files with 103 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ typedef std::function<void(std::string topic)> GetSubscribeFailureFn;
typedef std::function<void(int status, int code, std::string msg)> OnUpdateStatusFn;
typedef std::function<bool()> WasCancelledFn;
typedef std::function<bool(int status, std::string job_info)> OnWaitFn;
typedef std::function<void(int online_login, bool login)> OnUserLoginFn;
// local callbacks
typedef std::function<void(std::string dev_info_json_str)> OnMsgArrivedFn;
// queue call to main thread
@@ -291,6 +292,48 @@ struct TaskQueryParams
int limit = 20;
};
struct FilamentQueryParams
{
std::string category;
std::string status;
std::string spool_id;
std::string rfid;
int offset = 0;
int limit = 20;
};
struct FilamentDeleteParams
{
std::vector<std::string> ids;
std::vector<std::string> rfids;
};
struct AmsSyncItem {
std::string RFID;
std::string filamentVendor;
std::string filamentType;
std::string filamentName;
std::string filamentId;
bool isSupport = false;
std::string color;
int colorType = 0;
std::vector<std::string> colors;
int netWeight = 0;
int totalNetWeight = 0;
std::string trayIdName;
std::string note;
std::string amsSn;
std::string slotId;
int amsId = 0;
int amsType = 0;
bool createNew = false;
};
struct AmsSyncParams {
std::string devId;
std::vector<AmsSyncItem> items;
};
struct PublishParams {
std::string project_name;
std::string project_3mf_file;