forked from ClusterM/open-bamboo-networking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabi_meta.cpp
More file actions
27 lines (23 loc) · 1011 Bytes
/
abi_meta.cpp
File metadata and controls
27 lines (23 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <string>
#include "obn/abi_export.hpp"
#ifndef OBN_VERSION_STRING
# error "OBN_VERSION_STRING is not defined; build through the top-level ./configure or pass -DOBN_VERSION=... to cmake"
#endif
// Returned to Studio's NetworkAgent::get_version(). Studio validates the
// first 8 characters against its own SLIC3R_VERSION in
// check_networking_version() (see src/slic3r/GUI/GUI_App.cpp). The value
// is injected from -DOBN_VERSION=... at CMake configure time; the
// top-level ./configure auto-detects it from the installed
// BambuStudio.conf, refusing to pick a stale default.
OBN_ABI std::string bambu_network_get_version()
{
return std::string(OBN_VERSION_STRING);
}
// Studio passes `true` for debug builds and `false` for release. A plugin
// compiled for the other mode should return false; we always claim
// consistency because a single release-mode .so must work with both Studio
// builds.
OBN_ABI bool bambu_network_check_debug_consistent(bool /*is_debug*/)
{
return true;
}