aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindings
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-28 16:10:43 +0900
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-01-28 16:15:09 +0900
commit5f1b448323338c85479d554e89123b0277a2fb85 (patch)
treeac8c40501806671b7af827609ec56ab5833f283f /src/bindings
parentefl_ui_list_view_seg_array: remove seg_array from Elementary.h (diff)
downloadefl-5f1b448323338c85479d554e89123b0277a2fb85.tar.gz
eo: Replace ptr(Eina.Strbuf) with plain strbuf.
Summary: Also fix CXX compilation after this change. Reviewers: cedric, felipealmeida Reviewed By: felipealmeida Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7792
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/cxx/eo_cxx/eo_cxx_interop.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
index 019a417d14..c0ed323c27 100644
--- a/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
+++ b/src/bindings/cxx/eo_cxx/eo_cxx_interop.hh
@@ -34,6 +34,10 @@ template <>
struct in_traits<eina::stringshare> { typedef eina::stringshare type; };
template <>
struct in_traits<eina::stringshare const> { typedef eina::stringshare const type; };
+template <>
+struct in_traits<efl::eina::strbuf> { typedef efl::eina::strbuf type; };
+template <>
+struct in_traits<efl::eina::strbuf const> { typedef efl::eina::strbuf const type; };
template <typename T>
struct in_traits<T&> { typedef T& type; };
template <typename T>
@@ -531,6 +535,10 @@ inline const char* convert_to_c_impl(efl::eina::stringshare x, tag<const char*,
{
return eina_stringshare_ref(x.c_str());
}
+inline Eina_Strbuf* convert_to_c_impl(efl::eina::strbuf& x, tag<Eina_Strbuf*, efl::eina::strbuf, false>)
+{
+ return x.native_handle();
+}
template <typename T, typename U, typename Deleter>
T* convert_to_c_impl(std::unique_ptr<U, Deleter>& v, tag<T*, std::unique_ptr<U, Deleter>>)
{