/*******************************************************************************
 * Copyright (c) 
 ******************************************************************************/
package net.wanderinghorse.libfossil;



/**
 * The wrapper for a Checkout
 */
public class FossilCheckout {

	public static int NESTED = 1;
	public static int CREATE = 2;


	long handle;

	/**
	 * The constructor
	 * 
	 */
	public FossilCheckout(String dir, int flags) {
		handle = open(dir, flags);
	}

	public void finalize() {
		close(handle);
		handle = 0;
	}

	public void close() {
		close(handle);
		handle = 0;
	}

	private static native long open(String dir, int flags);
	private static native void close(long handle);

}
