#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define FREE(ptr) \ free((ptr)); (ptr) = NULL; #define CALLOC(ptr, nmemb, size) \ assert(((ptr) = calloc((nmemb), (size))) != NULL); #define STRNDUP(ptr, str, len) \ assert(((ptr) = strndup((str), (len))) != NULL); extern int image_add(uint64_t, char *path); extern int image_del(uint64_t); extern int image_exists(uint64_t); /* extern int image_search(uint64_t, rec_t **data, size_t limit); */