~ubuntu-branches/debian/sid/grub2/sid-200907171834

« back to all changes in this revision

Viewing changes to include/grub/lib/envblk.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan, Updated translations, Robert Millan
  • Date: 2008-11-10 16:18:14 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110161814-1ltb13avouqapmlh
Tags: 1.96+20080724-12
[ Updated translations ]
* Italian (it.po) by Luca Monducci. (Closes: #504076)
* Swedish (sv.po) by Martin Ågren. (Closes: #504207)
* Arabic (ar.po) by Ossama Khayat. (Closes: #504254)
* Portuguese (pt.po) by Miguel Figueiredo. (Closes: #504280)
* Russian (ru.po) by Yuri Kozlov. (Closes: #504324)
* Finnish (fi.po) by Esko Arajärvi. (Closes: #504310)
* Basque (eu.po) by Piarres Beobide. (Closes: #504466)
* Dutch (nl.po) by Paul Gevers. (Closes: #504683)

[ Robert Millan ]
* Update to new debian theme.
  - grub-pc.postinst: Switch to moreblue-orbit-grub.png.
  - grub.d/05_debian_theme: Likewise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 2008,2009  Free Software Foundation, Inc.
4
 
 *
5
 
 *  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
7
 
 *  the Free Software Foundation, either version 3 of the License, or
8
 
 *  (at your option) any later version.
9
 
 *
10
 
 *  GRUB is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
17
 
 */
18
 
 
19
 
#ifndef GRUB_ENVBLK_HEADER
20
 
#define GRUB_ENVBLK_HEADER      1
21
 
 
22
 
#define GRUB_ENVBLK_SIGNATURE   "# GRUB Environment Block\n"
23
 
#define GRUB_ENVBLK_DEFCFG      "grubenv"
24
 
 
25
 
#ifndef ASM_FILE
26
 
 
27
 
struct grub_envblk
28
 
{
29
 
  char *buf;
30
 
  grub_size_t size;
31
 
};
32
 
typedef struct grub_envblk *grub_envblk_t;
33
 
 
34
 
grub_envblk_t grub_envblk_open (char *buf, grub_size_t size);
35
 
int grub_envblk_set (grub_envblk_t envblk, const char *name, const char *value);
36
 
void grub_envblk_delete (grub_envblk_t envblk, const char *name);
37
 
void grub_envblk_iterate (grub_envblk_t envblk,
38
 
                          int hook (const char *name, const char *value));
39
 
void grub_envblk_close (grub_envblk_t envblk);
40
 
 
41
 
static inline char *
42
 
grub_envblk_buffer (const grub_envblk_t envblk)
43
 
{
44
 
  return envblk->buf;
45
 
}
46
 
 
47
 
static inline grub_size_t
48
 
grub_envblk_size (const grub_envblk_t envblk)
49
 
{
50
 
  return envblk->size;
51
 
}
52
 
 
53
 
#endif /* ! ASM_FILE */
54
 
 
55
 
#endif /* ! GRUB_ENVBLK_HEADER */