You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
708 B

#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#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);
*/