diff options
Diffstat (limited to 'tools/os2')
-rw-r--r-- | tools/os2/inc/dll.hxx | 43 | ||||
-rw-r--r-- | tools/os2/source/dll/makefile.mk | 50 | ||||
-rw-r--r-- | tools/os2/source/dll/toolsdll.cxx | 52 |
3 files changed, 145 insertions, 0 deletions
diff --git a/tools/os2/inc/dll.hxx b/tools/os2/inc/dll.hxx new file mode 100644 index 000000000000..1f8858e89d63 --- /dev/null +++ b/tools/os2/inc/dll.hxx @@ -0,0 +1,43 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: dll.hxx,v $ + * + * $Revision: 1.3 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _DLL_HXX +#define _DLL_HXX + +// MultiThread-Sicherung aktivieren +void EnterMultiThread( int bEnter ); +int IsMultiThread(); + +// Um Resourcen wieder freizugeben +//YD void ImpDeInitOS2Tools(); +inline void ImpDeInitOS2Tools() {} + +#endif diff --git a/tools/os2/source/dll/makefile.mk b/tools/os2/source/dll/makefile.mk new file mode 100644 index 000000000000..78d4a729c234 --- /dev/null +++ b/tools/os2/source/dll/makefile.mk @@ -0,0 +1,50 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2008 by Sun Microsystems, Inc. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.3 $ +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org 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 Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/.. + +PRJNAME=TOOLS +TARGET=dll + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +# --- Files -------------------------------------------------------- + +CXXFILES= toolsdll.cxx + +SLOFILES= $(SLO)$/toolsdll.obj + +OBJFILES= $(OBJ)$/toolsdll.obj +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk diff --git a/tools/os2/source/dll/toolsdll.cxx b/tools/os2/source/dll/toolsdll.cxx new file mode 100644 index 000000000000..4c8650a2737c --- /dev/null +++ b/tools/os2/source/dll/toolsdll.cxx @@ -0,0 +1,52 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: toolsdll.cxx,v $ + * + * $Revision: 1.3 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SHL_HXX +#include <tools/shl.hxx> +#endif + +#ifndef _DLL_HXX +#include <dll.hxx> +#endif + +// ======================================================================= + +static void* aAppData[SHL_COUNT]; + +// ----------------------------------------------------------------------- + +void** GetAppData( USHORT nSharedLib ) +{ + return &(aAppData[nSharedLib]); +} + +// ======================================================================= + |