1 |
/* |
/* |
2 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
3 |
* Copyright (C) 2002,2003 Free Software Foundation, Inc. |
* Copyright (C) 2002,2003,2005 Free Software Foundation, Inc. |
4 |
* |
* |
5 |
* GRUB is free software; you can redistribute it and/or modify |
* GRUB is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
34 |
char *xstrdup (const char *str); |
char *xstrdup (const char *str); |
35 |
|
|
36 |
char *grub_util_get_path (const char *dir, const char *file); |
char *grub_util_get_path (const char *dir, const char *file); |
37 |
|
size_t grub_util_get_fp_size (FILE *fp); |
38 |
size_t grub_util_get_image_size (const char *path); |
size_t grub_util_get_image_size (const char *path); |
39 |
|
void grub_util_read_at (void *img, size_t len, off_t offset, FILE *fp); |
40 |
char *grub_util_read_image (const char *path); |
char *grub_util_read_image (const char *path); |
41 |
void grub_util_load_image (const char *path, char *buf); |
void grub_util_load_image (const char *path, char *buf); |
42 |
void grub_util_write_image (const char *img, size_t size, FILE *out); |
void grub_util_write_image (const char *img, size_t size, FILE *out); |
43 |
|
void grub_util_write_image_at (const void *img, size_t size, off_t offset, |
44 |
|
FILE *out); |
45 |
|
|
46 |
#endif /* ! GRUB_UTIL_MISC_HEADER */ |
#endif /* ! GRUB_UTIL_MISC_HEADER */ |