java_DbLsn.c
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /*-
  2.  * See the file LICENSE for redistribution information.
  3.  *
  4.  * Copyright (c) 1997, 1998, 1999, 2000
  5.  * Sleepycat Software.  All rights reserved.
  6.  */
  7. #include "db_config.h"
  8. #ifndef lint
  9. static const char revid[] = "$Id: java_DbLsn.c,v 11.5 2000/11/30 00:58:39 ubell Exp $";
  10. #endif /* not lint */
  11. #include <jni.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #include <stdio.h>              /* needed for FILENAME_MAX */
  15. #include "db.h"
  16. #include "db_int.h"
  17. #include "java_util.h"
  18. #include "com_sleepycat_db_DbLsn.h"
  19. JNIEXPORT void JNICALL Java_com_sleepycat_db_DbLsn_init_1lsn
  20.   (JNIEnv *jnienv, /*DbLsn*/ jobject jthis)
  21. {
  22. /* Note: the DB_LSN object stored in the private_dbobj_
  23.  * is allocated in get_DbLsn().
  24.  */
  25. COMPQUIET(jnienv, NULL);
  26. COMPQUIET(jthis, NULL);
  27. }
  28. JNIEXPORT void JNICALL Java_com_sleepycat_db_DbLsn_finalize
  29.   (JNIEnv *jnienv, jobject jthis)
  30. {
  31. DB_LSN *dblsn;
  32. dblsn = get_DB_LSN(jnienv, jthis);
  33. if (dblsn) {
  34. free(dblsn);
  35. }
  36. }