Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0fee4efd
Commit
0fee4efd
authored
Feb 25, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Node index in getNodeObject
parent
08e79f1a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
9 deletions
+17
-9
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.c
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.c
+4
-2
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.h
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.h
+1
-1
java/jpwr/rt/src/Gdh.java
java/jpwr/rt/src/Gdh.java
+1
-1
java/jpwr/rt/src/GdhServer.java
java/jpwr/rt/src/GdhServer.java
+3
-1
java/jpwr/rt_client/src/Gdh.java
java/jpwr/rt_client/src/Gdh.java
+2
-1
src/jpwr/rt/src/Gdh.java
src/jpwr/rt/src/Gdh.java
+1
-1
src/jpwr/rt/src/GdhServer.java
src/jpwr/rt/src/GdhServer.java
+3
-1
src/jpwr/rt_client/src/Gdh.java
src/jpwr/rt_client/src/Gdh.java
+2
-1
No files found.
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.c
View file @
0fee4efd
...
...
@@ -1183,7 +1183,7 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getObjectInfoObjid
}
JNIEXPORT
jobject
JNICALL
Java_jpwr_rt_Gdh_getNodeObject
(
JNIEnv
*
env
,
jclass
obj
)
(
JNIEnv
*
env
,
jclass
obj
,
jint
jnix
)
{
int
sts
;
jclass
PwrtObjid_id
;
...
...
@@ -1195,6 +1195,7 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getNodeObject
jint
oix
,
vid
;
jobject
return_obj
;
jint
jsts
;
int
nix
;
cdhrObjid_id
=
(
*
env
)
->
FindClass
(
env
,
"jpwr/rt/CdhrObjid"
);
cdhrObjid_cid
=
(
*
env
)
->
GetMethodID
(
env
,
cdhrObjid_id
,
...
...
@@ -1204,7 +1205,8 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getNodeObject
PwrtObjid_cid
=
(
*
env
)
->
GetMethodID
(
env
,
PwrtObjid_id
,
"<init>"
,
"(II)V"
);
sts
=
gdh_GetNodeObject
(
0
,
&
objid
);
nix
=
jnix
;
sts
=
gdh_GetNodeObject
(
nix
,
&
objid
);
if
(
ODD
(
sts
))
{
oix
=
(
jint
)
objid
.
oix
;
...
...
java/exe/jpwr_rt_gdh/src/jpwr_rt_gdh.h
View file @
0fee4efd
...
...
@@ -266,7 +266,7 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_classIdToObjid
* Signature: ()Ljpwr/rt/CdhrObjid;
*/
JNIEXPORT
jobject
JNICALL
Java_jpwr_rt_Gdh_getNodeObject
(
JNIEnv
*
,
jobject
);
(
JNIEnv
*
,
jobject
,
jint
);
/*
* Class: jpwr_rt_Gdh
...
...
java/jpwr/rt/src/Gdh.java
View file @
0fee4efd
...
...
@@ -296,7 +296,7 @@ public class Gdh {
public
native
CdhrClassId
getObjectClass
(
PwrtObjid
objid
);
public
native
CdhrObjid
getClassList
(
int
classid
);
public
native
CdhrObjid
classIdToObjid
(
int
classid
);
public
native
CdhrObjid
getNodeObject
();
public
native
CdhrObjid
getNodeObject
(
int
nodeIdx
);
public
native
GdhrGetAttributeChar
getAttributeChar
(
String
attributeName
);
public
native
CdhrObjAttr
getClassAttribute
(
int
classid
,
PwrtObjid
objid_obj
);
public
static
native
String
translateFilename
(
String
filename
);
...
...
java/jpwr/rt/src/GdhServer.java
View file @
0fee4efd
...
...
@@ -1201,7 +1201,9 @@ public class GdhServer
case
GET_NODE_OBJECT:
try
{
CdhrObjid
ret
=
gdh
.
getNodeObject
();
int
nix
=
in
.
readInt
();
CdhrObjid
ret
=
gdh
.
getNodeObject
(
nix
);
out
.
writeInt
(
ret
.
getSts
());
out
.
flush
();
if
(
ret
.
oddSts
())
...
...
java/jpwr/rt_client/src/Gdh.java
View file @
0fee4efd
...
...
@@ -1345,11 +1345,12 @@ public class Gdh
}
public
CdhrObjid
getNodeObject
()
public
CdhrObjid
getNodeObject
(
int
nodeIdx
)
{
try
{
out
.
writeInt
(
GET_NODE_OBJECT
);
out
.
writeInt
(
nodeIdx
);
out
.
flush
();
int
sts
=
in
.
readInt
();
if
(
sts
%
2
==
0
)
...
...
src/jpwr/rt/src/Gdh.java
View file @
0fee4efd
...
...
@@ -296,7 +296,7 @@ public class Gdh {
public
native
CdhrClassId
getObjectClass
(
PwrtObjid
objid
);
public
native
CdhrObjid
getClassList
(
int
classid
);
public
native
CdhrObjid
classIdToObjid
(
int
classid
);
public
native
CdhrObjid
getNodeObject
();
public
native
CdhrObjid
getNodeObject
(
int
nodeIdx
);
public
native
GdhrGetAttributeChar
getAttributeChar
(
String
attributeName
);
public
native
CdhrObjAttr
getClassAttribute
(
int
classid
,
PwrtObjid
objid_obj
);
public
static
native
String
translateFilename
(
String
filename
);
...
...
src/jpwr/rt/src/GdhServer.java
View file @
0fee4efd
...
...
@@ -1201,7 +1201,9 @@ public class GdhServer
case
GET_NODE_OBJECT:
try
{
CdhrObjid
ret
=
gdh
.
getNodeObject
();
int
nix
=
in
.
readInt
();
CdhrObjid
ret
=
gdh
.
getNodeObject
(
nix
);
out
.
writeInt
(
ret
.
getSts
());
out
.
flush
();
if
(
ret
.
oddSts
())
...
...
src/jpwr/rt_client/src/Gdh.java
View file @
0fee4efd
...
...
@@ -1345,11 +1345,12 @@ public class Gdh
}
public
CdhrObjid
getNodeObject
()
public
CdhrObjid
getNodeObject
(
int
nodeIdx
)
{
try
{
out
.
writeInt
(
GET_NODE_OBJECT
);
out
.
writeInt
(
nodeIdx
);
out
.
flush
();
int
sts
=
in
.
readInt
();
if
(
sts
%
2
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment