summaryrefslogtreecommitdiffstats
path: root/src/image.h
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-07 17:10:49 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-07 17:10:49 +0200
commit3ead19bdea737aeff52439dacc214d62e81ea969 (patch)
tree26acb19fa864523dbaca0487ba9d0e50ea40780a /src/image.h
parent03eeca994daf1cbc78065de75ab182a5f3d17832 (diff)
download0xFFFF-3ead19bdea737aeff52439dacc214d62e81ea969.tar.bz2
image: Implement image_missing_values_from_name and image_name_alloc_from_values
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/image.h b/src/image.h
index f4981c9..534641f 100644
--- a/src/image.h
+++ b/src/image.h
@@ -6,6 +6,8 @@
#include <stdint.h>
#include <sys/types.h>
+#include "device.h"
+
enum image_type {
IMAGE_UNKNOWN = 0,
IMAGE_XLOADER,
@@ -21,16 +23,6 @@ enum image_type {
IMAGE_CMT_MCUSW,
};
-enum device {
- DEVICE_UNKNOWN = 0,
- DEVICE_ANY, /* Unspecified / Any device */
- DEVICE_SU_18, /* Nokia 770 */
- DEVICE_RX_34, /* Nokia N800 */
- DEVICE_RX_44, /* Nokia N810 */
- DEVICE_RX_48, /* Nokia N810 WiMax */
- DEVICE_RX_51, /* Nokia N900 */
-};
-
struct image {
enum image_type type;
enum device device;
@@ -63,6 +55,7 @@ void image_list_del(struct image_list * list);
uint16_t image_hash_from_data(struct image * image);
enum image_type image_type_from_data(struct image * image);
+char * image_name_alloc_from_values(struct image * image);
enum image_type image_type_from_string(const char * type);
const char * image_type_to_string(enum image_type type);