1 |
/* ext2.c - Second Extended filesystem */ |
/* ext2.c - Second Extended filesystem */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2003, 2004 Free Software Foundation, Inc. |
* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* 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 |
633 |
.next = 0 |
.next = 0 |
634 |
}; |
}; |
635 |
|
|
636 |
#ifdef GRUB_UTIL |
GRUB_MOD_INIT(ext2) |
|
void |
|
|
grub_ext2_init (void) |
|
|
{ |
|
|
grub_fs_register (&grub_ext2_fs); |
|
|
} |
|
|
|
|
|
void |
|
|
grub_ext2_fini (void) |
|
|
{ |
|
|
grub_fs_unregister (&grub_ext2_fs); |
|
|
} |
|
|
#else /* ! GRUB_UTIL */ |
|
|
GRUB_MOD_INIT |
|
637 |
{ |
{ |
638 |
grub_fs_register (&grub_ext2_fs); |
grub_fs_register (&grub_ext2_fs); |
639 |
|
#ifndef GRUB_UTIL |
640 |
my_mod = mod; |
my_mod = mod; |
641 |
|
#endif |
642 |
} |
} |
643 |
|
|
644 |
GRUB_MOD_FINI |
GRUB_MOD_FINI(ext2) |
645 |
{ |
{ |
646 |
grub_fs_unregister (&grub_ext2_fs); |
grub_fs_unregister (&grub_ext2_fs); |
647 |
} |
} |
|
#endif /* ! GRUB_UTIL */ |
|