--- /dev/null
+#include "DSWaylandBuffer.h"
+#include "DSWaylandBufferPrivate.h"
+
+namespace display_server
+{
+
+DSWaylandBufferPrivate::DSWaylandBufferPrivate(DSWaylandBuffer *p_ptr)
+ : DSObjectPrivate(p_ptr),
+ __p_ptr(p_ptr)
+{
+}
+
+DSWaylandBufferPrivate::~DSWaylandBufferPrivate()
+{
+}
+
+void DSWaylandBufferPrivate::buffer_bind_resource(Resource *resource)
+{
+}
+
+void DSWaylandBufferPrivate::buffer_destroy_resource(Resource *resource)
+{
+}
+
+DSWaylandBuffer::DSWaylandBuffer()
+ : DSObject(std::make_unique<DSWaylandBufferPrivate>(this))
+{
+}
+
+DSWaylandBuffer::~DSWaylandBuffer()
+{
+}
+
+void DSWaylandBuffer::sendRelease()
+{
+ DS_GET_PRIV(DSWaylandBuffer);
+
+ priv->send_release();
+}
+
+} /* namespace display_server */
--- /dev/null
+#ifndef _DS_WAYLAND_BUFFER_H_
+#define _DS_WAYLAND_BUFFER_H_
+
+#include <DSObject.h>
+#include <DSCore.h>
+
+namespace display_server
+{
+
+class DSWaylandBufferPrivate;
+
+class DSWaylandBuffer : public DSObject
+{
+DS_PIMPL_USE_PRIVATE(DSWaylandBuffer);
+public:
+ DSWaylandBuffer();
+ virtual ~DSWaylandBuffer();
+
+ void sendRelease();
+};
+
+} /* namespace display_server */
+
+#endif /* _DS_WAYLAND_BUFFER_H_ */
--- /dev/null
+#ifndef _DS_WAYLAND_BUFFER_PRIVATE_H_
+#define _DS_WAYLAND_BUFFER_PRIVATE_H_
+
+#include "dswayland-server-wayland.h"
+#include "DSWaylandBuffer.h"
+
+namespace display_server
+{
+
+class DSWaylandBufferPrivate : public DSObjectPrivate, public DSWaylandServer::wl_buffer
+{
+ DS_PIMPL_USE_PUBLIC(DSWaylandBuffer);
+public:
+ DSWaylandBufferPrivate() = delete;
+ DSWaylandBufferPrivate(DSWaylandBuffer *p_ptr);
+ ~DSWaylandBufferPrivate() override;
+
+protected:
+ void buffer_bind_resource(Resource *resource) override;
+ void buffer_destroy_resource(Resource *resource) override;
+
+private:
+
+};
+
+} /* namespace display_server */
+
+#endif /* _DS_WAYLAND_BUFFER_PRIVATE_H_ */
'DSWaylandServer/DSWaylandTouchPrivate.h',
'DSWaylandServer/DSWaylandTouch.h',
'DSWaylandServer/DSWaylandTouch.cpp',
+ 'DSWaylandServer/DSWaylandBufferPrivate.h',
+ 'DSWaylandServer/DSWaylandBuffer.h',
+ 'DSWaylandServer/DSWaylandBuffer.cpp',
]
libds_srcs += libds_wayland_srcs
--- /dev/null
+#include "libds-tests.h"
+#include "DSWaylandBuffer.h"
+
+using namespace display_server;
+
+class DSWaylandBufferTest : public ::testing::Test
+{
+public:
+ void SetUp(void) override
+ {}
+ void TearDown(void) override
+ {}
+};
+
+TEST_F(DSWaylandBufferTest, NewDSWaylandBuffer)
+{
+ DSWaylandBuffer *buffer = new DSWaylandBuffer;
+ delete buffer;
+ EXPECT_TRUE(true);
+}
'DSWaylandTizenPolicy-test.cpp',
'DSWaylandTizenSurface-test.cpp',
'DSWaylandZxdgShellV6-test.cpp',
+ 'DSWaylandBuffer-test.cpp',
'DSObject-test.cpp',
'DSEventLoop-test.cpp',
'DSWaylandCompositor-test.cpp',