home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
wp_dtp
/
xdme1821.lha
/
XDME
/
amiga.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-23
|
2KB
|
139 lines
/******************************************************************************
MODUL
amiga.c
DESCRIPTION
NOTES
BUGS
TODO
EXAMPLES
SEE ALSO
INDEX
HISTORY
10. Oct 1992 ada created
******************************************************************************/
/**************************************
Includes
**************************************/
#include <defs.h>
/**************************************
Globale Variable
**************************************/
/**************************************
Interne Defines & Strukturen
**************************************/
/**************************************
Interne Variable
**************************************/
/**************************************
Interne Prototypes
**************************************/
Prototype void set_pubscreen (void);
/*****************************************************************************
NAME
set_pubscreen
PARAMETER
void
RESULT
RETURN
void
DESCRIPTION
Sets the name for the pubscreen XDME should open its windows on.
NOTES
BUGS
This is only a dummy (Sorry).
EXAMPLES
SEE ALSO
INTERNALS
HISTORY
10. Oct 1992 ada created
******************************************************************************/
void set_pubscreen (void)
{
static char * name = NULL;
/* If there is already a name, free it first */
if (name)
{
free (name);
name = NULL;
}
/* If there is a new name, get it */
if (av[1][0])
{
/* Make a copy of the name */
if (name = strdup (av[1]))
{
/* always set the new name. If we couldn't get memory,
name = NULL and the feature is disabled. (the old name
is lost !) */
if (XDMEArgs.publicscreenname)
free (XDMEArgs.publicscreenname);
XDMEArgs.publicscreenname = name;
/* give user a hint what we did */
if (name)
{
sprintf (tmp_buffer, "Set PubScreen to `%s'", name);
title (tmp_buffer);
} else
warn ("PUBSCREEN: out of memory !");
}
} else
{
/* Disable PubScreens */
if (XDMEArgs.publicscreenname)
free (XDMEArgs.publicscreenname);
XDMEArgs.publicscreenname = NULL;
title ("turned PubScreen OFF");
}
} /* set_pubscreen */
/******************************************************************************
***** ENDE amiga.c
******************************************************************************/