mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 14:57:27 +00:00
Generate native bindings from rust crate
This commit is contained in:
parent
738f9c947b
commit
6ab490ce07
37 changed files with 1112 additions and 23 deletions
12
examples/cpp/main.cpp
Normal file
12
examples/cpp/main.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#include <iostream>
|
||||
#include <tribufu/api.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
const char *version = tribufu_api_get_user_agent();
|
||||
std::cout << version << std::endl;
|
||||
tribufu_free_string((char *)version);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue