libresman
annotate examples/imgthumbs/src/thumbs.h @ 9:03f3de659c32
threadpool: forgot to free the job after running the work callback
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 04 Feb 2014 05:42:31 +0200 |
parents | |
children | bebc065a941f |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef THUMBS_H_ |
nuclear@1 | 2 #define THUMBS_H_ |
nuclear@1 | 3 |
nuclear@1 | 4 |
nuclear@1 | 5 struct thumbnail { |
nuclear@1 | 6 char *fname; |
nuclear@1 | 7 unsigned int tex; |
nuclear@1 | 8 float aspect; |
nuclear@1 | 9 |
nuclear@1 | 10 float layout_pos[2]; |
nuclear@1 | 11 float layout_size[2]; |
nuclear@1 | 12 |
nuclear@1 | 13 struct thumbnail *next; |
nuclear@1 | 14 }; |
nuclear@1 | 15 |
nuclear@1 | 16 struct thumbnail *create_thumbs(const char *dirpath); |
nuclear@1 | 17 void free_thumbs(struct thumbnail *thumbs); |
nuclear@1 | 18 |
nuclear@1 | 19 void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y); |
nuclear@1 | 20 |
nuclear@1 | 21 #endif /* THUMBS_H_ */ |