当前位置: 首页>>代码示例>>C++>>正文


C++ c_entry函数代码示例

本文整理汇总了C++中c_entry函数的典型用法代码示例。如果您正苦于以下问题:C++ c_entry函数的具体用法?C++ c_entry怎么用?C++ c_entry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了c_entry函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: INFO_LOG2

void CFeatMgrBCEnhancedPlugin::GenericTimerFiredL(
	    MFeatureInfoPluginCallback& aService,
	    FeatureInfoCommand::TFeatureInfoCmd aCommandId,
	    TUint8 aTransId,
	    TInt aRetVal )
	{
    INFO_LOG2( "FeatMgr Corrupt Plugin: GenericTimerFiredL (0x%x, 0x%x)", 
                         aCommandId, aTransId );
    TInt err( KErrNone );
    
    switch ( aCommandId )
    {
    case FeatureInfoCommand::ELoadEnhancedFeatureInfoCmdId:
        {
        // Return some features and KErrNone.
        FeatureInfoCommand::TEnhancedFeatureInfo featureList;
        RFeatureArray features; 
        CleanupClosePushL( features );
        TBitFlags32 flags( 0 );
        flags.Set( EFeatureSupported );
        flags.Set( EFeatureModifiable );
        
        // Adding feature B
        const TInt KBDefaultData( 0x000000bb );
        TFeatureEntry b_entry( TUid::Uid(KFeatureBUid.iUid), flags, KBDefaultData );
        features.AppendL( b_entry );
        
        // Adding feature C
        const TInt KCDefaultData( 0x000000cc );
        TFeatureEntry c_entry( TUid::Uid(KFeatureCUid.iUid), flags, KCDefaultData );
        features.AppendL( c_entry );	

        featureList.iErrorCode = KErrNone;
        featureList.iList = features;
            
        FeatureInfoCommand::TEnhancedFeatureInfoRespPckg resPackage(featureList);
        TRAP(err, aService.ProcessResponseL(aCommandId, aTransId, resPackage));    
        
        CleanupStack::PopAndDestroy( &features );
        break;            
        }
    
    default :
        break;
    }
  
    // TEST CASES END
 
    if ( err != KErrNone )
        {
        ERROR_LOG1( "FeatMgr Plugin: Error in ProcessResponseL: %d", err );
        }
    CFeatMgrBasePlugin::GenericTimerFiredL(aService,aCommandId,aTransId,aRetVal);
    
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:55,代码来源:bc_enhancedplugin.cpp

示例2: __start

/* With ARM and GHS toolsets, the entry point is main() - this will
   allow the linker to generate wrapper code to setup stacks, allocate
   heap area, and initialize and copy code and data segments. For GNU
   toolsets, the entry point is through __start() in the crt0_gnu.asm
   file, and that startup code will setup stacks and data */
int main(void)
{
    return c_entry();
}
开发者ID:m3y54m,项目名称:32bitmicro,代码行数:9,代码来源:spi_loopback_test.c

示例3: __start

/* With ARM and GHS toolsets, the entry point is main() - this will
   allow the linker to generate wrapper code to setup stacks, allocate
   heap area, and initialize and copy code and data segments. For GNU
   toolsets, the entry point is through __start() in the crt0_gnu.asm
   file, and that startup code will setup stacks and data */
int main(void)
{
    c_entry();
    return 0;
}
开发者ID:003900107,项目名称:realboard-lpc4088,代码行数:10,代码来源:Rtc_Calibration.c

示例4: main

int main()
{
	return c_entry();
}
开发者ID:GitYun,项目名称:lpc_bt,代码行数:4,代码来源:bootloder.c


注:本文中的c_entry函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。