~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to grub-core/font/font_cmd.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-09-13 18:02:04 UTC
  • mfrom: (1.17.15 upstream)
  • mto: (17.6.27 experimental)
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: package-import@ubuntu.com-20120913180204-mojnmocbimlom4im
Tags: upstream-2.00
ImportĀ upstreamĀ versionĀ 2.00

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
                  char **args)
30
30
{
31
31
  if (argc == 0)
32
 
    return grub_error (GRUB_ERR_BAD_ARGUMENT, "no font specified");
 
32
    return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));
33
33
 
34
34
  while (argc--)
35
35
    if (grub_font_load (*args++) != 0)
49
49
{
50
50
  struct grub_font_node *node;
51
51
 
52
 
  grub_printf ("Loaded fonts:\n");
 
52
  grub_puts_ (N_("Loaded fonts:"));
53
53
  for (node = grub_font_list; node; node = node->next)
54
54
    {
55
55
      grub_font_t font = node->value;
61
61
 
62
62
static grub_command_t cmd_loadfont, cmd_lsfonts;
63
63
 
 
64
#if defined (GRUB_MACHINE_MIPS_LOONGSON) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS)
 
65
void grub_font_init (void)
 
66
#else
64
67
GRUB_MOD_INIT(font)
 
68
#endif
65
69
{
66
70
  grub_font_loader_init ();
67
71
 
74
78
                           0, N_("List the loaded fonts."));
75
79
}
76
80
 
 
81
#if defined (GRUB_MACHINE_MIPS_LOONGSON) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS)
 
82
void grub_font_fini (void)
 
83
#else
77
84
GRUB_MOD_FINI(font)
 
85
#endif
78
86
{
79
87
  /* TODO: Determine way to free allocated resources.
80
88
     Warning: possible pointer references could be in use.  */