source: trunk/lang/java/jRpUtils.cc @ 1727

Last change on this file since 1727 was 1727, checked in by braffert, 14 years ago

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

File size: 912 bytes
Line 
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
16#include "jRpUtils.h"
17#include "rappture.h"
18
19// progress
20JNIEXPORT void JNICALL Java_rappture_Utils_jRpUtilsProgress
21  (JNIEnv *env, jclass cls, jint percent, jstring javaText){
22          const char* nativeText = env->GetStringUTFChars(javaText, 0);
23  Rappture::Utils::progress(percent, nativeText);
24  env->ReleaseStringUTFChars(javaText, nativeText);
25  return;
26}
27
Note: See TracBrowser for help on using the repository browser.