aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index e42f6ff..2a3ad7c 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.2 2008/02/15 03:32:07 james
+ * *** empty log message ***
+ *
* Revision 1.1 2008/02/14 12:17:42 james
* *** empty log message ***
*
@@ -150,3 +153,38 @@ ipc_msg_send_status (Socket * s, char *buf)
return ipc_msg_send (s, (IPC_Msg *) & m);
}
+
+
+int
+ipc_msg_send_setbaud (Socket * s, int baud)
+{
+ IPC_Msg_setbaud m;
+
+ m.size = sizeof (m);
+ m.type = IPC_MSG_TYPE_SETBAUD;
+ m.baud = baud;
+ return ipc_msg_send (s, (IPC_Msg *) & m);
+}
+
+
+int
+ipc_msg_send_sendbreak (Socket * s)
+{
+ IPC_Msg_sendbreak m;
+
+ m.size = sizeof (m);
+ m.type = IPC_MSG_TYPE_SENDBREAK;
+ return ipc_msg_send (s, (IPC_Msg *) & m);
+}
+
+
+int
+ipc_msg_send_setflow (Socket * s, int flow)
+{
+ IPC_Msg_setflow m;
+
+ m.size = sizeof (m);
+ m.type = IPC_MSG_TYPE_SETFLOW;
+ m.flow = flow;
+ return ipc_msg_send (s, (IPC_Msg *) & m);
+}