Ignore:
Timestamp:
May 20, 2010 2:13:17 PM (12 years ago)
Author:
braffert
Message:

Last fix for building java bindings. Also added license info and more comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/java/jRpUtils.cc

    r1722 r1727  
     1/*
     2 * ======================================================================
     3 *  AUTHOR:  Ben Rafferty, Purdue University
     4 *  Copyright (c) 2010  Purdue Research Foundation
     5 *
     6 *  See the file "license.terms" for information on usage and
     7 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
     8 * ======================================================================
     9 */
     10
     11/*
     12 * This file defines the native functions which are called by the java Utils
     13 * class methods, and in turn call the corresponding rappture RpUtils methods.
     14 */
     15
    116#include "jRpUtils.h"
    217#include "rappture.h"
    318
     19// progress
    420JNIEXPORT void JNICALL Java_rappture_Utils_jRpUtilsProgress
    521  (JNIEnv *env, jclass cls, jint percent, jstring javaText){
    6   const char* nativeText = env->GetStringUTFChars(javaText, 0);
     22          const char* nativeText = env->GetStringUTFChars(javaText, 0);
    723  Rappture::Utils::progress(percent, nativeText);
    824  env->ReleaseStringUTFChars(javaText, nativeText);
Note: See TracChangeset for help on using the changeset viewer.