summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-05-01 10:25:00 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2019-05-01 10:25:00 -0400
commit3b71054b5ed96df87a6e74800333b0f9de0ae9cd (patch)
treeb65aefc90375c8da089b807addbeca20d168176c /src/components/application_manager/include/application_manager
parent9eaacc0ea091e34b5c5a84e7c12b75ca4dc68cfa (diff)
parent79f16deef3c24b4e9c3147c057d2468bad0754b4 (diff)
downloadsdl_core-3b71054b5ed96df87a6e74800333b0f9de0ae9cd.tar.gz
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'src/components/application_manager/include/application_manager')
-rw-r--r--src/components/application_manager/include/application_manager/app_service_manager.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/components/application_manager/include/application_manager/app_service_manager.h b/src/components/application_manager/include/application_manager/app_service_manager.h
index 9690d7cd46..5080748f17 100644
--- a/src/components/application_manager/include/application_manager/app_service_manager.h
+++ b/src/components/application_manager/include/application_manager/app_service_manager.h
@@ -81,7 +81,8 @@ class AppServiceManager {
* app. False, if published by the embedded system.
* @param connection_key - If mobile_service is true, the connection key of
* the app publishing this service.
- * @return The app service record of the published app service
+ * @return The app service record of the published app service on success, a
+ * Null SmartObject value on failure
*/
virtual smart_objects::SmartObject PublishAppService(
const smart_objects::SmartObject& manifest,
@@ -197,7 +198,7 @@ class AppServiceManager {
/**
* @brief Get the service with a given service ID.
- * @param service_type - The service ID
+ * @param service_id - The service ID
* @return A pointer to requested service on success, NULL on failure
*/
virtual AppService* FindServiceByID(const std::string service_id);
@@ -247,6 +248,16 @@ class AppServiceManager {
std::string DefaultServiceByType(const std::string service_type);
AppService* FindServiceByPolicyAppID(const std::string policy_app_id,
const std::string type);
+
+ /**
+ * @brief Get the service of a given type published by a given provider.
+ * @param connection_key - The connection key of the service provider
+ * @param service_type - The service type
+ * @return A pointer to requested service on success, NULL on failure
+ */
+ AppService* FindServiceByProvider(const uint32_t connection_key,
+ const std::string service_type);
+ AppService* FindServiceByName(std::string name);
std::string GetPolicyAppID(AppService service);
};