Revision: 41329
http://brlcad.svn.sourceforge.net/brlcad/?rev=41329&view=rev
Author: brlcad
Date: 2010-11-12 12:15:32 +0000 (Fri, 12 Nov 2010)
Log Message:
-----------
update to rename calls of bu_vlb_getBuffer() and bu_vlb_getBufferLength() to
bu_vlb_addr() and bu_vlb_buflen() respectively.
Modified Paths:
--------------
brlcad/trunk/src/librtserver/rtserver.c
brlcad/trunk/src/librtserver/rtserverTest.c
Modified: brlcad/trunk/src/librtserver/rtserver.c
===================================================================
--- brlcad/trunk/src/librtserver/rtserver.c 2010-11-12 12:11:57 UTC (rev
41328)
+++ brlcad/trunk/src/librtserver/rtserver.c 2010-11-12 12:15:32 UTC (rev
41329)
@@ -763,7 +763,7 @@
int numRays = 0;
int rayNum;
- c = bu_vlb_getBuffer(vlb);
+ c = bu_vlb_addr(vlb);
numRays = BU_GLONG(c);
bu_log( "number of rays: %d\n", numRays);
@@ -1350,7 +1350,7 @@
rt_shootray(ap);
/* create the java byte array to be returned */
- len = bu_vlb_getBufferLength(vlb);
+ len = bu_vlb_buflen(vlb);
array = (*env)->NewByteArray( env, len );
if ( (*env)->ExceptionOccurred(env) ) {
fprintf( stderr, "Exception thrown while creating byte array\n" );
@@ -1358,7 +1358,7 @@
FINISH_APPLICATION(ap);
return (jobject)NULL;
}
- (*env)->SetByteArrayRegion(env, array, 0, len, (jbyte
*)bu_vlb_getBuffer(vlb) );
+ (*env)->SetByteArrayRegion(env, array, 0, len, (jbyte *)bu_vlb_addr(vlb) );
if ( (*env)->ExceptionOccurred(env) ) {
fprintf( stderr, "Exception thrown while setting byte array contents\n"
);
(*env)->ExceptionDescribe(env);
@@ -1566,7 +1566,7 @@
}
/* create the java byte array to be returned */
- len = bu_vlb_getBufferLength(vlb);
+ len = bu_vlb_buflen(vlb);
array = (*env)->NewByteArray( env, len );
if ( (*env)->ExceptionOccurred(env) ) {
fprintf( stderr, "Exception thrown while creating byte array\n" );
@@ -1574,7 +1574,7 @@
FINISH_APPLICATION(ap);
return (jobject)NULL;
}
- (*env)->SetByteArrayRegion(env, array, 0, len, (jbyte
*)bu_vlb_getBuffer(vlb) );
+ (*env)->SetByteArrayRegion(env, array, 0, len, (jbyte *)bu_vlb_addr(vlb) );
if ( (*env)->ExceptionOccurred(env) ) {
fprintf( stderr, "Exception thrown while setting byte array contents\n"
);
(*env)->ExceptionDescribe(env);
Modified: brlcad/trunk/src/librtserver/rtserverTest.c
===================================================================
--- brlcad/trunk/src/librtserver/rtserverTest.c 2010-11-12 12:11:57 UTC (rev
41328)
+++ brlcad/trunk/src/librtserver/rtserverTest.c 2010-11-12 12:15:32 UTC (rev
41329)
@@ -80,7 +80,7 @@
int rayNum;
int hitCount = 0;
- c = bu_vlb_getBuffer(vlb);
+ c = bu_vlb_addr(vlb);
numRays = BU_GLONG(c);
c += SIZEOF_NETWORK_LONG;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits