[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Liberty-eiffel] Question about plugins
From: |
Germán Arias |
Subject: |
[Liberty-eiffel] Question about plugins |
Date: |
Thu, 17 Dec 2015 01:04:44 -0600 |
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
- [Liberty-eiffel] Question about plugins,
Germán Arias <=