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.

32 lines
714 B

10 years ago
#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>
10 years ago
#include <fcntl.h>
#include <string.h>
10 years ago
#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);
/*
10 years ago
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, simdb_rec_t **data, size_t limit);
10 years ago
*/