// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CSubFeature.java
// public class CSubFeature extends Structure {
// 
// 	public String name;
// 	public int number;
// 	public int type;
// 	public int mapping;
// 	public int flags;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("name", "number", "type", "mapping", "flags");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CChip.java
// public class CChip extends Structure {
// 
// 	public String prefix;
// 	public CBus bus;
// 	public String path;
// 	public int addr;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("prefix", "bus", "path", "addr");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CFeature.java
// public class CFeature extends Structure {
// 
// 	public String name;
// 	public int number;
// 	public int type;
// 	public int first_subfeature;
// 	public int padding;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("name", "number", "type", "first_subfeature", "padding");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CSensors.java
// public interface CSensors extends Library {	
// 
// 	int sensors_init(File input);
// 	
// 	void sensors_cleanup();
// 
// 	CChip sensors_get_detected_chips(CChip[] match, IntByReference nr);
// 
// 	CFeature sensors_get_features(CChip name, IntByReference nr);
// 
// 	String sensors_get_label(CChip name, CFeature feature);
// 
// 	int sensors_get_value(CChip name, int subfeat_nr, DoubleByReference value);
// 
// 	String sensors_get_adapter_name(CBus bus);
// 
// 	CSubFeature sensors_get_all_subfeatures(CChip name, CFeature feature, IntByReference nr);
// }


import com.profesorfalken.jsensors.manager.unix.jna.CSubFeature;
import com.profesorfalken.jsensors.manager.unix.jna.CChip;
import com.profesorfalken.jsensors.manager.unix.jna.CFeature;
import com.profesorfalken.jsensors.manager.unix.jna.CSensors;
import com.sun.jna.Native;
import com.sun.jna.ptr.DoubleByReference;
import com.sun.jna.ptr.IntByReference;

/*
 * Copyright 2016-2018 Javier Garcia Alonso.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.profesorfalken.jsensors.integration;


/**
 *
 * @author javier
 */
public class TestSensorsLinux {

	public static void main(String[] args) {

// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CSubFeature.java
// public class CSubFeature extends Structure {
// 
// 	public String name;
// 	public int number;
// 	public int type;
// 	public int mapping;
// 	public int flags;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("name", "number", "type", "mapping", "flags");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CChip.java
// public class CChip extends Structure {
// 
// 	public String prefix;
// 	public CBus bus;
// 	public String path;
// 	public int addr;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("prefix", "bus", "path", "addr");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CFeature.java
// public class CFeature extends Structure {
// 
// 	public String name;
// 	public int number;
// 	public int type;
// 	public int first_subfeature;
// 	public int padding;
// 
// 	@Override
// 	protected List getFieldOrder() {
// 		return Arrays.asList("name", "number", "type", "first_subfeature", "padding");
// 	}
// 
// }
// 
// Path: src/main/java/com/profesorfalken/jsensors/manager/unix/jna/CSensors.java
// public interface CSensors extends Library {	
// 
// 	int sensors_init(File input);
// 	
// 	void sensors_cleanup();
// 
// 	CChip sensors_get_detected_chips(CChip[] match, IntByReference nr);
// 
// 	CFeature sensors_get_features(CChip name, IntByReference nr);
// 
// 	String sensors_get_label(CChip name, CFeature feature);
// 
// 	int sensors_get_value(CChip name, int subfeat_nr, DoubleByReference value);
// 
// 	String sensors_get_adapter_name(CBus bus);
// 
// 	CSubFeature sensors_get_all_subfeatures(CChip name, CFeature feature, IntByReference nr);
// }


// Path: src/test/java/com/profesorfalken/jsensors/integration/TestSensorsLinux.java
import com.profesorfalken.jsensors.manager.unix.jna.CSubFeature;
import com.profesorfalken.jsensors.manager.unix.jna.CChip;
import com.profesorfalken.jsensors.manager.unix.jna.CFeature;
import com.profesorfalken.jsensors.manager.unix.jna.CSensors;
import com.sun.jna.Native;
import com.sun.jna.ptr.DoubleByReference;
import com.sun.jna.ptr.IntByReference;

/*
 * Copyright 2016-2018 Javier Garcia Alonso.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.profesorfalken.jsensors.integration;


/**
 *
 * @author javier
 */
public class TestSensorsLinux {

	public static void main(String[] args) {

		CSensors INSTANCE = Native.loadLibrary("sensors", CSensors.class);
