Allow to optionally (triggered with SELFSTART_PROCESS) self start the application.

This commit is contained in:
oliverschmidt 2008-02-07 16:28:11 +00:00
parent 155a27ff59
commit 0a8f384a40
13 changed files with 64 additions and 12 deletions

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: about.c,v 1.2 2006/08/13 13:59:07 oliverschmidt Exp $
* $Id: about.c,v 1.3 2008/02/07 16:28:11 oliverschmidt Exp $
*
*/
@ -60,6 +60,10 @@ static struct ctk_button aboutclose =
PROCESS(about_process, "About Contiki");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&about_process);
#endif /* SELFSTART_PROCESS */
/*-----------------------------------------------------------------------------------*/
static void
about_quit(void)

View file

@ -29,7 +29,7 @@
*
* This an example program for the Contiki desktop OS
*
* $Id: calc.c,v 1.3 2007/11/17 22:50:49 oliverschmidt Exp $
* $Id: calc.c,v 1.4 2008/02/07 16:28:27 oliverschmidt Exp $
*
*/
@ -82,6 +82,10 @@ static struct ctk_button calcbutton =
PROCESS(calc_process, "Calculator");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&calc_process);
#endif /* SELFSTART_PROCESS */
static unsigned long operand1, operand2;
static unsigned char op;
#define OP_ADD 1

View file

@ -6,6 +6,10 @@
PROCESS(dhcp_process, "DHCP");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&dhcp_process);
#endif /* SELFSTART_PROCESS */
static struct ctk_window window;
static struct ctk_button getbutton =
{CTK_BUTTON(0, 0, 16, "Request address")};

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: directory.c,v 1.4 2007/12/15 21:04:51 oliverschmidt Exp $
* $Id: directory.c,v 1.5 2008/02/07 16:29:08 oliverschmidt Exp $
*
*/
@ -76,6 +76,10 @@ static struct ctk_button reloadbutton =
PROCESS(directory_process, "Directory browser");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&directory_process);
#endif /* SELFSTART_PROCESS */
static unsigned char width, height;
#define LOADING_DIR 1

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment for the C64.
*
* $Id: email.c,v 1.3 2007/11/18 00:57:44 oliverschmidt Exp $
* $Id: email.c,v 1.4 2008/02/07 16:29:24 oliverschmidt Exp $
*
*/
@ -157,6 +157,10 @@ static struct ctk_button setupokbutton =
PROCESS(email_process, "E-mail client");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&email_process);
#endif /* SELFSTART_PROCESS */
/*-----------------------------------------------------------------------------------*/
static void
email_quit(void)

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: ftp.c,v 1.4 2007/11/18 01:05:10 oliverschmidt Exp $
* $Id: ftp.c,v 1.5 2008/02/07 16:30:08 oliverschmidt Exp $
*/
/* Note to self: It would be nice to have a "View" option in the download dialog. */
@ -52,6 +52,10 @@
PROCESS(ftp_process, "FTP client");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&ftp_process);
#endif /* SELFSTART_PROCESS */
static void *connection;
/* --- The main window --- */

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: irc.c,v 1.5 2007/11/22 12:02:24 oliverschmidt Exp $
* $Id: irc.c,v 1.6 2008/02/07 16:30:24 oliverschmidt Exp $
*/
#include <string.h>
@ -60,6 +60,10 @@
PROCESS(irc_process, "IRC client");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&irc_process);
#endif /* SELFSTART_PROCESS */
static struct ctk_window window;
static char log[LOG_WIDTH * LOG_HEIGHT];
static char line[LOG_WIDTH*2];

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: netconf.c,v 1.6 2007/09/29 04:12:16 matsutsuka Exp $
* $Id: netconf.c,v 1.7 2008/02/07 16:30:42 oliverschmidt Exp $
*
*/
@ -67,6 +67,10 @@ static struct ctk_button tcpipclosebutton =
PROCESS(netconf_process, "Network configurator");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&netconf_process);
#endif /* SELFSTART_PROCESS */
static void makestrings(void);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: process-list.c,v 1.6 2007/09/30 02:32:23 matsutsuka Exp $
* $Id: process-list.c,v 1.7 2008/02/07 16:30:58 oliverschmidt Exp $
*
*/
@ -65,6 +65,10 @@ static struct ctk_button processclosebutton =
PROCESS(processes_process, "Process listing");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&processes_process);
#endif /* SELFSTART_PROCESS */
enum {
EVENT_UPDATE
};

View file

@ -43,7 +43,7 @@
*
* This file is part of the Contiki desktop OS
*
* $Id: program-handler.c,v 1.7 2007/12/15 13:03:17 oliverschmidt Exp $
* $Id: program-handler.c,v 1.8 2008/02/07 16:31:14 oliverschmidt Exp $
*
*/
@ -124,6 +124,10 @@ static struct ctk_button errorokbutton =
PROCESS(program_handler_process, "Program handler");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&program_handler_process);
#endif /* SELFSTART_PROCESS */
static const char * const errormsgs[] = {
"Ok",
"Read error",

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: simpletelnet.c,v 1.3 2007/09/29 04:02:06 matsutsuka Exp $
* $Id: simpletelnet.c,v 1.4 2008/02/07 16:31:34 oliverschmidt Exp $
*
*/
@ -91,6 +91,10 @@ static char sendline[31+2];
PROCESS(simpletelnet_process, "Telnet client");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&simpletelnet_process);
#endif /* SELFSTART_PROCESS */
/*-----------------------------------------------------------------------------------*/
static void
scrollup(void)

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: www.c,v 1.7 2007/12/15 21:56:23 oliverschmidt Exp $
* $Id: www.c,v 1.8 2008/02/07 16:31:51 oliverschmidt Exp $
*
*/
@ -164,6 +164,10 @@ static char receivingmsgs[4][23] = {
PROCESS(www_process, "Web browser");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&www_process);
#endif /* SELFSTART_PROCESS */
static void formsubmit(struct formattribs *attribs);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop environment for the C64.
*
* $Id: webserver.c,v 1.3 2007/04/23 21:19:55 oliverschmidt Exp $
* $Id: webserver.c,v 1.4 2008/02/07 16:32:11 oliverschmidt Exp $
*
*/
@ -51,6 +51,10 @@ static struct ctk_label message =
PROCESS(webserver_process, "Web server");
#if SELFSTART_PROCESS
AUTOSTART_PROCESSES(&webserver_process);
#endif /* SELFSTART_PROCESS */
#define LOG_WIDTH 38
#define LOG_HEIGHT 16
static char log[LOG_WIDTH*LOG_HEIGHT];