contentmgmt/cafstreamingsupport/test/streamingtestagent/source/server/startup.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contentmgmt/cafstreamingsupport/test/streamingtestagent/source/server/startup.cpp Mon Mar 15 12:46:43 2010 +0200
@@ -0,0 +1,47 @@
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Executable entrypoint and server object factory function. The latter
+// is supplied to the SCS boilerplate code which starts up the server.
+//
+//
+
+#include "staserver.h"
+
+using namespace StreamAccess;
+
+static CScsServer* NewStreamingTestAgentLC()
+/**
+ This factory function is called by SCS framework. It allocates
+ the Streaming Test Agent Server object and
+ leaves it on the cleanup stack.
+
+ @return New initialized instance of CStaServer.
+ On return this is on the cleanup stack.
+ */
+ {
+ return StreamAccess::CStaServer::NewLC();
+ }
+
+
+GLDEF_C TInt E32Main()
+/**
+ Executable entrypoint. Calls the SCS boilerplate code which starts the server
+ and does not return until the server shuts down.
+
+ @return Symbian OS error code where KErrNone indicates success
+ and any other value indicates failure.
+ */
+ {
+ return StartScsServer(NewStreamingTestAgentLC);
+ }