legacy/libisoburn/trunk/releng/codesamples/api_xorriso.cpp

31 lines
643 B
C++
Raw Normal View History

// Just to ensure we are C++-clean. This should not spit too much noise
2011-07-11 09:44:01 +00:00
/* Copyright 2011 George Danchev <danchev@spnet.net>
2012-04-22 10:05:42 +00:00
* Released into the public domain
2011-07-11 09:44:01 +00:00
*/
2011-07-05 09:18:31 +00:00
#if __WORDSIZE == 32
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#endif
2011-07-05 11:14:15 +00:00
#include <iostream>
#include <inttypes.h>
2012-04-22 10:05:42 +00:00
//extern "C" {
2011-07-05 10:50:53 +00:00
#include "xorriso/xorriso.h"
2012-04-22 10:05:42 +00:00
//}
2011-07-05 09:18:31 +00:00
int main() {
int major=-1, minor=-1, micro=-1;
Xorriso__version(&major, &minor, &micro);
if (major<0 || minor<0 || micro<0)
return -1;
std::cout
<< " major:" << major
<< " minor:" << minor
<< " micro:" << micro
2011-07-05 09:18:31 +00:00
;
return 0;
}