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
708 B
32 lines
708 B
11 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>
|
||
11 years ago
|
#include <fcntl.h>
|
||
|
#include <string.h>
|
||
11 years ago
|
#include <errno.h>
|
||
|
#include <limits.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <sys/types.h>
|
||
|
|
||
11 years ago
|
#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);
|
||
|
|
||
11 years ago
|
extern int image_add(uint64_t, char *path);
|
||
|
extern int image_del(uint64_t);
|
||
|
extern int image_exists(uint64_t);
|
||
11 years ago
|
/*
|
||
|
extern int image_search(uint64_t, rec_t **data, size_t limit);
|
||
|
*/
|