Getting Started


Goal


This tutorial shows:

  • how to check libraw1394 version
  • how to create a raw1394handle_t
  • how to get port and node information

See source code: HERE


Version number


Code

1 // ----- check libraw1394 verison ----
2 const char* libraw1394_version = raw1394_get_libversion();
3 std::cout << "lib version = " << libraw1394_version << std::endl;


Code explained

The raw1394_get_libversion() returns current library version, I use it to check if I am linking against compiled library or the version from apt-get install.


FireWire handle



Port and node info



Reference



    Next