stub rust sneakers effect
This commit is contained in:
parent
52c7d86022
commit
7f77dddda9
@ -1,6 +1,7 @@
|
|||||||
mod args;
|
mod args;
|
||||||
mod charset;
|
mod charset;
|
||||||
mod color;
|
mod color;
|
||||||
|
mod sneakers;
|
||||||
|
|
||||||
use libc::{c_char, c_int, c_void};
|
use libc::{c_char, c_int, c_void};
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
|
@ -11,7 +11,13 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "nmseffect.h"
|
#include "nmseffect.h"
|
||||||
|
|
||||||
|
extern void rust_sneakers_effect();
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
|
||||||
|
rust_sneakers_effect();
|
||||||
|
|
||||||
|
|
||||||
int termCols, spaces = 0;
|
int termCols, spaces = 0;
|
||||||
unsigned char *display_uc = NULL;
|
unsigned char *display_uc = NULL;
|
||||||
char *display = NULL;
|
char *display = NULL;
|
||||||
|
10
src/sneakers.rs
Normal file
10
src/sneakers.rs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn rust_sneakers_effect() {
|
||||||
|
println!("Rust sneakers effect");
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
|
let dur = Duration::from_millis(2000);
|
||||||
|
std::thread::sleep(dur);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user