1
0
mirror of https://github.com/deadw00d/AROS.git synced 2026-01-12 00:09:02 +00:00

Empty but compilable libarary. None of the functions have been implemented.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@6132 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
bergers
1999-08-14 04:52:35 +00:00
parent 2c79a30709
commit f93b20f0e6
11 changed files with 587 additions and 0 deletions

7
rom/workbench/.cvsignore Normal file
View File

@ -0,0 +1,7 @@
functions.[ch]
*functable.c
*endtag.c
libdefs.h
makefile
mmakefile
*.err

View File

@ -0,0 +1,64 @@
/*
(C) 1995-99 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include <exec/types.h>
#include <workbench/workbench.h>
#include <exec/ports.h>
#include <utility/tagitem.h>
#include <dos/dos.h>
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH7(struct AppIcon *, AddAppIconA,
/* SYNOPSIS */
AROS_LHA(ULONG , id , D0),
AROS_LHA(ULONG , userdata , D1),
AROS_LHA(APTR , text , A0),
AROS_LHA(struct MsgPort * , msgport , A1),
AROS_LHA(BPTR , lock , A2),
AROS_LHA(struct DiskObject * , diskobj , A3),
AROS_LHA(struct TagItem * , taglist , A4),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 10, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("AddAppIconA");
#warning TODO: Write Workbench/AddAppIconA
return NULL;
AROS_LIBFUNC_EXIT
} /* AddAppIconA */

View File

@ -0,0 +1,61 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include <exec/types.h>
#include <workbench/workbench.h>
#include <exec/ports.h>
#include <utility/tagitem.h>
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH5(struct AppMenuItem *, AddAppMenuItemA,
/* SYNOPSIS */
AROS_LHA(ULONG , id , D0),
AROS_LHA(ULONG , userdata , D1),
AROS_LHA(APTR , text , A0),
AROS_LHA(struct MsgPort * , msgport , A1),
AROS_LHA(struct TagItem * , taglist , A3),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 12, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("AddAppMenuItemA");
#warning TODO: Write Workbench/AddAppMenuItemA
return NULL;
AROS_LIBFUNC_EXIT
} /* AddAppMenuItemA */

View File

@ -0,0 +1,64 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include <exec/types.h>
#include <workbench/workbench.h>
#include <exec/ports.h>
#include <utility/tagitem.h>
#include <intuition/intuition.h>
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH5(struct AppWindow *, AddAppWindowA,
/* SYNOPSIS */
AROS_LHA(ULONG , id , D0),
AROS_LHA(ULONG , userdata , D1),
AROS_LHA(struct Window * , window , A0),
AROS_LHA(struct MsgPort * , msgport , A1),
AROS_LHA(struct TagItem * , taglist , A2),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 8, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("AddAppWindowA");
#warning TODO: Write Workbench/AddAppWindowA
return NULL;
AROS_LIBFUNC_EXIT
} /* AddAppWindowA */

6
rom/workbench/lib.conf Normal file
View File

@ -0,0 +1,6 @@
name workbench
basename Workbench
libbase WorkbenchBase
libbasetype WorkbenchBase
version 40.3
options rom

112
rom/workbench/mmakefile.src Normal file
View File

