mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 14:57:27 +00:00
Merge Rust, C and C++ SDKs (#4)
* Generate native bindings from rust crate * Add native instance and runtime statics * Update README.md
This commit is contained in:
parent
738f9c947b
commit
a392dbb119
39 changed files with 1213 additions and 24 deletions
14
examples/cpp/main.cpp
Normal file
14
examples/cpp/main.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#include <iostream>
|
||||
#include <tribufu/api.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
tribufu_api_initialize();
|
||||
const char *version = tribufu_api_get_user_agent();
|
||||
std::cout << version << std::endl;
|
||||
tribufu_free_string((char *)version);
|
||||
tribufu_api_shutdown();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue