diff options
author | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
commit | f7e95217e936da34d7124aaced590692eb515923 (patch) | |
tree | 2d9ef4750a67d9d1dd3fe9180a4fef2929fad54b /source/LCDriverInterface.h |
Initial contribution of loader_communication
ST-Ericsson ID: 326913
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Change-Id: I171cfc2ee458a8a0a91a1916137d131f0f7ecee5
Diffstat (limited to 'source/LCDriverInterface.h')
-rw-r--r-- | source/LCDriverInterface.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/source/LCDriverInterface.h b/source/LCDriverInterface.h new file mode 100644 index 0000000..6265b0d --- /dev/null +++ b/source/LCDriverInterface.h @@ -0,0 +1,50 @@ +/******************************************************************************* +* +* File name: LCDriverInterface.h +* Project: LCDriver +* Language: Visual C++ +* Description: Interface class. +* Revision : R1A +* +* +* Copyright (C) ST-Ericsson SA 2011 +* License terms: 3-clause BSD license +* +*******************************************************************************/ + +#ifndef _CLCDRIVERINTERFACE_H_ +#define _CLCDRIVERINTERFACE_H_ + +#include "LCDriverMethods.h" +#include "ObjectList.h" + +/// <summary> +/// Interface class for functions agains loader command. +/// </summary> +struct CLCDriverInterface { +public: + /// <summary> + /// Constructor. + /// </summary> + CLCDriverInterface(); + + /// <summary> + /// Destructor. + /// </summary> + virtual ~CLCDriverInterface(); + + // Public data members + CLCDriverMethods *m_pObject; + char m_szObjectId[25]; + bool isStarted; + + static CCriticalSectionObject InitializationCS; + + static CLCDriverMethods *FindObject(const char *interfaceId); + static void ReleaseObject(CLCDriverMethods *object); + static int AddObject(CLCDriverMethods *object, const char *interfaceId); +private: + static CObjectList<CLCDriverMethods> ObjectList; +}; + +#endif // _CLCDRIVERINTERFACE_H_ |