Commit 4fd8afb3 authored by 终究还是我们队's avatar 终究还是我们队
Browse files

Add new file

No related merge requests found
Showing with 28 additions and 0 deletions
+28 -0
update/grub.h 0 → 100644
#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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment