mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
32 lines
577 B
C++
32 lines
577 B
C++
#ifndef FISH_REDIRECTION_H
|
|
#define FISH_REDIRECTION_H
|
|
|
|
#if INCLUDE_RUST_HEADERS
|
|
|
|
#include "redirection.rs.h"
|
|
|
|
#else
|
|
|
|
// Hacks to allow us to compile without Rust headers.
|
|
|
|
enum class RedirectionMode {
|
|
overwrite,
|
|
append,
|
|
input,
|
|
fd,
|
|
noclob,
|
|
};
|
|
struct Dup2Action;
|
|
class Dup2List;
|
|
struct RedirectionSpec;
|
|
struct RedirectionSpecListFfi;
|
|
|
|
#endif
|
|
|
|
using redirection_mode_t = RedirectionMode;
|
|
using redirection_spec_t = RedirectionSpec;
|
|
using redirection_spec_list_t = RedirectionSpecListFfi;
|
|
using dup2_action_t = Dup2Action;
|
|
using dup2_list_t = Dup2List;
|
|
|
|
#endif
|