Skip to content

Commit b1781df

Browse files
pyansys-ci-botPProfizirafacanton
authored
Update generated code for DPF 261_daily on main (#2667)
Co-authored-by: PProfizi <[email protected]> Co-authored-by: Rafael Canton <[email protected]>
1 parent 8d518f6 commit b1781df

File tree

9 files changed

+62
-28
lines changed

9 files changed

+62
-28
lines changed

.github/workflows/pydpf-post.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
PACKAGE_NAME: ansys-dpf-post
153153
working-directory: pydpf-post/src
154154
if: inputs.test_docstrings == 'true'
155-
timeout-minutes: 10
155+
timeout-minutes: 12
156156
continue-on-error: true
157157

158158
- uses: mainmatter/continue-on-error-comment@v1

src/ansys/dpf/gate/generated/capi.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5086,13 +5086,9 @@ def load_api(path):
50865086
dll.FbsRef_new.restype = ctypes.c_void_p
50875087

50885088
if hasattr(dll, "FbsRef_getFromDB"):
5089-
dll.FbsRef_getFromDB.argtypes = (ctypes.c_size_t, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
5089+
dll.FbsRef_getFromDB.argtypes = (ctypes.c_void_p, ctypes.c_size_t, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
50905090
dll.FbsRef_getFromDB.restype = ctypes.c_void_p
50915091

5092-
if hasattr(dll, "FbsRef_getID"):
5093-
dll.FbsRef_getID.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
5094-
dll.FbsRef_getID.restype = ctypes.c_size_t
5095-
50965092
if hasattr(dll, "Any_getAs_FbsRef"):
50975093
dll.Any_getAs_FbsRef.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.c_void_p, ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
50985094
dll.Any_getAs_FbsRef.restype = None
@@ -5101,6 +5097,18 @@ def load_api(path):
51015097
dll.FbsRef_StartOrGetThreadServer.argtypes = (ctypes.c_bool, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
51025098
dll.FbsRef_StartOrGetThreadServer.restype = ctypes.c_void_p
51035099

5100+
if hasattr(dll, "Fbs_GetBytesBufferFromSlice"):
5101+
dll.Fbs_GetBytesBufferFromSlice.argtypes = (ctypes.c_void_p, ctypes.c_size_t, ctypes.POINTER(ctypes.c_size_t), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
5102+
dll.Fbs_GetBytesBufferFromSlice.restype = ctypes.c_void_p
5103+
5104+
if hasattr(dll, "Fbs_DeleteChannel"):
5105+
dll.Fbs_DeleteChannel.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
5106+
dll.Fbs_DeleteChannel.restype = None
5107+
5108+
if hasattr(dll, "Fbs_DeleteSlice"):
5109+
dll.Fbs_DeleteSlice.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
5110+
dll.Fbs_DeleteSlice.restype = None
5111+
51045112
if hasattr(dll, "FbsRef_new_on_client"):
51055113
dll.FbsRef_new_on_client.argtypes = (ctypes.c_void_p, ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.c_void_p, ctypes.c_size_t, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
51065114
dll.FbsRef_new_on_client.restype = ctypes.c_void_p

src/ansys/dpf/gate/generated/fbs_ref_abstract_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,27 @@ def fbs_ref_new(client, channel_address, req_slice, req_offset):
1616
raise NotImplementedError
1717

1818
@staticmethod
19-
def fbs_ref_get_from_db(id):
19+
def fbs_ref_get_from_db(ptr, size):
2020
raise NotImplementedError
2121

2222
@staticmethod
23-
def fbs_ref_get_id(obj):
23+
def any_get_as_fbs_ref(obj, client, channel_address, req_slice, req_offset):
2424
raise NotImplementedError
2525

2626
@staticmethod
27-
def any_get_as_fbs_ref(obj, client, channel_address, req_slice, req_offset):
27+
def fbs_ref_start_or_get_thread_server(get_existing, ip, port, address):
2828
raise NotImplementedError
2929

3030
@staticmethod
31-
def fbs_ref_start_or_get_thread_server(get_existing, ip, port, address):
31+
def fbs_get_bytes_buffer_from_slice(req_slice, req_offset, size_out):
32+
raise NotImplementedError
33+
34+
@staticmethod
35+
def fbs_delete_channel(client):
36+
raise NotImplementedError
37+
38+
@staticmethod
39+
def fbs_delete_slice(req_slice):
3240
raise NotImplementedError
3341

3442
@staticmethod

src/ansys/dpf/gate/generated/fbs_ref_capi.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,55 @@ def fbs_ref_new(client, channel_address, req_slice, req_offset):
2727
return res
2828

2929
@staticmethod
30-
def fbs_ref_get_from_db(id):
30+
def fbs_ref_get_from_db(ptr, size):
3131
errorSize = ctypes.c_int(0)
3232
sError = ctypes.c_wchar_p()
33-
res = capi.dll.FbsRef_getFromDB(id, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
33+
res = capi.dll.FbsRef_getFromDB(ptr, size, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
3434
if errorSize.value != 0:
3535
raise errors.DPFServerException(sError.value)
3636
return res
3737

3838
@staticmethod
39-
def fbs_ref_get_id(obj):
39+
def any_get_as_fbs_ref(obj, client, channel_address, req_slice, req_offset):
4040
errorSize = ctypes.c_int(0)
4141
sError = ctypes.c_wchar_p()
42-
res = capi.dll.FbsRef_getID(obj._internal_obj if obj is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
42+
res = capi.dll.Any_getAs_FbsRef(obj._internal_obj if obj is not None else None, client, utils.to_char_ptr(channel_address), req_slice, req_offset, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
4343
if errorSize.value != 0:
4444
raise errors.DPFServerException(sError.value)
4545
return res
4646

4747
@staticmethod
48-
def any_get_as_fbs_ref(obj, client, channel_address, req_slice, req_offset):
48+
def fbs_ref_start_or_get_thread_server(get_existing, ip, port, address):
4949
errorSize = ctypes.c_int(0)
5050
sError = ctypes.c_wchar_p()
51-
res = capi.dll.Any_getAs_FbsRef(obj._internal_obj if obj is not None else None, client, utils.to_char_ptr(channel_address), req_slice, req_offset, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
51+
res = capi.dll.FbsRef_StartOrGetThreadServer(get_existing, utils.to_char_ptr(ip), utils.to_int32(port), utils.to_char_ptr(address), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
5252
if errorSize.value != 0:
5353
raise errors.DPFServerException(sError.value)
5454
return res
5555

5656
@staticmethod
57-
def fbs_ref_start_or_get_thread_server(get_existing, ip, port, address):
57+
def fbs_get_bytes_buffer_from_slice(req_slice, req_offset, size_out):
5858
errorSize = ctypes.c_int(0)
5959
sError = ctypes.c_wchar_p()
60-
res = capi.dll.FbsRef_StartOrGetThreadServer(get_existing, utils.to_char_ptr(ip), utils.to_int32(port), utils.to_char_ptr(address), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
60+
res = capi.dll.Fbs_GetBytesBufferFromSlice(req_slice, req_offset, size_out, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
61+
if errorSize.value != 0:
62+
raise errors.DPFServerException(sError.value)
63+
return res
64+
65+
@staticmethod
66+
def fbs_delete_channel(client):
67+
errorSize = ctypes.c_int(0)
68+
sError = ctypes.c_wchar_p()
69+
res = capi.dll.Fbs_DeleteChannel(client, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
70+
if errorSize.value != 0:
71+
raise errors.DPFServerException(sError.value)
72+
return res
73+
74+
@staticmethod
75+
def fbs_delete_slice(req_slice):
76+
errorSize = ctypes.c_int(0)
77+
sError = ctypes.c_wchar_p()
78+
res = capi.dll.Fbs_DeleteSlice(req_slice, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
6179
if errorSize.value != 0:
6280
raise errors.DPFServerException(sError.value)
6381
return res
-8 KB
Binary file not shown.
2.5 KB
Binary file not shown.
-12.9 KB
Binary file not shown.
680 Bytes
Binary file not shown.

src/ansys/grpc/dpf/fbs_ref_pb2.py

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)