|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__RSSHARED_H__) |
|
17 #define __RSSHARED_H__ |
|
18 |
|
19 #include <rscommon.h> |
|
20 |
|
21 IMPORT_C TInt StartC32(); // Call this to start the Comms Process Rootserver |
|
22 IMPORT_C TInt StartC32WithCMISuppressions(const TDesC& aCMISuppressionList); |
|
23 IMPORT_C TInt StartC32Full(); // Call this to start the Comms Process Rootserver |
|
24 |
|
25 IMPORT_C TInt WarmBootC32(const TDesC& aCMISuppressionList); |
|
26 |
|
27 namespace RootServer |
|
28 /** Namespace encapsulating the Rootserver components |
|
29 @publishedPartner |
|
30 @released |
|
31 */ |
|
32 { |
|
33 |
|
34 /** The server name of the Rootserver in EKA2 case. |
|
35 @internalComponent |
|
36 */ |
|
37 _LIT(KRootServerName, "!RootServer"); |
|
38 |
|
39 |
|
40 /** The Root Server library. |
|
41 @internalComponent |
|
42 */ |
|
43 _LIT(KRootServerDLLName, "c32rootsrv.dll"); |
|
44 |
|
45 |
|
46 /** The example Comms Configurator. |
|
47 @internalComponent |
|
48 */ |
|
49 _LIT(KCommC32StartExe, "C32start.exe"); |
|
50 |
|
51 /** Major version number of the Rootserver. |
|
52 @publishedPartner |
|
53 @released |
|
54 */ |
|
55 const TUint KRS32MajorVersionNumber=1; |
|
56 |
|
57 /** Minor version number of the Rootserver |
|
58 @publishedPartner |
|
59 @released |
|
60 */ |
|
61 const TUint KRS32MinorVersionNumber=1; |
|
62 |
|
63 /** Build version number of the Rootserver. |
|
64 @publishedPartner |
|
65 @released |
|
66 */ |
|
67 const TUint KRS32BuildVersionNumber=1; |
|
68 |
|
69 /** Unique UID of the C32 Start Process. |
|
70 @internalComponent |
|
71 */ |
|
72 const TInt32 KUidC32StartProcess=0x101F7988; |
|
73 |
|
74 /** Key to which C32Start() publishes the number of modules that have died |
|
75 @publishedPartner |
|
76 @released |
|
77 */ |
|
78 const TUid KUidC32RootModuleDeathKey = {0x102045de}; |
|
79 |
|
80 |
|
81 |
|
82 /** Key to which C32Start() publishes the TRSStartState changes. |
|
83 @publishedPartner |
|
84 @released |
|
85 */ |
|
86 const TUid KUidC32StartPropertyKey = {0x102045dd}; |
|
87 |
|
88 |
|
89 const TUid KUidCommsProcess={0x101F7989}; |
|
90 |
|
91 /** Comms specific RootServer IPC numbers/messages |
|
92 @internalComponent |
|
93 */ |
|
94 enum TC32RSMessages |
|
95 { |
|
96 RSSetMBufPoolSize = 101, |
|
97 RSAddMBufAllocInfo = 102, |
|
98 RSDbgFailNextMbuf = 103, |
|
99 RSDbgSetMbufPoolLimit = 104, |
|
100 RSDbgCheckMbuf = 105, |
|
101 RSDbgMbufFreeSpace = 106, |
|
102 RSDbgMbufTotalSpace = 107 |
|
103 }; |
|
104 |
|
105 |
|
106 |
|
107 class TRSSetMBufMnrContainer |
|
108 /** Parameters for startup information for the MBufManager |
|
109 @internalTechnology |
|
110 */ |
|
111 { |
|
112 public: |
|
113 TUint iInitSize; |
|
114 TUint iMaxSize; |
|
115 }; |
|
116 |
|
117 |
|
118 /** Descriptor Pckg for MBufManager startup paramters |
|
119 @internalTechnology |
|
120 */ |
|
121 typedef TPckgBuf<TRSSetMBufMnrContainer> TRSSetMBufMnr; |
|
122 |
|
123 /** Parameters for MBufManager's mbuf size alloc info |
|
124 @internalTechnology |
|
125 */ |
|
126 class TRSAddMBufAllocInfoContainer |
|
127 { |
|
128 public: |
|
129 TUint iMBufSize; |
|
130 TUint iInitialAllocation; |
|
131 TUint iMinGrowth; |
|
132 TUint iGrowthThreshold; |
|
133 #ifdef SYMBIAN_ZERO_COPY_NETWORKING |
|
134 TUint iPoolCeiling; |
|
135 #endif // SYMBIAN_ZERO_COPY_NETWORKING |
|
136 }; |
|
137 |
|
138 /** Descriptor Pckg for MBufManager alloc size info paramters |
|
139 @internalTechnology |
|
140 */ |
|
141 typedef TPckgBuf<TRSAddMBufAllocInfoContainer> TRSAddMBufAllocInfo; |
|
142 |
|
143 |
|
144 } // namespace RootServer |
|
145 |
|
146 #endif // __RSSHARED_H__ |
|
147 |