aboutsummaryrefslogtreecommitdiffstats
path: root/PalmPilot.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--PalmPilot.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/PalmPilot.c b/PalmPilot.c
index 68c35fa..b507050 100644
--- a/PalmPilot.c
+++ b/PalmPilot.c
@@ -1,4 +1,4 @@
-/* $Id: PalmPilot.c,v 1.1 2000/05/02 06:05:00 reinelt Exp $
+/* $Id: PalmPilot.c,v 1.2 2000/08/09 09:50:29 reinelt Exp $
*
* driver for 3Com Palm Pilot
*
@@ -20,6 +20,13 @@
*
*
* $Log: PalmPilot.c,v $
+ * Revision 1.2 2000/08/09 09:50:29 reinelt
+ *
+ * opened 0.98 development
+ * removed driver-specific signal-handlers
+ * added 'quit'-function to driver structure
+ * added global signal-handler
+ *
* Revision 1.1 2000/05/02 06:05:00 reinelt
*
* driver for 3Com Palm Pilot added
@@ -38,7 +45,6 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <signal.h>
#include <errno.h>
#include <termios.h>
#include <fcntl.h>
@@ -167,8 +173,6 @@ int Palm_clear (void)
return Palm_flush();
}
-static void Palm_quit (int signal); //forward declaration
-
int Palm_init (LCD *Self)
{
char *port, *speed, *s;
@@ -253,10 +257,6 @@ int Palm_init (LCD *Self)
pix_clear();
- signal(SIGINT, Palm_quit);
- signal(SIGQUIT, Palm_quit);
- signal(SIGTERM, Palm_quit);
-
return 0;
}
@@ -270,19 +270,15 @@ int Palm_bar (int type, int row, int col, int max, int len1, int len2)
return pix_bar (type, row, col, max, len1, len2);
}
-int lcd_hello (void); // prototype from lcd4linux.c
-
-static void Palm_quit (int signal)
+int Palm_quit (void)
{
- debug ("got signal %d\n", signal);
- Palm_clear();
- lcd_hello();
+ debug ("closing port %s\n", Port);
close (Device);
unlock_port (Port);
- exit (0);
+ return 0;
}
LCD PalmPilot[] = {
- { "PalmPilot", 0, 0, 0, 0, BARS, Palm_init, Palm_clear, Palm_put, Palm_bar, Palm_flush },
+ { "PalmPilot", 0, 0, 0, 0, BARS, Palm_init, Palm_clear, Palm_put, Palm_bar, Palm_flush, Palm_quit },
{ NULL }
};
Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* $Id: mail.h,v 1.4 2001/03/15 14:25:05 ltoetsch Exp $
 *
 * email specific functions
 *
 * Copyright 2001 by Axel Ehnert <Axel@Ehnert.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *
 * $Log: mail.h,v $
 * Revision 1.4  2001/03/15 14:25:05  ltoetsch
 * added unread/total news
 *
 * Revision 1.3  2001/03/14 13:19:29  ltoetsch
 * Added pop3/imap4 mail support
 *
 * Revision 1.2  2001/03/08 09:02:04  reinelt
 *
 * seti client cleanup
 *
 * Revision 1.1  2001/02/18 22:11:34  reinelt
 * *** empty log message ***
 *
 */

#ifndef _MAIL_H
#define _MAIL_H_

#define MAILBOXES 9

int Mail (int index, int *num, int *unseen);
int Mail_pop_imap_news(char *mbx, int *num, int *unseen); /* mail2.c */
#endif