File: loadso.py

package info (click to toggle)
pysdl2 0.9.6+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,204 kB
  • sloc: python: 16,109; makefile: 213; sh: 32
file content (8 lines) | stat: -rw-r--r-- 329 bytes parent folder | download
1
2
3
4
5
6
7
8
from ctypes import c_char_p, c_void_p
from .dll import _bind

__all__ = ["SDL_LoadObject", "SDL_LoadFunction", "SDL_UnloadObject"]

SDL_LoadObject = _bind("SDL_LoadObject", [c_char_p], c_void_p)
SDL_LoadFunction = _bind("SDL_LoadFunction", [c_void_p, c_char_p], c_void_p)
SDL_UnloadObject = _bind("SDL_UnloadObject", [c_void_p])