def trackselector(block_ptr, string_ptr, data_ptr): b = Block(block_ptr) string = Str(string_ptr) ret = func(b) if not ret: gterror("Track selector callback function must return a string!") string.append_cstr(ret)
def get_title_w(ptr, str): s = Str(str) title = self.get_title() s.append_cstr(title) return 0