kerneltest/e32test/resourceman/d_rescontrolcli.h
changeset 281 13fbfa31d2ba
parent 31 56f325a607ea
equal deleted inserted replaced
266:0008ccd16016 281:13fbfa31d2ba
    86 		ERequestNotificationCond,
    86 		ERequestNotificationCond,
    87 		ERequestNotificationUncond,
    87 		ERequestNotificationUncond,
    88 		ECheckPostBootLevelNotifications,
    88 		ECheckPostBootLevelNotifications,
    89 		ECancelNotification, 
    89 		ECancelNotification, 
    90 		EGetControllerVersion,
    90 		EGetControllerVersion,
       
    91 		ERegisterResourceController,
    91 #ifdef PRM_ENABLE_EXTENDED_VERSION
    92 #ifdef PRM_ENABLE_EXTENDED_VERSION
    92 		ERegisterDynamicResource,
    93 		ERegisterDynamicResource,
    93 		EDeRegisterDynamicResource,
    94 		EDeRegisterDynamicResource,
    94 		ERegisterResourceDependency,
    95 		ERegisterResourceDependency,
    95 		EDeRegisterResourceDependency,
    96 		EDeRegisterResourceDependency,
   132     TInt RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum, TAny* anInfo);
   133     TInt RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum, TAny* anInfo);
   133     TInt GetIdleResourcesInfo(TUint aResourceNum, TAny* info);
   134     TInt GetIdleResourcesInfo(TUint aResourceNum, TAny* info);
   134 	TInt DeRegisterClientLevelFromResource(TInt aClientId, TUint aResId);
   135 	TInt DeRegisterClientLevelFromResource(TInt aClientId, TUint aResId);
   135 	TInt CheckPostBootLevelNotifications();
   136 	TInt CheckPostBootLevelNotifications();
   136 	TInt GetResourceControllerVersion(TUint aClientId, TUint& aVersion);
   137 	TInt GetResourceControllerVersion(TUint aClientId, TUint& aVersion);
       
   138 	TInt CheckResourceControllerRegistration();
   137 #ifdef PRM_ENABLE_EXTENDED_VERSION
   139 #ifdef PRM_ENABLE_EXTENDED_VERSION
   138 	TInt RegisterDynamicResource(TUint aClientId, TUint& aResourceId);
   140 	TInt RegisterDynamicResource(TUint aClientId, TUint& aResourceId);
   139 	TInt DeRegisterDynamicResource(TUint aClientId, TUint aResourceId, TInt *aLevel);
   141 	TInt DeRegisterDynamicResource(TUint aClientId, TUint aResourceId, TInt *aLevel);
   140 	TInt RegisterResourceDependency(TUint aClientId, SResourceDependencyInfo aInfo1, SResourceDependencyInfo aInfo2);
   142 	TInt RegisterResourceDependency(TUint aClientId, SResourceDependencyInfo aInfo1, SResourceDependencyInfo aInfo2);
   141 	TInt DeRegisterResourceDependency(TUint aClientId, TUint aResourceId1, TUint aResourceId2);
   143 	TInt DeRegisterResourceDependency(TUint aClientId, TUint aResourceId1, TUint aResourceId2);
   505 TInt RTestResMan::GetResourceControllerVersion(TUint aClientId, TUint& aVersion)
   507 TInt RTestResMan::GetResourceControllerVersion(TUint aClientId, TUint& aVersion)
   506 	{
   508 	{
   507 	return DoControl(EGetControllerVersion, (TAny*)aClientId, (TAny*)&aVersion);
   509 	return DoControl(EGetControllerVersion, (TAny*)aClientId, (TAny*)&aVersion);
   508 	}
   510 	}
   509 
   511 
       
   512 TInt RTestResMan::CheckResourceControllerRegistration()
       
   513 	{
       
   514 	return DoControl(ERegisterResourceController, (TAny*)NULL, (TAny*)NULL);
       
   515 	}
       
   516 
   510 #ifdef PRM_ENABLE_EXTENDED_VERSION
   517 #ifdef PRM_ENABLE_EXTENDED_VERSION
   511 /** Register dynamic resource.
   518 /** Register dynamic resource.
   512 	@Param - aClientId - Id of the client that is registering the dynamic resource
   519 	@Param - aClientId - Id of the client that is registering the dynamic resource
   513 	@Param - aResourceId - On success will be updated with the resource id allocated for this resource
   520 	@Param - aResourceId - On success will be updated with the resource id allocated for this resource
   514 	@return KErrNone on success or one of system wide errors.
   521 	@return KErrNone on success or one of system wide errors.