*-dsc.c files have been changed to remove forward reference for struct_icon variable, bacause it is strange that this variable is used wholly inside the C source file and declared extern for the forward reference.

This commit is contained in:
matsutsuka 2007-09-06 01:36:10 +00:00
parent ee76163a8c
commit 582a7476d4
32 changed files with 224 additions and 256 deletions

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: about-dsc.c,v 1.2 2007/08/30 14:39:19 matsutsuka Exp $
* $Id: about-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon about_icon;
/*-----------------------------------------------------------------------------------*/
DSC(about_dsc,
"About Contiki",
"about.prg",
about_process,
&about_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char abouticon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon about_icon =
{CTK_ICON("About Contiki", abouticon_bitmap, abouticon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(about_dsc,
"About Contiki",
"about.prg",
about_process,
&about_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: calc-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: calc-dsc.c,v 1.3 2007/09/06 01:36:11 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon calc_icon;
/*-----------------------------------------------------------------------------------*/
DSC(calc_dsc,
"Simple calculator",
"calc.prg",
calc_process,
&calc_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char calcicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon calc_icon =
{CTK_ICON("Calculator", calcicon_bitmap, calcicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(calc_dsc,
"Simple calculator",
"calc.prg",
calc_process,
&calc_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: dhcp-dsc.c,v 1.2 2007/08/30 14:39:19 matsutsuka Exp $
* $Id: dhcp-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon dhcp_icon;
/*-----------------------------------------------------------------------------------*/
DSC(dhcp_dsc,
"Obtain IP address automatically",
"dhcp.prg",
dhcp_process,
&dhcp_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char tcpipconficon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon dhcp_icon =
{CTK_ICON("DHCP client", tcpipconficon_bitmap, tcpipconficon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(dhcp_dsc,
"Obtain IP address automatically",
"dhcp.prg",
dhcp_process,
&dhcp_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: directory-dsc.c,v 1.2 2007/08/30 14:39:17 matsutsuka Exp $
* $Id: directory-dsc.c,v 1.3 2007/09/06 01:36:11 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon directory_icon;
/*-----------------------------------------------------------------------------------*/
DSC(directory_dsc,
"Directory reader",
"directory.prg",
directory_process,
&directory_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char directoryicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon directory_icon =
{CTK_ICON("Directory", directoryicon_bitmap, directoryicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(directory_dsc,
"Directory reader",
"directory.prg",
directory_process,
&directory_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: email-dsc.c,v 1.2 2007/08/30 14:39:17 matsutsuka Exp $
* $Id: email-dsc.c,v 1.3 2007/09/06 01:36:11 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon email_icon;
/*-----------------------------------------------------------------------------------*/
DSC(email_dsc,
"Unfinished e-mail client",
"email.prg",
email_process,
&email_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char tcpipconficon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon email_icon =
{CTK_ICON("E-mail", tcpipconficon_bitmap, tcpipconficon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(email_dsc,
"Unfinished e-mail client",
"email.prg",
email_process,
&email_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: ftp-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: ftp-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon ftp_icon;
/*-----------------------------------------------------------------------------------*/
DSC(ftp_dsc,
"FTP client",
"ftp.prg",
ftp_process,
&ftp_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char ftpicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon ftp_icon =
{CTK_ICON("FTP client", ftpicon_bitmap, ftpicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(ftp_dsc,
"FTP client",
"ftp.prg",
ftp_process,
&ftp_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: irc-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: irc-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon irc_icon;
/*-----------------------------------------------------------------------------------*/
DSC(irc_dsc,
"Internet Relay Chat client",
"irc.prg",
irc_process,
&irc_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char irc_icon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon irc_icon =
{CTK_ICON("IRC client", irc_icon_bitmap, irc_icon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(irc_dsc,
"Internet Relay Chat client",
"irc.prg",
irc_process,
&irc_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: netconf-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: netconf-dsc.c,v 1.3 2007/09/06 01:36:11 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon netconf_icon;
/*-----------------------------------------------------------------------------------*/
DSC(netconf_dsc,
"Network configuration",
"netconf.prg",
netconf_process,
&netconf_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char tcpipconficon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon netconf_icon =
{CTK_ICON("Network setup", tcpipconficon_bitmap, tcpipconficon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(netconf_dsc,
"Network configuration",
"netconf.prg",
netconf_process,
&netconf_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: process-list-dsc.c,v 1.2 2007/08/30 14:39:17 matsutsuka Exp $
* $Id: process-list-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon processes_icon;
/*-----------------------------------------------------------------------------------*/
DSC(processes_dsc,
"Process information",
"processes.prg",
processes_process,
&processes_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char processesicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon processes_icon =
{CTK_ICON("Processes", processesicon_bitmap, processesicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(processes_dsc,
"Process information",
"processes.prg",
processes_process,
&processes_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: shell-dsc.c,v 1.2 2007/08/30 14:39:16 matsutsuka Exp $
* $Id: shell-dsc.c,v 1.3 2007/09/06 01:36:10 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon shell_icon;
/*-----------------------------------------------------------------------------------*/
DSC(shell_dsc,
"The Contiki command shell",
"shell.prg",
shell_gui_process,
&shell_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char shellicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon shell_icon =
{CTK_ICON("Command shell", shellicon_bitmap, shellicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(shell_dsc,
"The Contiki command shell",
"shell.prg",
shell_gui_process,
&shell_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: telnet-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: telnet-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon telnet_icon;
/*-----------------------------------------------------------------------------------*/
DSC(telnet_dsc,
"A simple Telnet client",
"telnet.prg",
simpletelnet_process,
&telnet_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char telneticon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon telnet_icon =
{CTK_ICON("Telnet", telneticon_bitmap, telneticon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(telnet_dsc,
"A simple Telnet client",
"telnet.prg",
simpletelnet_process,
&telnet_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: telnetd-dsc.c,v 1.2 2007/08/30 14:39:19 matsutsuka Exp $
* $Id: telnetd-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon telnetd_icon;
/*-----------------------------------------------------------------------------------*/
DSC(telnetd_dsc,
"Telnet shell server",
"telnetd.prg",
telnetd_process,
&telnetd_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char telnetdicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon telnetd_icon =
{CTK_ICON("Telnet server", telnetdicon_bitmap, telnetdicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(telnetd_dsc,
"Telnet shell server",
"telnetd.prg",
telnetd_process,
&telnetd_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: vnc-dsc.c,v 1.2 2007/08/30 14:39:17 matsutsuka Exp $
* $Id: vnc-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon vnc_icon;
/*-----------------------------------------------------------------------------------*/
DSC(vnc_dsc,
"Remote control your PC using Contiki",
"vnc.prg",
vnc_process,
&vnc_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char vncicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon vnc_icon =
{CTK_ICON("VNC viewer", vncicon_bitmap, vncicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(vnc_dsc,
"Remote control your PC using Contiki",
"vnc.prg",
vnc_process,
&vnc_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: www-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: www-dsc.c,v 1.3 2007/09/06 01:36:11 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon www_icon;
/*-----------------------------------------------------------------------------------*/
DSC(www_dsc,
"The Contiki web browser",
"www.prg",
www_process,
&www_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char wwwicon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon www_icon =
{CTK_ICON("Web browser", wwwicon_bitmap, wwwicon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(www_dsc,
"The Contiki web browser",
"www.prg",
www_process,
&www_icon);
/*-----------------------------------------------------------------------------------*/

View file

@ -29,19 +29,12 @@
*
* This file is part of the Contiki desktop environment
*
* $Id: webserver-dsc.c,v 1.2 2007/08/30 14:39:18 matsutsuka Exp $
* $Id: webserver-dsc.c,v 1.3 2007/09/06 01:36:12 matsutsuka Exp $
*
*/
#include "sys/dsc.h"
extern static struct ctk_icon webserver_icon;
/*-----------------------------------------------------------------------------------*/
DSC(webserver_dsc,
"The Contiki web server",
"webserver.prg",
webserver_process,
&webserver_icon);
/*-----------------------------------------------------------------------------------*/
#if CTK_CONF_ICON_BITMAPS
static unsigned char webservericon_bitmap[3*3*8] = {
@ -72,3 +65,9 @@ static struct ctk_icon webserver_icon =
{CTK_ICON("Web server", webservericon_bitmap, webservericon_textmap)};
#endif /* CTK_CONF_ICONS */
/*-----------------------------------------------------------------------------------*/
DSC(webserver_dsc,
"The Contiki web server",
"webserver.prg",
webserver_process,
&webserver_icon);
/*-----------------------------------------------------------------------------------*/