Created
August 29, 2012 03:16
-
-
Save dalexsoto/3506454 to your computer and use it in GitHub Desktop.
PSPDFKitGlobal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////// | |
//// PSPDFKitGlobal.h // | |
////////////////////////////////////////// | |
public partial class PSPDFKitGlobal | |
{ | |
private static PSPDFLogLevel _PSPDFLogLevel; | |
public static PSPDFLogLevel LogLevel | |
{ | |
get | |
{ | |
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0); | |
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kPSPDFLogLevel"); | |
_PSPDFLogLevel = (PSPDFLogLevel) Marshal.ReadInt32(ptr); | |
return _PSPDFLogLevel; | |
} | |
set | |
{ | |
_PSPDFLogLevel = value; | |
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0); | |
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kPSPDFLogLevel"); | |
Marshal.WriteInt32(ptr, (int)_PSPDFLogLevel); | |
} | |
} | |
private static PSPDFAnimate _PSPDFAnimateOption; | |
public static PSPDFAnimate AnimateOption | |
{ | |
get | |
{ | |
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0); | |
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kPSPDFAnimateOption"); | |
_PSPDFAnimateOption = (PSPDFAnimate) Marshal.ReadInt32(ptr); | |
return _PSPDFAnimateOption; | |
} | |
set | |
{ | |
_PSPDFAnimateOption = value; | |
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0); | |
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kPSPDFAnimateOption"); | |
Marshal.WriteInt32(ptr, (int)_PSPDFAnimateOption); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment