def srs_output(func, argtypes):
 func.argtypes = argtypes
 func.restype = c_void_p
 func.errcheck = check_srs
 return func

def srs_output ( func , argtypes ) : func . argtypes = argtypes func . restype = c_void_p func . errcheck = check_srs return func
generates a ctypes prototype for the given function with the given c arguments that returns a pointer to an ogr spatial reference system .