ref: 0bd4651d353e74297d69621043533f58fe48b6b8
parent: c0bcff65ed63e42976a699e01a63eecb7682fe1c
author: Yaroslav Kolomiiets <[email protected]>
date: Tue Feb 21 09:30:17 EST 2017
rename passinput() to act()
--- a/dat.h
+++ b/dat.h
@@ -56,7 +56,7 @@
void assync(Rdp*);
void asctl(Rdp*,int);
void asfontls(Rdp*);
-void passinput(Rdp*,ulong,int,int,int,int);
+void act(Rdp*,ulong,int,int,int,int);
void turnupdates(Rdp*, int);
void erectdom(Rdp*);
void readnet(Rdp*);
--- a/kbd.c
+++ b/kbd.c
@@ -119,11 +119,11 @@
msec = time(nil);
if(mod != 0)
- passinput(c, msec, InputKeycode, 0, mod, 0);
- passinput(c, msec, InputKeycode, x|0, sc, 0);
- passinput(c, msec, InputKeycode, x|KeyUp, sc, 0);
+ act(c, msec, InputKeycode, 0, mod, 0);
+ act(c, msec, InputKeycode, x|0, sc, 0);
+ act(c, msec, InputKeycode, x|KeyUp, sc, 0);
if(mod != 0)
- passinput(c, msec, InputKeycode, KeyUp, mod, 0);
+ act(c, msec, InputKeycode, KeyUp, mod, 0);
}
void
@@ -132,8 +132,8 @@
long msec;
msec = time(nil);
- passinput(c, msec, InputUnicode, 0, r, 0);
- passinput(c, msec, InputUnicode, KeyUp, r, 0);
+ act(c, msec, InputUnicode, 0, r, 0);
+ act(c, msec, InputUnicode, KeyUp, r, 0);
}
void
--- a/mouse.c
+++ b/mouse.c
@@ -18,7 +18,7 @@
static void
sendmouse1(Rdp* c, Mouse m, int f)
{
- passinput(c, m.msec, InputMouse, f, m.xy.x, m.xy.y);
+ act(c, m.msec, InputMouse, f, m.xy.x, m.xy.y);
}
void
--- a/rpc.c
+++ b/rpc.c
@@ -207,7 +207,7 @@
confirmactive(c);
finalhandshake(c);
- passinput(c, 0, InputSync, 0, 0, 0);
+ act(c, 0, InputSync, 0, 0, 0);
}
void
@@ -356,7 +356,7 @@
}
void
-passinput(Rdp* c, ulong msec, int typ, int f, int a, int b)
+act(Rdp* c, ulong msec, int typ, int f, int a, int b)
{
Msg t;
@@ -369,7 +369,7 @@
t.iarg[0] = a;
t.iarg[1] = b;
if(writemsg(c, &t) <= 0)
- sysfatal("passinput: %r");
+ sysfatal("act: %r");
}
void