@ -0,0 +1,112 @@
# $Id$
include $(TOP)/config/make.cfg
# BEGIN_DESC{makefile}
# This is the mmakefile for workbench.library. Use it if you want to compile
# only this part of AROS.
# END_DESC{makefile}
# Sigh, this is needed because libtail.c uses <libdefs.h> not "libdefs.h"
USER_INCLUDES := -I.
# BEGIN_DESC{localmakevar}
# \item{LIBNAME} The lowercase name of the library (without the extension).
# This is used to help derive some filenames.
#
# \item{ULIBNAME} This also contains the library name, but with the correct
# case (the same as found in the library base name).
#
# \item{OSMODULE} The name of the file which is created when compiling to
# a target with module files. In this library it is expansion.library.
#
# \item{FILES} This is a list of all files (without the .c) that
# contain internal functions of the library. You do not need to include
# the library init, function-table or end files.
#
# \item{FUNCTIONS} This is a list of all the functions that make
# up the library. The mmakefile will strip all the files in
# this list for which a special CPU dependant version exists.
# This list is concatenated into the file functions.c before
# compilation for a speed boost.
# END_DESC{localmakevar}
OBJDIR := $(GENDIR)/$(CURDIR)
LIBNAME := workbench
ULIBNAME := Workbench
OSMODULE := workbench.library
FILES :=
FUNCTIONS := \
addappicona \
addappmenuitema \
addappwindowa \
removeappicon \
removeappmenuitem \
removeappwindow
# BEGIN_DESC{localmakevar}
# \item{DEPLIBS} List of extra libraries that you want included during
# the linking process. You should not include the paths in this
# list, as it will be added later. You do not need to include your
# own lib here. If your module will be linked again after creation
# to create a monolithic kernel file, you do not need to specify
# any libs here (as they will be added later). If you want the
# module to be separate (like AROSfA) you should specify the
# libraries.
# END_DESC{localmakevar}
ifeq ("$(FLAVOUR)","native")
DEPLIBS :=
else
DEPLIBS :=
endif
# BEGIN_DESC{localmakevar}
# This is where the machine dependant magic comes in. The directories under the
# $(TOP)/config subtree will create lists of files which they wish to be used.
# These lists are used to add files to the link, and to prevent the compilation
# of other files.
#
# We create versions of the file lists for use with creating the function
# table, which needs all of the files listed.
#
# We also set up the $(OBJDIR) variable, and do some test to see whether we
# are compiling a shared library.
# END_DESC{localmakevar}
ALL_FILES := $(FILES)
ALL_FUNCTIONS := $(FUNCTIONS)
PRE_FUNCS := $(FUNCTIONS)
%prepare_replace rom/workbench
%filter_replace FILES
%filter_replace FUNCTIONS
# Set up for shared library creation.
ifeq ("$(SHARED_WORKBENCH)","yes")
SPECIAL_CFLAGS := $(SPECIAL_CFLAGS) $(SHARED_CFLAGS)
endif
%prepare_shlib $(LIBNAME) $(SHARED_WORKBENCH)
# Uncomment NO_FUNCTABLE line if you don't want the function table made
# NO_FUNCTABLE := 1
%genromlib_f
#MM kernel-workbench-linklib : setup includes kernel-workbench-$(ARCH)-$(CPU)
kernel-workbench-linklib : show-flags $(LIB)
@$(NOP)
#MM kernel-workbench-module : setup includes kernel-workbench-$(ARCH)-$(CPU)
kernel-workbench-module : show-flags $(LIB) $(OSMODDIR)/$(OSMODULE)
@$(NOP)
#MM kernel-workbench-module-quick : kernel-workbench-$(ARCH)-$(CPU)
kernel-workbench-module-quick : show-flags $(LIB) $(OSMODDIR)/$(OSMODULE)
@$(NOP)
#MM clean setup
%asm_rule "$(ALL_FUNCTIONS) $(INIT_FILE) $(ALL_FILES) $(END_FILE)"
%ctoasm_q
%common
%include_deps $(foreach f, $(INIT_FILE) $(END_FILE) $(FILES) functions,$(OBJDIR)/$(f).d)

View File

@ -0,0 +1,52 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH1(BOOL , RemoveAppIcon,
/* SYNOPSIS */
AROS_LHA(struct AppIcon *, AppIcon, A0),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 11, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("RemoveAppIcon");
#warning TODO: Write Workbench/RemoveAppIcon
return FALSE;
AROS_LIBFUNC_EXIT
} /* RemoveAppIcon */

View File

@ -0,0 +1,55 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH1(BOOL , RemoveAppMenuItem,
/* SYNOPSIS */
AROS_LHA(struct AppMenuItem *, AppMenuItem, A0),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 13, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("RemoveAppMenuItem");
#warning TODO: Write Workbench/RemoveAppMenuItem
return FALSE;
AROS_LIBFUNC_EXIT
} /* RemoveAppMenuItem */

