Blame view
include/cli_hush.h
737 Bytes
83d290c56
|
1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
5b1d71372
|
2 3 4 |
/* * (C) Copyright 2001 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
5b1d71372
|
5 |
*/ |
eca86fad3
|
6 7 |
#ifndef _CLI_HUSH_H_ #define _CLI_HUSH_H_ |
5b1d71372
|
8 9 10 11 |
#define FLAG_EXIT_FROM_LOOP 1 #define FLAG_PARSE_SEMICOLON (1 << 1) /* symbol ';' is special for parser */ #define FLAG_REPARSING (1 << 2) /* >=2nd pass */ |
87b6398b4
|
12 13 |
#define FLAG_CONT_ON_NEWLINE (1 << 3) /* continue when we see */ |
5b1d71372
|
14 15 |
extern int u_boot_hush_start(void); |
c8a2079e4
|
16 |
extern int parse_string_outer(const char *, int); |
5b1d71372
|
17 |
extern int parse_file_outer(void); |
81473f678
|
18 19 |
int set_local_var(const char *s, int flg_export); void unset_local_var(const char *name); |
eae3b0644
|
20 |
char *get_local_var(const char *s); |
81473f678
|
21 22 23 24 |
#if defined(CONFIG_HUSH_INIT_VAR) extern int hush_init_var (void); #endif |
5b1d71372
|
25 |
#endif |