PPM implementation (PEP86) pass 1
authorchip <chip>
Mon, 18 Aug 2003 04:33:11 +0000 (04:33 +0000)
committerchip <chip>
Mon, 18 Aug 2003 04:33:11 +0000 (04:33 +0000)
src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.cpp [new file with mode: 0644]
src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.h [new file with mode: 0644]
src/Pegasus/ProviderManager2/CMPI/CMPIProviderManagerMain.cpp [new file with mode: 0644]
src/Pegasus/ProviderManager2/CMPI/Makefile [new file with mode: 0644]

diff --git a/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.cpp b/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.cpp
new file mode 100644 (file)
index 0000000..a107c0c
--- /dev/null
@@ -0,0 +1,47 @@
+//%/////////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM,
+// The Open Group, Tivoli Systems
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+//==============================================================================
+//
+// Author:
+//
+// Modified By:
+//
+//%/////////////////////////////////////////////////////////////////////////////
+
+#include "CMPIProviderManager.h"
+
+PEGASUS_NAMESPACE_BEGIN
+
+CMPIProviderManager::CMPIProviderManager(void)
+{
+}
+
+CMPIProviderManager::~CMPIProviderManager(void)
+{
+}
+
+Message * CMPIProviderManager::processMessage(Message * request)
+{
+    return(0);
+}
+
+PEGASUS_NAMESPACE_END
diff --git a/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.h b/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManager.h
new file mode 100644 (file)
index 0000000..e15c055
--- /dev/null
@@ -0,0 +1,53 @@
+//%////-*-c++-*-////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM,
+// The Open Group, Tivoli Systems
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+//==============================================================================
+//
+// Author:
+//
+// Modified By:
+//
+//%/////////////////////////////////////////////////////////////////////////////
+
+#ifndef Pegasus_CMPIProviderManager_h
+#define Pegasus_CMPIProviderManager_h
+
+#include <Pegasus/Common/Config.h>
+
+#include <Pegasus/ProviderManager2/ProviderManager.h>
+
+#include <Pegasus/Server/Linkage.h>
+
+PEGASUS_NAMESPACE_BEGIN
+
+class PEGASUS_SERVER_LINKAGE CMPIProviderManager : public ProviderManager
+{
+public:
+    CMPIProviderManager(void);
+    virtual ~CMPIProviderManager(void);
+
+    virtual Message * processMessage(Message * request) throw();
+
+};
+
+PEGASUS_NAMESPACE_END
+
+#endif
diff --git a/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManagerMain.cpp b/src/Pegasus/ProviderManager2/CMPI/CMPIProviderManagerMain.cpp
new file mode 100644 (file)
index 0000000..15814ca
--- /dev/null
@@ -0,0 +1,45 @@
+//%////-*-c++-*-////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM,
+// The Open Group, Tivoli Systems
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+//==============================================================================
+//
+// Author:
+//
+// Modified By:
+//
+//%/////////////////////////////////////////////////////////////////////////////
+
+#include <Pegasus/Common/Config.h>
+#include <Pegasus/Common/String.h>
+
+#include "CMPIProviderManager.h"
+
+using namespace Pegasus;
+
+extern "C" PEGASUS_EXPORT ProviderManager * PegasusCreateProviderManager(const String & providerManagerName)
+{
+    if(String::equalNoCase(providerManagerName, "CMPI"))
+    {
+        return(new CMPIProviderManager());
+    }
+
+    return(0);
+}
diff --git a/src/Pegasus/ProviderManager2/CMPI/Makefile b/src/Pegasus/ProviderManager2/CMPI/Makefile
new file mode 100644 (file)
index 0000000..f4fc38a
--- /dev/null
@@ -0,0 +1,25 @@
+include $(PEGASUS_ROOT)/mak/config.mak
+
+DIR = Pegasus/ProviderManager2/CMPI
+
+EXTRA_INCLUDES = $(SYS_INCLUDES)
+
+LOCAL_DEFINES = -DPEGASUS_SERVER_INTERNAL -DPEGASUS_INTERNALONLY
+
+LIBRARY = CMPIProviderManager
+
+LIBRARIES = \
+    pegcommon \
+       pegprovider \
+       pegprovidermanager \
+       pegprm
+
+SOURCES = \
+       CMPIProviderManagerMain.cpp \
+       CMPIProviderManager.cpp
+
+OBJECTS = $(SOURCES:.cpp=$(OBJ))
+
+SYS_LIBS = ws2_32.lib advapi32.lib
+
+include $(PEGASUS_ROOT)/mak/library.mak