|
@@ -124,6 +124,15 @@ static inline int have_images ( void ) {
|
124
|
124
|
return ( ! list_empty ( &images ) );
|
125
|
125
|
}
|
126
|
126
|
|
|
127
|
+/**
|
|
128
|
+ * Retrieve first image
|
|
129
|
+ *
|
|
130
|
+ * @ret image Image, or NULL
|
|
131
|
+ */
|
|
132
|
+static inline struct image * first_image ( void ) {
|
|
133
|
+ return list_first_entry ( &images, struct image, list );
|
|
134
|
+}
|
|
135
|
+
|
127
|
136
|
extern struct image * alloc_image ( void );
|
128
|
137
|
extern void image_set_uri ( struct image *image, struct uri *uri );
|
129
|
138
|
extern int image_set_cmdline ( struct image *image, const char *cmdline );
|