2011-07-05 18:40:26 +00:00
|
|
|
// Just to ensure we are C++-clean. This should not spit too much noise
|
|
|
|
|
2011-07-05 11:14:15 +00:00
|
|
|
#if __WORDSIZE == 32
|
|
|
|
#define _LARGEFILE_SOURCE 1
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
#endif
|
|
|
|
|
2011-07-05 18:40:26 +00:00
|
|
|
#include <iostream>
|
2011-07-05 11:14:15 +00:00
|
|
|
#include <inttypes.h>
|
2011-07-05 18:52:20 +00:00
|
|
|
|
|
|
|
extern "C" {
|
2011-07-05 11:14:15 +00:00
|
|
|
#include <libburn/libburn.h>
|
|
|
|
#include <libisofs/libisofs.h>
|
2011-07-05 15:04:31 +00:00
|
|
|
// using namespace burn;
|
|
|
|
// (this was needed to before rev.4062 of libisoburn)
|
2011-07-05 18:40:26 +00:00
|
|
|
#include <libisoburn/libisoburn.h>
|
2011-07-05 18:52:20 +00:00
|
|
|
}
|
2011-07-05 12:45:01 +00:00
|
|
|
|
2011-07-05 18:40:26 +00:00
|
|
|
int main() {
|
|
|
|
int major=-1, minor=-1, micro=-1;
|
|
|
|
isoburn_version(&major, &minor, µ);
|
|
|
|
if (major<0 || minor<0 || micro<0)
|
|
|
|
return -1;
|
|
|
|
std::cout
|
|
|
|
<< " major:" << major
|
|
|
|
<< " minor:" << minor
|
|
|
|
<< " micro:" << micro
|
|
|
|
;
|
2011-07-05 11:14:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|