rust/chg/src/lib.rs
author Yuya Nishihara <yuya@tcha.org>
Mon, 24 Sep 2018 18:18:35 +0900
changeset 39975 a9c5fc436fd5
parent 39973 7a0ffdd4af78
child 39976 571d8eb39095
permissions -rw-r--r--
rust-chg: add callback to handle pager and shell command requests This could be inlined into the ChgRunCommand state to be introduced by the next patch, but it seemed good to separate any user interactions from the IPC code.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     1
// Copyright 2018 Yuya Nishihara <yuya@tcha.org>
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     2
//
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     3
// This software may be used and distributed according to the terms of the
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     4
// GNU General Public License version 2 or any later version.
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     5
39972
b1d8acd82d60 rust-chg: add parser for request messages sent to "S" channel
Yuya Nishihara <yuya@tcha.org>
parents: 39971
diff changeset
     6
extern crate bytes;
39973
7a0ffdd4af78 rust-chg: add future that handles "attachio" request
Yuya Nishihara <yuya@tcha.org>
parents: 39972
diff changeset
     7
#[macro_use]
7a0ffdd4af78 rust-chg: add future that handles "attachio" request
Yuya Nishihara <yuya@tcha.org>
parents: 39972
diff changeset
     8
extern crate futures;
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     9
extern crate libc;
39973
7a0ffdd4af78 rust-chg: add future that handles "attachio" request
Yuya Nishihara <yuya@tcha.org>
parents: 39972
diff changeset
    10
extern crate tokio;
39972
b1d8acd82d60 rust-chg: add parser for request messages sent to "S" channel
Yuya Nishihara <yuya@tcha.org>
parents: 39971
diff changeset
    11
extern crate tokio_hglib;
39975
a9c5fc436fd5 rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents: 39973
diff changeset
    12
extern crate tokio_process;
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
    13
39973
7a0ffdd4af78 rust-chg: add future that handles "attachio" request
Yuya Nishihara <yuya@tcha.org>
parents: 39972
diff changeset
    14
pub mod attachio;
39972
b1d8acd82d60 rust-chg: add parser for request messages sent to "S" channel
Yuya Nishihara <yuya@tcha.org>
parents: 39971
diff changeset
    15
pub mod message;
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
    16
pub mod procutil;
39975
a9c5fc436fd5 rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents: 39973
diff changeset
    17
mod uihandler;
a9c5fc436fd5 rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents: 39973
diff changeset
    18
a9c5fc436fd5 rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents: 39973
diff changeset
    19
pub use uihandler::{ChgUiHandler, SystemHandler};