File tree 2 files changed +15
-0
lines changed
examples/tv-casting-app/tv-casting-common/core
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
#include " support/ChipDeviceEventHandler.h"
22
22
23
+ #include < app/InteractionModelEngine.h>
23
24
#include < app/clusters/bindings/BindingManager.h>
24
25
#include < app/server/Server.h>
25
26
#include < credentials/DeviceAttestationCredsProvider.h>
@@ -133,6 +134,15 @@ CHIP_ERROR CastingApp::Stop()
133
134
return CHIP_ERROR_NOT_IMPLEMENTED;
134
135
}
135
136
137
+ CHIP_ERROR CastingApp::ShutdownAllSubscriptions ()
138
+ {
139
+ VerifyOrReturnError (mState == CASTING_APP_RUNNING, CHIP_ERROR_INCORRECT_STATE);
140
+
141
+ chip::app::InteractionModelEngine::GetInstance ()->ShutdownAllSubscriptions ();
142
+
143
+ return CHIP_NO_ERROR;
144
+ }
145
+
136
146
}; // namespace core
137
147
}; // namespace casting
138
148
}; // namespace matter
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ class CastingApp
72
72
*/
73
73
bool isRunning () { return mState == CASTING_APP_RUNNING; }
74
74
75
+ /* *
76
+ * @brief Tears down all active subscriptions.
77
+ */
78
+ CHIP_ERROR ShutdownAllSubscriptions ();
79
+
75
80
private:
76
81
CastingApp ();
77
82
static CastingApp * _castingApp;
You can’t perform that action at this time.
0 commit comments