From 8856b51897defc5d5766f4453af8b3122ca4e112 Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Thu, 28 Sep 2017 22:19:05 -0400 Subject: [PATCH] BNotification ABI padding Add reserved functions and data to avoid future ABI breakage --- headers/os/app/Notification.h | 11 +++++++++++ src/kits/app/Notification.cpp | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/headers/os/app/Notification.h b/headers/os/app/Notification.h index 0d64505326..4a602d7141 100644 --- a/headers/os/app/Notification.h +++ b/headers/os/app/Notification.h @@ -74,6 +74,15 @@ public: status_t Send(bigtime_t timeout = -1); private: + virtual void _ReservedNotification1(); + virtual void _ReservedNotification2(); + virtual void _ReservedNotification3(); + virtual void _ReservedNotification4(); + virtual void _ReservedNotification5(); + virtual void _ReservedNotification6(); + virtual void _ReservedNotification7(); + virtual void _ReservedNotification8(); + status_t fInitStatus; BString fSourceSignature; @@ -90,6 +99,8 @@ private: BList fRefs; BList fArgv; BBitmap* fBitmap; + + uint32 _reserved[8]; }; diff --git a/src/kits/app/Notification.cpp b/src/kits/app/Notification.cpp index 266aecde9f..cac84b2218 100644 --- a/src/kits/app/Notification.cpp +++ b/src/kits/app/Notification.cpp @@ -566,3 +566,13 @@ BNotification::Send(bigtime_t timeout) return ret; } + + +void BNotification::_ReservedNotification1() {} +void BNotification::_ReservedNotification2() {} +void BNotification::_ReservedNotification3() {} +void BNotification::_ReservedNotification4() {} +void BNotification::_ReservedNotification5() {} +void BNotification::_ReservedNotification6() {} +void BNotification::_ReservedNotification7() {} +void BNotification::_ReservedNotification8() {}