spiv: image_list: Add more functionality.
commit2671d7bde14699b65a50897b4c55d16bebe5ff4e
authorCyril Hrubis <metan@ucw.cz>
Tue, 23 Apr 2013 22:20:04 +0000 (24 00:20 +0200)
committerCyril Hrubis <metan@ucw.cz>
Tue, 23 Apr 2013 22:23:12 +0000 (24 00:23 +0200)
tree99dfbd2bf0c16e1ef39b95c7ae48db755fd1a1f7
parentdd486975a6c4d41191bed65d3d5d1488747d9817
spiv: image_list: Add more functionality.

* Add lazy counters, so that we can tell total number of images in the
  arg list, including directories

* Add functions to move to the start/end of directory and arg list

* Add functions to return current position in list.

* Make use of the functionality in spiv

TODO: Fix help and write docs.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
demos/spiv/image_list.c
demos/spiv/image_list.h
demos/spiv/spiv.c