summaryrefslogtreecommitdiffstats
path: root/parameter/SubsystemLibrary.h
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/SubsystemLibrary.h')
-rw-r--r--parameter/SubsystemLibrary.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/parameter/SubsystemLibrary.h b/parameter/SubsystemLibrary.h
index 78a497e..f3082e2 100644
--- a/parameter/SubsystemLibrary.h
+++ b/parameter/SubsystemLibrary.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2014, Intel Corporation
+ * Copyright (c) 2011-2015, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@@ -31,17 +31,28 @@
#include "DefaultElementLibrary.h"
#include "VirtualSubsystem.h"
-#include "NamedElementBuilderTemplate.h"
+#include "LoggingElementBuilderTemplate.h"
#include <string>
-class CSubsystemLibrary :
- public CDefaultElementLibrary<TNamedElementBuilderTemplate<CVirtualSubsystem> >
+/** Plugin entry point symbol
+ *
+ * Needs to be implemented by plugin libraries. This function's purpose is to
+ * register element builders;
+ *
+ * "V1" refers to the version of this entry-point API.
+ */
+#define PARAMETER_FRAMEWORK_PLUGIN_ENTRYPOINT_V1 ParameterFrameworkPluginEntryPointMagicV1
+
+class CSubsystemLibrary
+ : public CDefaultElementLibrary<TLoggingElementBuilderTemplate<CVirtualSubsystem>>
{
private:
// Builder type (based on element's name attribute)
- virtual std::string getBuilderType(const CXmlElement& xmlElement) const
+ virtual std::string getBuilderType(const CXmlElement &xmlElement) const
{
// Xml element's name attribute
- return xmlElement.getAttributeString("Type");
+ std::string type;
+ xmlElement.getAttribute("Type", type);
+ return type;
}
};