|
From: | Cyril ADRIAN |
Subject: | Re: [Liberty-eiffel] Question about plugins |
Date: | Thu, 17 Dec 2015 18:30:32 +0100 |
Hi all,
I need call a c function with char arguments. So I need convert STRING
object into chars. To do this I'm using two features, like these:
feature {}
message (title: STRING; text: STRING)
do
int_message (title.to_external, text.to_external)
end
int_message (title: POINTER; text: POINTER)
external "plug_in"
alias "{
location: "."
module_name: "my_plugin"
feature_name: "c_function"
}"
end
end
My question is: Is this the appropriate way? Or there is a more
easy/recommended way?
Thanks
Germán
[Prev in Thread] | Current Thread | [Next in Thread] |