Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

32 rader
757 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. package org.zoy.caca;
  12. public class Caca {
  13. static {
  14. load();
  15. }
  16. private static boolean alreadyLoaded = false;
  17. synchronized public static void load() {
  18. if (!alreadyLoaded) {
  19. System.loadLibrary("caca-java");
  20. alreadyLoaded = true;
  21. }
  22. }
  23. public static native String getVersion();
  24. }