Fix build on Mac with -DICINGA2_UNITY_BUILD=OFF -DICINGA2_WITH_LIVESTATUS=ON

error: no matching function for call to 'intrusive_ptr_release'
...
candidate function not viable: cannot convert argument of incomplete type 'icinga::Notification *' to 'Object *' for 1st argument
void intrusive_ptr_release(Object *object);
This commit is contained in:
Alexander A. Klimov 2024-09-27 12:38:18 +02:00
parent 01d3a1d382
commit 2bbeaec916
2 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,7 @@ class ApplyRule;
struct ScriptFrame;
class Host;
class Service;
class UserGroup;
/**
* An Icinga notification specification.
@ -73,7 +74,7 @@ public:
intrusive_ptr<NotificationCommand> GetCommand() const;
TimePeriod::Ptr GetPeriod() const;
std::set<User::Ptr> GetUsers() const;
std::set<UserGroup::Ptr> GetUserGroups() const;
std::set<intrusive_ptr<UserGroup>> GetUserGroups() const;
void UpdateNotificationNumber();
void ResetNotificationNumber();

View File

@ -4,6 +4,7 @@
#define USERGROUP_H
#include "icinga/i2-icinga.hpp"
#include "icinga/notification.hpp"
#include "icinga/usergroup-ti.hpp"
#include "icinga/user.hpp"