Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-26009-2210132
proj235-Linux的OTA升级系统-3773
Commits
4fd8afb3
Commit
4fd8afb3
authored
1 year ago
by
终究还是我们队
Browse files
Options
Download
Patches
Plain Diff
Add new file
parent
267f06c1
main
main-patch-ff32
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
update/grub.h
+28
-0
update/grub.h
with
28 additions
and
0 deletions
+28
-0
update/grub.h
0 → 100644
+
28
−
0
View file @
4fd8afb3
#ifndef _GRUBENV_H
#define _GRUBENV_H
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<errno.h>
#define GRUBENV_SIZE 1024
#ifdef CONFIG_GRUBENV_PATH
#define GRUBENV_PATH CONFIG_GRUBENV_PATH
#else
#define GRUBENV_PATH GRUBENV_DEFAULT_PATH
#endif
#define GRUBENV_PATH_NEW GRUBENV_PATH ".new"
struct
grubenv_t
{
struct
dict
vars
;
size_t
size
;
};
int
grubenv_set
(
const
char
*
name
,
const
char
*
value
);
int
grubenv_unset
(
const
char
*
name
);
int
grubenv_apply_list
(
const
char
*
script
);
char
*
grubenv_get
(
const
char
*
name
);
#endif
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets