iphone-common-codes-ccteam源代码 CCDylib.h
程序员文章站
2024-01-15 17:47:22
...
//
// 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链接地址(会有更新):[url]http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCDylib.h[/url]
推荐阅读
-
iphone-common-codes-ccteam源代码 CCDylib.h
-
c语言stdio.h源代码
-
iphone-common-codes-ccteam源代码 CCDebug.h
-
javascript - 【PHP】【.NET】【JS】【AJAX】关于抓取网页源代码的问题
-
如何编译PHP源代码介绍ZendEncode的安装方法我今天刚调试成功,不敢独享,拿来献宝_PHP教程
-
简单计数器的php源代码
-
对页面的源代码进行加密,使源代码变成乱码,没法读取_PHP教程
-
Android仿QQ未读消息--红点拖拽删除【源代码】
-
高亮度显示php源代码_PHP
-
Linux内核源代码情景分析-内存管理之用户页面的定期换出_html/css_WEB-ITnose