View File

@ -0,0 +1,56 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "workbench_intern.h"
/*****************************************************************************
NAME */
#include <proto/workbench.h>
AROS_LH1(BOOL , RemoveAppWindow,
/* SYNOPSIS */
AROS_LHA(struct AppWindow *, AppWindow, A0),
/* LOCATION */
struct WorkbenchBase *, WorkbenchBase, 9, Workbench)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
******************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct WorkbenchBase *, WorkbenchBase)
aros_print_not_implemented ("RemoveAppWindow");
#warning TODO: Write Workbench/RemoveAppWindow
return FALSE;
AROS_LIBFUNC_EXIT
} /* RemoveAppWindow */

View File

@ -0,0 +1,44 @@
/*
(C) 1995-96 AROS - The Amiga Research OS
$Id$
Desc: Init of workbench.library
Lang: english
*/
#define AROS_ALMOST_COMPATIBLE
#include "workbench_intern.h"
#include "libdefs.h"
#ifdef SysBase
# undef SysBase
#endif
#ifdef ExecBase
# undef ExecBase
#endif
/* Customize libheader.c */
#define LC_SYSBASE_FIELD(lib) (((struct LIBBASETYPEPTR)(lib))->wb_SysBase)
#define LC_SEGLIST_FIELD(lib) (((struct LIBBASETYPEPTR)(lib))->wb_SegList)
#define LC_RESIDENTNAME Workbench_resident
#define LC_RESIDENTFLAGS RTF_AUTOINIT|RTF_COLDSTART
#define LC_RESIDENTPRI -120
#define LC_LIBBASESIZE sizeof(struct LIBBASETYPE)
#define LC_LIBHEADERTYPEPTR struct LIBBASETYPEPTR
#define LC_LIB_FIELD(lib) (((struct LIBBASETYPEPTR)(lib))->LibNode)
#define LC_NO_OPENLIB
#define LC_NO_CLOSELIB
#define LC_NO_EXPUNGELIB
#define LC_STATIC_INITLIB
#include <libcore/libheader.c>
struct ExecBase * SysBase; /* global variable */
ULONG SAVEDS LC_BUILDNAME(L_InitLib) (LC_LIBHEADERTYPEPTR lh)
{
SysBase = lh->wb_SysBase;
return TRUE;
} /* L_InitLib */

View File

@ -0,0 +1,66 @@
/*
(C) 1995-97 AROS - The Amiga Research OS
$Id$
$Log$
Revision 1.1 1999/08/14 04:52:35 bergers
Empty but compilable libarary. None of the functions have been implemented.
Desc: Internal header file for workbench library
Lang: english
*/
#ifndef __WORKBENCH_INTERN_H__
#define __WORKBENCH_INTERN_H__
#ifndef EXEC_TYPES_H
# include <exec/types.h>
#endif
#ifndef EXEC_LIBRARIES_H
# include <exec/libraries.h>
#endif
#ifndef EXEC_EXECBASE_H
# include <exec/execbase.h>
#endif
#ifndef DOS_DOS_H
# include <dos/dos.h>
#endif
#ifndef INTUITION_INTUITION_H
# include <intuition/intuition.h>
#endif
#include <aros/debug.h>
/*
This is the WorkbenchBase structure. It is documented here because
it is completely private. Applications should treat it as a struct
Library, and use the workbench.library functions to get information.
*/
extern struct ExecBase * SysBase;
struct WorkbenchBase
{
struct Library LibNode;
BPTR wb_SegList;
struct ExecBase * wb_SysBase;
};
/*
* Defintion of internal structures.
*/
struct AppWindow
{
struct Window * aw_window; /* just to have something here... change!! */
};
struct AppIcon
{
};
struct AppMenuItem
{
};
#endif /* __WORKBENCH_INTERN_H__ */