#ifndef COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
#define COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
#include <libudev.h>
#include <string>
#include "base/memory/scoped_ptr.h"
namespace base {
class FilePath;
}
namespace storage_monitor {
struct UdevDeleter {
void operator()(struct udev* udev);
};
typedef scoped_ptr<struct udev, UdevDeleter> ScopedUdevObject;
struct UdevDeviceDeleter {
void operator()(struct udev_device* device);
};
typedef scoped_ptr<struct udev_device, UdevDeviceDeleter>
ScopedUdevDeviceObject;
std::string GetUdevDevicePropertyValue(struct udev_device* udev_device,
const char* key);
bool GetUdevDevicePropertyValueByPath(const base::FilePath& device_path,
const char* key,
std::string* result);
}
#endif