entry_ref, BEntry, Haiku c++ api
#include <Entry.h> #include <iostream> int main() { entry_ref e_ref; BEntry{"audio.wav"}.GetRef(&e_ref); std::cout << e_ref.name << "::" << e_ref.device << "::" << e_ref.directory << std::endl; }
Build & Run:
~> g++ xx.cpp -std=c++23 -lbe -o xx ~> ./xx audio.wav::3::1048576
Haiku API Docs https://api.haiku-os.org
Haiku Home - Haiku OS
Back Index - Dig Haiku OS c++
Powered by - B2 Build | boost quickbook | I2Pd
====
cppfxjjm5bgqx2cepvisfcy4zz4ystzxxh36mtuvqm2jp5g6rb7a.b32.i2p