Skip to content

Instantly share code, notes, and snippets.

@dalexsoto
Created August 29, 2012 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalexsoto/3506454 to your computer and use it in GitHub Desktop.
Save dalexsoto/3506454 to your computer and use it in GitHub Desktop.
PSPDFKitGlobal
//////////////////////////////////////////
//// 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