@@ -99,19 +99,19 @@ def call_function(func_symbol, args, client)
99
99
# ["DWORD","uType","in"],
100
100
# ])
101
101
#
102
- # Use +windows_name + when the actual windows name is different from the
102
+ # Use +remote_name + when the actual library name is different from the
103
103
# ruby variable. You might need to do this for example when the actual
104
104
# func name is myFunc@4 or when you want to create an alternative version
105
105
# of an existing function.
106
106
#
107
107
# When the new function is called it will return a list containing the
108
108
# return value and all inout params. See #call_function.
109
109
#
110
- def add_function ( name , return_type , params , windows_name = nil , calling_conv = "stdcall" )
111
- if windows_name == nil
112
- windows_name = name
110
+ def add_function ( name , return_type , params , remote_name = nil , calling_conv = "stdcall" )
111
+ if remote_name == nil
112
+ remote_name = name
113
113
end
114
- @functions [ name ] = DLLFunction . new ( return_type , params , windows_name , calling_conv )
114
+ @functions [ name ] = DLLFunction . new ( return_type , params , remote_name , calling_conv )
115
115
end
116
116
117
117
private
@@ -125,8 +125,6 @@ def process_function_call(function, args, client)
125
125
native = 'V'
126
126
end
127
127
128
- #puts "process_function_call(function.windows_name,#{PP.pp(args, "")})"
129
-
130
128
# We transmit the immediate stack and three heap-buffers:
131
129
# in, inout and out. The reason behind the separation is bandwidth.
132
130
# We don't want to transmit uninitialized data in or no-longer-needed data out.
@@ -261,8 +259,8 @@ def process_function_call(function, args, client)
261
259
request . add_tlv ( TLV_TYPE_RAILGUN_BUFFERBLOB_IN , in_only_buffer )
262
260
request . add_tlv ( TLV_TYPE_RAILGUN_BUFFERBLOB_INOUT , inout_buffer )
263
261
264
- request . add_tlv ( TLV_TYPE_RAILGUN_DLLNAME , @dll_path )
265
- request . add_tlv ( TLV_TYPE_RAILGUN_FUNCNAME , function . windows_name )
262
+ request . add_tlv ( TLV_TYPE_RAILGUN_DLLNAME , @dll_path )
263
+ request . add_tlv ( TLV_TYPE_RAILGUN_FUNCNAME , function . remote_name )
266
264
request . add_tlv ( TLV_TYPE_RAILGUN_CALLCONV , function . calling_conv )
267
265
268
266
response = client . send_request ( request )
@@ -368,7 +366,7 @@ def process_function_call(function, args, client)
368
366
#=== START of proccess_function_call snapshot ===
369
367
# {
370
368
# :platform => '#{native == 'Q' ? 'x64/windows' : 'x86/windows'}',
371
- # :name => '#{function.windows_name }',
369
+ # :name => '#{function.remote_name }',
372
370
# :params => #{function.params},
373
371
# :return_type => '#{function.return_type}',
374
372
# :dll_name => '#{@dll_path}',
@@ -379,7 +377,7 @@ def process_function_call(function, args, client)
379
377
# TLV_TYPE_RAILGUN_BUFFERBLOB_IN => #{in_only_buffer.inspect},
380
378
# TLV_TYPE_RAILGUN_BUFFERBLOB_INOUT => #{inout_buffer.inspect},
381
379
# TLV_TYPE_RAILGUN_DLLNAME => '#{@dll_path}',
382
- # TLV_TYPE_RAILGUN_FUNCNAME => '#{function.windows_name }',
380
+ # TLV_TYPE_RAILGUN_FUNCNAME => '#{function.remote_name }',
383
381
# },
384
382
# :response_from_client => {
385
383
# TLV_TYPE_RAILGUN_BACK_BUFFERBLOB_INOUT => #{rec_inout_buffers.inspect},
0 commit comments