/**
 * Energy reading for an ODROID with INA231 power sensors, using ioctl on
 * device files instead of sysfs.
 *
 * @author Connor Imes
 * @date 2015-10-14
 */
#ifndef _ENERGYMON_ODROID_IOCTL_H_
#define _ENERGYMON_ODROID_IOCTL_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stddef.h>
#include "energymon.h"

int energymon_init_odroid_ioctl(energymon* em);

uint64_t energymon_read_total_odroid_ioctl(const energymon* em);

int energymon_finish_odroid_ioctl(energymon* em);

char* energymon_get_source_odroid_ioctl(char* buffer, size_t n);

uint64_t energymon_get_interval_odroid_ioctl(const energymon* em);

uint64_t energymon_get_precision_odroid_ioctl(const energymon* em);

int energymon_is_exclusive_odroid_ioctl();

int energymon_get_odroid_ioctl(energymon* em);

#ifdef __cplusplus
}
#endif

#endif

/**
 * Energy reading for an ODROID with INA231 power sensors, using ioctl on
 * device files instead of sysfs.
 *
 * @author Connor Imes
 * @date 2015-10-14
 */
#ifndef _ENERGYMON_ODROID_IOCTL_H_
#define _ENERGYMON_ODROID_IOCTL_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <inttypes.h>
#include <stddef.h>
#include "energymon.h"

int energymon_init_odroid_ioctl(energymon* em);

uint64_t energymon_read_total_odroid_ioctl(const energymon* em);

int energymon_finish_odroid_ioctl(energymon* em);

char* energymon_get_source_odroid_ioctl(char* buffer, size_t n);

uint64_t energymon_get_interval_odroid_ioctl(const energymon* em);

uint64_t energymon_get_precision_odroid_ioctl(const energymon* em);

int energymon_is_exclusive_odroid_ioctl();

int energymon_get_odroid_ioctl(energymon* em);

#ifdef __cplusplus
}
#endif

#endif

Add missing include (mostly for good practice as it's currently included transitively anyway)
Add missing include (mostly for good practice as it's currently included transitively anyway)
