~vlad-lesin/percona-server/mysql-5.0.33-original

« back to all changes in this revision

Viewing changes to bdb/libdb_java/java_DbLsn.c

  • Committer: Vlad Lesin
  • Date: 2012-07-31 09:21:34 UTC
  • Revision ID: vladislav.lesin@percona.com-20120731092134-zfodx022b7992wsi
VirginĀ 5.0.33

Show diffs side-by-side

added added

removed removed

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