Commit 49c151ce authored by Brice Videau's avatar Brice Videau
Browse files

Added namespace prefix to avoid conflicts.

parent 6c4eeedc
......@@ -79,7 +79,7 @@ EOF
}
end
else
fields.push 's << "ze_result: #{ZE::Result.from_native(defi["ze_result"], nil)}"'
fields.push 's << "ze_result: #{ZE::ZEResult.from_native(defi["ze_result"], nil)}"'
fields += c.meta_parameters.select { |m| m.kind_of?(Out) }.collect { |m|
meta_parameter_lambda.call(m, :stop)
}
......
......@@ -385,7 +385,7 @@ $all_types.each { |t|
}
puts <<EOF
class TypedValue
class ZETypedValue
def to_s
case self[:type]
when :ZET_VALUE_TYPE_UINT32
......
......@@ -23,8 +23,10 @@ $all_types.each { |t|
}
def to_class_name(name)
mod = to_name_space(name)
n = name.gsub(/_t\z/, "").gsub(/\Azet?_/, "").split("_").collect(&:capitalize).join
n.gsub("Uuid","UUID").gsub("Dditable", "DDITable").gsub(/\AFp/, "FP").gsub("Ipc", "IPC").gsub("Api","API").gsub("P2p", "P2P")
mod << n
end
def to_ffi_name(name)
......@@ -32,7 +34,7 @@ def to_ffi_name(name)
end
def to_name_space(name)
name.match(/\A(zet?)_/)[0].upcase
name.match(/\A(zet?)_/)[1].upcase
end
$all_types.each { |t|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment