Latest 0.1.0
Homepage https://github.com/YPLiang19/symdl
License MIT
Platforms ios 8.0
Authors

symdl is a simple little tool, its function is very similar to dlsym, with symdl, you can pass in the dynamic linked C function name string, get the function pointer, so as to achieve the dynamic call of C function.

Example

    typedef  void * (*MyFunc)(const char *__path, int __mode);

    const char * func_name = "dlopen";
    MyFunc dlopen_ptr = symdl(func_name);
    if (dlopen_ptr) {
        dlopen_ptr("your path",RTLD_LAZY);
    }

Installation

CocoaPods

  1. Add pod 'symdl' to your Podfile.
  2. Run pod install or pod update.
  3. Import <symdl/symdl.h>

Latest podspec

{
    "name": "symdl",
    "version": "0.1.0",
    "summary": "symdl",
    "description": "symdl is a simple little tool, its function  is very similar to dlsym, with symdl, you can pass in the dynamic linked C function name string, get the function pointer, so as to achieve the dynamic call of C function.",
    "homepage": "https://github.com/YPLiang19/symdl",
    "license": "MIT",
    "authors": {
        "Yong PengLiang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/YPLiang19/symdl.git",
        "tag": "0.1.0"
    },
    "vendored_frameworks": "symdl.framework"
}

Pin It on Pinterest

Share This