/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdio.h>
#include <dlfcn.h>
#include <string.h>
#include <stdlib.h>
#include <jni.h>
#include <jni_util.h>
#include <jvm.h>
#include "gdefs.h"
#include "awt_Plugin.h"
#ifdef DEBUG
#define VERBOSE_AWT_DEBUG
#endif
/* Initialize the Java VM instance variable when the library is
first loaded */
if (graphicsEnvClass == NULL) {
return JNI_TRUE;
}
if (headlessFn == NULL) {
return JNI_TRUE;
}
}
return isHeadless;
}
{
char *p, *tk = 0;
void *v;
char *envvar;
/* Avoid several loading attempts */
return JNI_VERSION_1_2;
}
/* Get address of this library and the directory containing it. */
/*
* 1. Set the "sun.font.fontmanager" system property,
* 2. Choose the library image name.
*/
/* Check if toolkit is specified in env variable */
#ifdef MACOSX
#endif
#ifdef MACOSX
} else {
}
#endif
}
/* Calculate library name to load */
#ifndef MACOSX
if (AWTIsHeadless()) {
} else if (tk) {
#endif
#ifndef MACOSX
}
#endif
#ifdef MACOSX
strcat(p, ".dylib");
#else
strcat(p, ".so");
#endif
if (tk) {
}
return JNI_VERSION_1_2;
}
{
}
/*
* This entry point must remain in libawt.so as part of a contract
* with the CDE variant of Java Media Framework. (sdtjmplay)
* Reflect this call over to the correct libmawt.so.
*/
{
/* type of the old backdoor function */
return;
}
if (XsessionWMcommand == NULL)
return;
}
/*
* This entry point must remain in libawt.so as part of a contract
* with the CDE variant of Java Media Framework. (sdtjmplay)
* Reflect this call over to the correct libmawt.so.
*/
{
return;
}
if (XsessionWMcommand == NULL)
return;
}
{ \
return; \
} \
return; \
} \
}
{ \
return NULL; \
} \
return NULL; \
} \
}
/*
* These entry point must remain in libawt.so ***for Java Plugin ONLY***
* Reflect this call over to the correct libmawt.so.
*/
/*
* TODO: implement for LWCToolkit, MacOSX
*/