def set_timeout(self, timeout): cfunc.set_timeout(self, timeout) timeout = property(get_timeout, set_timeout) # ----------------------------------------------------------------- def link_content(self, directory): cfunc.link_directory_content(self, directory) def link_path(self, path): cfunc.link_path(self, path) cwrapper = CWrapper(UTIL_LIB) cwrapper.registerType("latex", LaTeX) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("latex") cfunc.alloc = cwrapper.prototype("c_void_p latex_alloc( char* , bool )") cfunc.free = cwrapper.prototype("void latex_free( latex )") cfunc.compile = cwrapper.prototype("bool latex_compile(latex , bool , bool , bool)") cfunc.get_runpath = cwrapper.prototype("char* latex_get_runpath( latex )") cfunc.get_target = cwrapper.prototype("char* latex_get_target_file( latex )") cfunc.set_target = cwrapper.prototype("void latex_set_target_file( latex , char* )") cfunc.set_timeout = cwrapper.prototype("void latex_set_timeout( latex , int )") cfunc.get_timeout = cwrapper.prototype("int latex_get_timeout( latex )") cfunc.compile_in_place = cwrapper.prototype("bool latex_compile_in_place( latex )") cfunc.link_directory_content = cwrapper.prototype("void latex_link_directory_content( latex , char*)") cfunc.link_path = cwrapper.prototype("void latex_link_path( latex , char*)")
def link_content(self, directory): cfunc.link_directory_content(self, directory) def link_path(self, path): cfunc.link_path(self, path) cwrapper = CWrapper(UTIL_LIB) cwrapper.registerType("latex", LaTeX) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("latex") cfunc.alloc = cwrapper.prototype("c_void_p latex_alloc( char* , bool )") cfunc.free = cwrapper.prototype("void latex_free( latex )") cfunc.compile = cwrapper.prototype( "bool latex_compile(latex , bool , bool , bool)") cfunc.get_runpath = cwrapper.prototype("char* latex_get_runpath( latex )") cfunc.get_target = cwrapper.prototype( "char* latex_get_target_file( latex )") cfunc.set_target = cwrapper.prototype( "void latex_set_target_file( latex , char* )") cfunc.set_timeout = cwrapper.prototype( "void latex_set_timeout( latex , int )") cfunc.get_timeout = cwrapper.prototype("int latex_get_timeout( latex )") cfunc.compile_in_place = cwrapper.prototype( "bool latex_compile_in_place( latex )") cfunc.link_directory_content = cwrapper.prototype( "void latex_link_directory_content( latex , char*)") cfunc.link_path = cwrapper.prototype( "void latex_link_path( latex , char*)")