diff options
author | jbj <devnull@localhost> | 2001-05-13 19:58:25 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-05-13 19:58:25 +0000 |
commit | 2af040895b279eca8fb5a44240da7e42c8b4ac66 (patch) | |
tree | 1b74621cfd1f4531a39786c4b06a59bc0e92dbf7 /db/libdb_java | |
parent | 9b44f1b7168b70652f7fad2e0da6fdade4b965d7 (diff) | |
download | librpm-tizen-2af040895b279eca8fb5a44240da7e42c8b4ac66.tar.gz librpm-tizen-2af040895b279eca8fb5a44240da7e42c8b4ac66.tar.bz2 librpm-tizen-2af040895b279eca8fb5a44240da7e42c8b4ac66.zip |
Initial revision
CVS patchset: 4782
CVS date: 2001/05/13 19:58:25
Diffstat (limited to 'db/libdb_java')
-rw-r--r-- | db/libdb_java/com_sleepycat_db_DbUtil.h | 22 | ||||
-rw-r--r-- | db/libdb_java/java_DbUtil.c | 31 |
2 files changed, 53 insertions, 0 deletions
diff --git a/db/libdb_java/com_sleepycat_db_DbUtil.h b/db/libdb_java/com_sleepycat_db_DbUtil.h new file mode 100644 index 000000000..645b6f925 --- /dev/null +++ b/db/libdb_java/com_sleepycat_db_DbUtil.h @@ -0,0 +1,22 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ +#include <jni.h> +/* Header for class com_sleepycat_db_DbUtil */ + +#ifndef _Included_com_sleepycat_db_DbUtil +#define _Included_com_sleepycat_db_DbUtil +#ifdef __cplusplus +extern "C" { +#endif +/* Inaccessible static: big_endian */ +/* + * Class: com_sleepycat_db_DbUtil + * Method: am_big_endian + * Signature: ()Z + */ +JNIEXPORT jboolean JNICALL Java_com_sleepycat_db_DbUtil_am_1big_1endian + (JNIEnv *, jclass); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/db/libdb_java/java_DbUtil.c b/db/libdb_java/java_DbUtil.c new file mode 100644 index 000000000..95e6f2e04 --- /dev/null +++ b/db/libdb_java/java_DbUtil.c @@ -0,0 +1,31 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2001 + * Sleepycat Software. All rights reserved. + */ +#include "db_config.h" + +#ifndef lint +static const char revid[] = "Id: java_DbUtil.c,v 1.3 2001/05/08 19:00:31 bostic Exp "; +#endif /* not lint */ + +#include <jni.h> + +#include "db_int.h" +#include "java_util.h" +#include "com_sleepycat_db_DbUtil.h" + +JNIEXPORT jboolean JNICALL +Java_com_sleepycat_db_DbUtil_am_1big_1endian (JNIEnv *jnienv, + jclass jthis_class) +{ + COMPQUIET(jnienv, NULL); + COMPQUIET(jthis_class, NULL); + +#if defined(WORDS_BIGENDIAN) + return (JNI_TRUE); +#else + return (JNI_FALSE); +#endif +} |