/**
 * Copyright © 2014 Will Dignazio
 *
 * Java implementation file for the JNI wrapper of libatasmart.
 * This provides an interface to produce SkDisk objects that are
 * synonymous with the SkDisk structures within the atasmart library.
 *
 * The underlying implementation code is compiled from a .c file(s),
 * the primary of which being jatasmart.c.
 *
 * @author Will Dignazio <wdignazio@gmail.com>
 */

package net.digitalbebop;

public class JataSMART
{
	/* One time initialize libatasmart */
	static
	{
		System.loadLibrary("jatasmart");
	}
	
	private class SkDisk
	{
		private long _skDiskAddr;
		
		private SkDisk()
		{
		}

		public native long getSize();
		public native boolean isSMARTAvailable();
		public native boolean isSleepMode();
		public native boolean isIdentifyAvailabe();
		public native boolean getSMARTStatus();
		public native long getPowerOn();
		public native long getPowerCycle();
		public native long getBadSectors();
		public native long getTemperature();

		public native String toString();
	}

	public native SkDisk open(String path);
}

@@ -1022,16 +1022,411 @@
 ();%0A%09%7D%0A%0A
+%09/**%0A%09 * Open the given device, and produce an SkDisk object.%0A%09 * This creates a specialized SkDisk object using the underlying%0A%09 * JNI wrapper code, giving an interface to the libatasmart%0A%09 * library methods.%0A%09 *%0A%09 * The path given in this is expected to be a block device that%0A%09 * supports SMART.%0A%09 * %0A%09 * @param path Path to disk device%0A%09 * @return SkDisk SkDisk device interface object%0A%09 */%0A
 %09public 

Add header docs for open