mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-19 11:36:24 +00:00
Add readline library replacement for MSVC
This commit is contained in:
24
src/msvc/readline/readline.h
Normal file
24
src/msvc/readline/readline.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// readline.h
|
||||
// Copyright (C) 2022 Marius Greuel
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (rl_vcpfunc_t)(char* line);
|
||||
|
||||
extern int rl_readline_version;
|
||||
|
||||
int rl_input_available(void);
|
||||
void rl_callback_read_char(void);
|
||||
void rl_callback_handler_install(char* prompt, rl_vcpfunc_t* handler);
|
||||
void rl_callback_handler_remove(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user