image_types.h 640 B

1234567891011121314151617181920212223242526
  1. /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file.
  4. */
  5. #ifndef VBOOT_REFERENCE_IMAGE_TYPES_H_
  6. #define VBOOT_REFERENCE_IMAGE_TYPES_H_
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif /* __cplusplus */
  10. #include <stdint.h>
  11. #include "bmpblk_header.h"
  12. /* Identify the data. Fill in known values if info is not NULL */
  13. ImageFormat identify_image_type(const void *buf, uint32_t bufsize,
  14. ImageInfo *info);
  15. #ifdef __cplusplus
  16. }
  17. #endif /* __cplusplus */
  18. #endif /* VBOOT_REFERENCE_IMAGE_TYPES_H_ */