Add function to get library version.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 66c2f9b7b1
commit 7f727979e1
  1. 5
      src/libisofs.h
  2. 8
      src/util.c

@ -745,6 +745,11 @@ void iso_finish();
*/
int iso_image_new(const char *name, IsoImage **image);
/**
* Get version of the libisofs library.
*/
void iso_lib_version(int *major, int *minor, int *micro);
/**
* Create a burn_source to actually write the image. That burn_source can be
* used with libburn as a data source for a track.

@ -9,6 +9,7 @@
#include "util.h"
#include "error.h"
#include "../version.h"
#include <stdlib.h>
#include <wchar.h>
@ -1172,3 +1173,10 @@ char *ucs2str(const char *buf, size_t len)
out[len] = '\0';
return strdup(out);
}
void iso_lib_version(int *major, int *minor, int *micro)
{
*major = LIBISOFS_MAJOR_VERSION;
*minor = LIBISOFS_MINOR_VERSION;
*micro = LIBISOFS_MICRO_VERSION;
}

Loading…
Cancel
Save