2014-05-02 15:55:51 -07:00
|
|
|
|
|
|
|
#ifndef EOLIAN_CXX_LIB_HH
|
|
|
|
#define EOLIAN_CXX_LIB_HH
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
2014-06-30 11:32:52 -07:00
|
|
|
#include <Eolian.h>
|
2014-05-02 15:55:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace efl { namespace eolian {
|
|
|
|
|
|
|
|
struct eolian_init
|
|
|
|
{
|
|
|
|
eolian_init()
|
|
|
|
{
|
|
|
|
::eolian_init();
|
|
|
|
}
|
|
|
|
~eolian_init()
|
|
|
|
{
|
|
|
|
::eolian_shutdown();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-12-06 16:03:55 -08:00
|
|
|
struct eolian_state
|
|
|
|
{
|
2018-02-27 04:00:36 -08:00
|
|
|
Eolian_State *value;
|
2017-12-06 16:03:55 -08:00
|
|
|
eolian_state()
|
|
|
|
{
|
2018-02-27 04:00:36 -08:00
|
|
|
value = ::eolian_state_new();
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
~eolian_state()
|
|
|
|
{
|
2018-02-27 04:00:36 -08:00
|
|
|
::eolian_state_free(value);
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
inline Eolian_Unit const* as_unit() const
|
|
|
|
{
|
|
|
|
return (Eolian_Unit const*)value;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
} }
|
|
|
|
|
|
|
|
#endif // EOLIAN_CXX_LIB_HH
|