File: api_xorriso.cpp

package info (click to toggle)
libisoburn 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,436 kB
  • sloc: ansic: 41,586; sh: 10,301; makefile: 203; cpp: 44
file content (30 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Just to ensure we are C++-clean. This should not spit too much noise

/* Copyright 2011 George Danchev <danchev@spnet.net>
 * Licensed under GNU GPL version 2
 */

#if __WORDSIZE == 32
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#endif

#include <iostream>
#include <inttypes.h>

extern "C" {
#include "xorriso/xorriso.h"
}

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
   ;
   return 0;
}