D24003: kwaylandScanner produce version enum per class

2019-09-20 Thread Roman Gilg
romangg added a comment. By the way I guess the reason why only the `PrimarySelectionOfferV1InterfaceVersion` is there without the patch is that the other interfaces are created through the manager on request of the client while the offer is created server-side and then sent through an event

D24003: kwaylandScanner produce version enum per class

2019-09-20 Thread Roman Gilg
romangg added a comment. Header output with the patch: #ifndef KWAYLAND_SERVER_WP_PRIMARY_SELECTION_UNSTABLE_V1_H #define KWAYLAND_SERVER_WP_PRIMARY_SELECTION_UNSTABLE_V1_H #include "global.h" #include "resource.h" #include namespace KWayland {

D24003: kwaylandScanner produce version enum per class

2019-09-20 Thread Frederik Gladhorn
gladhorn marked an inline comment as done. gladhorn added inline comments. INLINE COMMENTS > zzag wrote in generator.cpp:431 > Is it correct thogugh? Can you provide some test input so it's easier to see > the problem? run kwaylandScanner on /usr/share/wayland-protocols/unstable/primary-select

D24003: kwaylandScanner produce version enum per class

2019-09-17 Thread Frederik Gladhorn
gladhorn added a comment. The unstable primary selection v1 protocol produces code that doesn't compile, after this change it does compile - since it expects the version enums for three classes, but only the first one is actually written into the file. REPOSITORY R127 KWayland REVISION DE

D24003: kwaylandScanner produce version enum per class

2019-09-16 Thread Vlad Zahorodnii
zzag added a comment. FYI, https://phabricator.kde.org/D22362#493722 INLINE COMMENTS > generator.cpp:431 > auto it = std::find_if(m_interfaces.constBegin(), > m_interfaces.constEnd(), [] (const Interface &i) { return i.isGlobal(); }); > -if (it != m_interfaces.constE

D24003: kwaylandScanner produce version enum per class

2019-09-16 Thread Frederik Gladhorn
gladhorn created this revision. gladhorn added a reviewer: KWin. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. gladhorn requested review of this revision. REVISION SUMMARY Otherwise it only creates the enum for the first class encountered. REPOSITORY R12