Skip to content

Commit 7d6a6b1

Browse files
Added gciTsOopToChar
1 parent 2847468 commit 7d6a6b1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

GciLibrary.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
>>> gci.version()
99
'3.4.3 build gss64_3_4_x_branch-45183'
1010
11+
>>> gci.oopToChar(16668)
12+
65
13+
14+
>>> gci.oopToChar(16667)
15+
-1
16+
17+
"""
18+
19+
"""
1120
>>> try:
1221
... gci.login(netldi='gs64ldi99', stone='gs64stone4')
1322
... except GciException as ex:
@@ -131,6 +140,15 @@ def __init__(self, version='3.4.3', directory=''):
131140
self.gciTsVersion.restype = c_int
132141
self.gciTsVersion.argtypes = [c_char_p, c_size_t]
133142

143+
self.gciTsOopToChar = self.library.GciTsOopToChar
144+
self.gciTsOopToChar.restype = c_int
145+
self.gciTsOopToChar.argtypes = [OopType]
146+
147+
def oopToChar(self, oop) -> OopType:
148+
result = self.gciTsOopToChar(oop)
149+
# should check for -1
150+
return result
151+
134152
def is_session_valid(self, session) -> bool:
135153
return self.gciTsSessionIsRemote(session) == 1
136154

0 commit comments

Comments
 (0)