Milestone 2
This commit is contained in:
parent
14e3afdd7b
commit
866f0419ad
19 changed files with 2006 additions and 23 deletions
22
examples/minimal.cpp
Normal file
22
examples/minimal.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include <iostream>
|
||||
|
||||
#include <warppipe/warppipe.hpp>
|
||||
|
||||
int main() {
|
||||
warppipe::ConnectionOptions options;
|
||||
auto client_result = warppipe::Client::Create(options);
|
||||
if (!client_result.ok()) {
|
||||
std::cerr << "warppipe: failed to create client: "
|
||||
<< client_result.status.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto sink_result = client_result.value->CreateVirtualSink("example_sink");
|
||||
if (!sink_result.ok()) {
|
||||
std::cerr << "warppipe: failed to create sink: "
|
||||
<< sink_result.status.message << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue