refactor(native): rename C API auth_* -> craft_* across header, core, JNI bridge, and smoke tests

This commit is contained in:
2026-04-28 18:27:34 +08:00
parent 5073a4193f
commit 53c52a0b3e
3 changed files with 25 additions and 25 deletions
+5 -5
View File
@@ -10,25 +10,25 @@
#include <cstdlib>
int main() {
AuthHandle h = auth_initialize("{}");
AuthHandle h = craft_initialize("{}");
if (!h) {
std::fprintf(stderr, "auth_initialize returned null\n");
return EXIT_FAILURE;
}
AuthResult r = auth_check_license(h);
AuthResult r = craft_check_license(h);
if (r.success == 0) {
std::fprintf(stderr, "auth_check_license failed\n");
auth_destroy(h);
return EXIT_FAILURE;
}
LicenseInfo* info = auth_get_license_info(h);
LicenseInfo* info = craft_get_license_info(h);
if (!info) {
std::fprintf(stderr, "auth_get_license_info returned null\n");
auth_destroy(h);
return EXIT_FAILURE;
}
auth_free_license_info(info);
auth_destroy(h);
craft_free_license_info(info);
craft_destroy(h);
std::printf("native smoke ok\n");
return EXIT_SUCCESS;
}