22 lines
566 B
C++
22 lines
566 B
C++
#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;
|
|
}
|