24 #ifndef LVTK_RESIZE_PORT_HPP 25 #define LVTK_RESIZE_PORT_HPP 27 #include <lv2/lv2plug.in/ns/ext/resize-port/resize-port.h> 29 #include <lvtk/private/types.hpp> 46 template<
bool Required = true>
49 template<
class Derived>
50 struct I : Extension<Required>
52 I() : p_resize_port_resize(NULL) { }
58 hmap[LV2_RESIZE_PORT__resize] =
64 handle_feature(LV2_Handle instance,
FeatureData data)
66 Derived* derived =
reinterpret_cast<Derived*
>(instance);
69 mixin->p_resize_port_resize =
70 reinterpret_cast<LV2_Resize_Port_Resize*
>(data);
81 std::clog <<
" [LV2::ResizePort] Validation " 82 << (this->m_ok ?
"succeeded" :
"failed")
106 if (0 == p_resize_port_resize)
109 LV2_Resize_Port_Feature_Data data = p_resize_port_resize->data;
110 return (ResizePortStatus) p_resize_port_resize->resize (data, index, size);
114 LV2_Resize_Port_Resize * p_resize_port_resize;
ResizePortStatus resize(uint32_t index, size_t size)
Definition: resize_port.hpp:104
Definition: resize_port.hpp:37
void * FeatureData
Definition: feature.hpp:47
Definition: resize_port.hpp:36
Definition: feature.hpp:34
Definition: resize_port.hpp:50
Definition: resize_port.hpp:38
ResizePortStatus
Definition: resize_port.hpp:34
Definition: resize_port.hpp:47
map< string, FeatureHandler > FeatureHandlerMap
Definition: feature.hpp:57