File tree 4 files changed +30
-1
lines changed
4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -165,3 +165,15 @@ uint32_t AppContentLauncherManager::GetFeatureMap(chip::EndpointId endpoint)
165
165
Attributes::FeatureMap::Get (endpoint, &featureMap);
166
166
return featureMap;
167
167
}
168
+
169
+ uint16_t AppContentLauncherManager::GetClusterRevision (chip::EndpointId endpoint)
170
+ {
171
+ if (endpoint >= EMBER_AF_CONTENT_LAUNCHER_CLUSTER_SERVER_ENDPOINT_COUNT)
172
+ {
173
+ return mDynamicClusterRevision ;
174
+ }
175
+
176
+ uint16_t clusterRevision = 0 ;
177
+ Attributes::ClusterRevision::Get (endpoint, &clusterRevision);
178
+ return clusterRevision;
179
+ }
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class AppContentLauncherManager : public ContentLauncherDelegate
52
52
void SetEndpointId (EndpointId epId) { mEndpointId = epId; };
53
53
54
54
uint32_t GetFeatureMap (chip::EndpointId endpoint) override ;
55
+ uint16_t GetClusterRevision (chip::EndpointId endpoint) override ;
55
56
56
57
protected:
57
58
std::list<std::string> mAcceptHeaderList ;
@@ -62,6 +63,6 @@ class AppContentLauncherManager : public ContentLauncherDelegate
62
63
63
64
// TODO: set this based upon meta data from app
64
65
uint32_t mDynamicEndpointFeatureMap = 3 ;
65
-
66
+ uint16_t mDynamicClusterRevision = 2 ;
66
67
ContentAppAttributeDelegate * mAttributeDelegate ;
67
68
};
Original file line number Diff line number Diff line change @@ -286,3 +286,15 @@ uint32_t ContentLauncherManager::GetFeatureMap(chip::EndpointId endpoint)
286
286
Attributes::FeatureMap::Get (endpoint, &featureMap);
287
287
return featureMap;
288
288
}
289
+
290
+ uint16_t ContentLauncherManager::GetClusterRevision (chip::EndpointId endpoint)
291
+ {
292
+ if (endpoint >= EMBER_AF_CONTENT_LAUNCHER_CLUSTER_SERVER_ENDPOINT_COUNT)
293
+ {
294
+ return mDynamicClusterRevision ;
295
+ }
296
+
297
+ uint16_t clusterRevision = 0 ;
298
+ Attributes::ClusterRevision::Get (endpoint, &clusterRevision);
299
+ return clusterRevision;
300
+ }
Original file line number Diff line number Diff line change @@ -48,11 +48,15 @@ class ContentLauncherManager : public ContentLauncherDelegate
48
48
uint32_t HandleGetSupportedStreamingProtocols () override ;
49
49
50
50
uint32_t GetFeatureMap (chip::EndpointId endpoint) override ;
51
+ uint16_t GetClusterRevision (chip::EndpointId endpoint) override ;
51
52
52
53
private:
53
54
jobject mContentLauncherManagerObject = nullptr ;
54
55
jmethodID mGetAcceptHeaderMethod = nullptr ;
55
56
jmethodID mGetSupportedStreamingProtocolsMethod = nullptr ;
56
57
jmethodID mLaunchContentMethod = nullptr ;
57
58
jmethodID mLaunchUrlMethod = nullptr ;
59
+
60
+ // TODO: set this based upon meta data from app
61
+ uint16_t mDynamicClusterRevision = 2 ;
58
62
};
You can’t perform that action at this time.
0 commit comments