summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-23 17:15:00 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-23 17:15:00 +0100
commit315d5de11d48011dce01d3c87d6a0b4652c7dd58 (patch)
tree884df3c368161f64f6c1f1c08d1dd0b8e3d1d150 /src/bin/eolian_cxx
parent68282f8c42c6e0c3d66cf298e1a763a0d12b81cf (diff)
eolian: use just filename (not path) for eolian_class_get_by_file
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index ce2c4f2b09..a2520d34bd 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -30,7 +30,10 @@ ctor_t const ctor = {};
30inline const Eolian_Class* 30inline const Eolian_Class*
31class_from_file(std::string const& file) 31class_from_file(std::string const& file)
32{ 32{
33 return ::eolian_class_get_by_file(file.c_str()); 33 char *bn = eina_file_path_basename(file.c_str(), NULL);
34 const Eolian_Class *cl = ::eolian_class_get_by_file(bn);
35 free(bn);
36 return cl;
34} 37}
35 38
36inline std::string 39inline std::string