blob: e8741bda3cf6cbed0e9a954946152f8c5f91f50e [file] [log] [blame] [edit]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_FILES_C_LIB_UTIL_H_
#define SERVICES_FILES_C_LIB_UTIL_H_
#include "mojo/public/cpp/system/macros.h"
#include "mojo/services/files/public/interfaces/types.mojom.h"
namespace mojio {
// Converts a |mojo::files::Error| to an errno value. (Note that this converts
// |mojo::files::ERROR_OK| to 0, which is not a valid errno value.
int ErrorToErrno(mojo::files::Error error);
} // namespace mojio
#endif // SERVICES_FILES_C_LIB_UTIL_H_