1 /* febootstrap-supermin-helper reimplementation in C.
2 * Copyright (C) 2009-2010 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 #ifndef FEBOOTSTRAP_SUPERMIN_HELPER_H
20 #define FEBOOTSTRAP_SUPERMIN_HELPER_H
23 extern struct timeval start_t;
27 extern void create_appliance (char **inputs, int nr_inputs, const char *whitelist, const char *modpath, const char *initrd);
30 extern const char *create_kernel (const char *hostcpu, const char *kernel);
33 extern void print_timestamped_message (const char *fs, ...);
34 extern int64_t timeval_diff (const struct timeval *x, const struct timeval *y);
35 extern int reverse_filevercmp (const void *p1, const void *p2);
36 extern void add_string (char ***argv, size_t *n_used, size_t *n_alloc, const char *str);
37 extern size_t count_strings (char *const *argv);
38 extern char **read_dir (const char *name);
39 extern char **filter (char **strings, int (*)(const char *));
40 extern char **filter_fnmatch (char **strings, const char *patt, int flags);
41 extern char **filter_notmatching_substring (char **strings, const char *sub);
42 extern void sort (char **strings, int (*compare) (const void *, const void *));
43 extern int isdir (const char *path);
44 extern char **load_file (const char *filename);
46 #endif /* FEBOOTSTRAP_SUPERMIN_HELPER_H */