0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* This file was autogenerated by rpcgen, but should be modified by the developer.
|
|
16 |
* Make sure you don't use the -component_mod flag in future or this file will be overwritten.
|
|
17 |
* Tue Nov 16 15:19:57 2004
|
|
18 |
* System Includes
|
|
19 |
*
|
|
20 |
*/
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
#include <stdio.h>
|
|
25 |
|
|
26 |
|
|
27 |
/****************************************************************************************
|
|
28 |
*
|
|
29 |
* Local Includes
|
|
30 |
*
|
|
31 |
***************************************************************************************/
|
|
32 |
#include "CSvcGenericstub.h"
|
|
33 |
#include "GenericStub.h"
|
|
34 |
|
|
35 |
|
|
36 |
/****************************************************************************************
|
|
37 |
*
|
|
38 |
* File-scope variables
|
|
39 |
*
|
|
40 |
***************************************************************************************/
|
|
41 |
static CComponentManager<CSGenericstub> *iComponentManager;
|
|
42 |
|
|
43 |
|
|
44 |
/****************************************************************************************
|
|
45 |
*
|
|
46 |
* Implementation
|
|
47 |
*
|
|
48 |
***************************************************************************************/
|
|
49 |
|
|
50 |
|
|
51 |
/****************************************************************************************
|
|
52 |
*
|
|
53 |
* PUBLIC: GetInstanceKeyFromArgs
|
|
54 |
*
|
|
55 |
***************************************************************************************/
|
|
56 |
int CSvcGenericstub::GetInstanceKeyFromArgs( int aMethod, void * /*aArgs*/ )
|
|
57 |
{
|
|
58 |
int rv;
|
|
59 |
switch( aMethod ) {
|
|
60 |
case DSTR_REMOVEPROCESS:
|
|
61 |
case RUN_COMMAND:
|
|
62 |
default:
|
|
63 |
rv = ERR_INVALID_METHOD;
|
|
64 |
break;
|
|
65 |
}
|
|
66 |
return rv;
|
|
67 |
}
|
|
68 |
|
|
69 |
|
|
70 |
/****************************************************************************************
|
|
71 |
*
|
|
72 |
* PUBLIC: SetError
|
|
73 |
*
|
|
74 |
***************************************************************************************/
|
|
75 |
int CSvcGenericstub::SetError( int aMethod, void * /*aArgs*/, int /*aError*/)
|
|
76 |
{
|
|
77 |
int rv;
|
|
78 |
switch( aMethod ) {
|
|
79 |
case LIST_CONNECTIONS:
|
|
80 |
default:
|
|
81 |
rv = ERR_INVALID_METHOD;
|
|
82 |
break;
|
|
83 |
}
|
|
84 |
return rv;
|
|
85 |
}
|
|
86 |
|
|
87 |
|
|
88 |
/****************************************************************************************
|
|
89 |
*
|
|
90 |
* PUBLIC: GetError
|
|
91 |
*
|
|
92 |
***************************************************************************************/
|
|
93 |
int CSvcGenericstub::GetError( int aMethod, void * /*aArgs*/)
|
|
94 |
{
|
|
95 |
int rv = ERR_NONE;
|
|
96 |
switch( aMethod ) {
|
|
97 |
case LIST_CONNECTIONS:
|
|
98 |
default:
|
|
99 |
assert( "!INVALID CALL" );
|
|
100 |
break;
|
|
101 |
}
|
|
102 |
return rv;
|
|
103 |
}
|
|
104 |
|
|
105 |
|
|
106 |
/****************************************************************************************
|
|
107 |
*
|
|
108 |
* PUBLIC: StartRPCService
|
|
109 |
*
|
|
110 |
***************************************************************************************/
|
|
111 |
int CSvcGenericstub::StartRPCService( CComponentManager<CSGenericstub> *aComponentManager, TStartupInfo * /*aArg*/ )
|
|
112 |
{
|
|
113 |
assert( iComponentManager == NULL );
|
|
114 |
iComponentManager = aComponentManager;
|
|
115 |
return ERR_NONE;
|
|
116 |
}
|
|
117 |
|
|
118 |
|
|
119 |
/****************************************************************************************
|
|
120 |
*
|
|
121 |
* PUBLIC: StopRPCService
|
|
122 |
*
|
|
123 |
***************************************************************************************/
|
|
124 |
int CSvcGenericstub::StopRPCService()
|
|
125 |
{
|
|
126 |
iComponentManager = NULL;
|
|
127 |
return ERR_NONE;
|
|
128 |
}
|