You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
672 B

  1. /**
  2. * libcaca Java bindings for libcaca
  3. * Copyright (c) 2009 Adrien Grand <jpountz@dinauz.org>
  4. *
  5. * This library is free software. It comes without any warranty, to
  6. * the extent permitted by applicable law. You can redistribute it
  7. * and/or modify it under the terms of the Do What The Fuck You Want
  8. * To Public License, Version 2, as published by Sam Hocevar. See
  9. * http://sam.zoy.org/wtfpl/COPYING for more details.
  10. */
  11. #include "org_zoy_caca_Caca.h"
  12. #include "caca.h"
  13. JNIEXPORT jstring JNICALL
  14. Java_org_zoy_caca_Caca_getVersion(JNIEnv *env, jclass cls)
  15. {
  16. const char *version = caca_get_version();
  17. return (*env)->NewStringUTF(env, version);
  18. }