`
cxsjabc
  • 浏览: 19841 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
最近访客 更多访客>>
社区版块
存档分类
最新评论

iphone-common-codes-ccteam源代码 CCDylib.h

阅读更多
//  
//  CCDylib.h  
//  CCFC  
//  
//  Created by xichen on 11-12-23.  
//  Copyright 2011 ccteam. All rights reserved.  
//  
  
#import <Foundation/Foundation.h>  
  
#define    MOBILE_SUBSTRATE_PATH                @"/Library/MobileSubstrate/DynamicLibraries/"  
  
typedef    void        (*voidVoidFunc)();  
typedef    int            (*intVoidFunc)();  
typedef    char *        (*charStarVoidFunc)();  
typedef    NSString *    (*nSStringVoidFunc)();  
  
@interface CCDylib : NSObject   
{  
@private  
    void *        _handle;  
}  
  
+ (void *)open:(NSString *)dylibFileFullPath;  
+ (void *)openSystemDylib:(NSString *)dylibFileName;  
+ (void *)openMobileSubstrateDylib:(NSString *)dylibFileName;  
  
+ (int)close:(void *)dylibPtr;  
  
  
- (id)initWithFileFullPath:(NSString *)fileFullPath;  
- (id)initWithSystemDylib:(NSString *)dylibFileName;  
- (id)initWithMobileSubstrateDylib:(NSString *)dylibFileName;  
- (void)dealloc;  
  
- (intVoidFunc)getIntVoidFunc:(NSString *)funcName;  
- (voidVoidFunc)getVoidVoidFunc:(NSString *)funcName;  
- (charStarVoidFunc)getCharStarVoidFunc:(NSString *)funcName;  
- (nSStringVoidFunc)getNSStringVoidFunc:(NSString *)funcName;  
  
- (NSString *)getError;  
  
- (int)close;  
  
@end  

googlecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCDylib.h
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics