Lines Matching defs:PathCache
71 PathCache *pc; /* The path-list cache in which to look up the executables */
138 static int add_PathNode(PathCache *pc, const char *dirname);
147 * PathCache objects encapsulate the resources needed to record
150 struct PathCache {
174 static void pca_clear_cache(PathCache *pc);
179 static int pca_read_username(PathCache *pc, const char *string, int slen,
186 static int pca_extract_dir(PathCache *pc, const char *path,
193 static int pca_scan_dir(PathCache *pc, const char *dirname, CacheMem *mem);
213 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc);
219 static int pca_prepare_suffix(PathCache *pc, const char *suffix,
230 static const char *pca_prepare_prefix(PathCache *pc, const char *prefix,
238 static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
245 static void pca_remove_marks(PathCache *pc);
264 * return PathCache * The new, initially empty cache, or NULL
267 PathCache *new_PathCache(void)
269 PathCache *pc; /* The object to be returned */
273 pc = (PathCache *)malloc(sizeof(PathCache));
360 * pc PathCache * The cache to be deleted (can be NULL).
362 * return PathCache * The deleted object (ie. allways NULL).
364 PathCache *del_PathCache(PathCache *pc)
420 * pc PathCache * The filename cache.
432 void pca_set_check_fn(PathCache *pc, CplCheckFn *check_fn, void *data)
460 * pc PathCache * The filename cache that suffered the error.
464 const char *pca_last_error(PathCache *pc)
466 return pc ? _err_get_msg(pc->err) : "NULL PathCache argument";
473 * pc PathCache * The cache to be cleared.
475 static void pca_clear_cache(PathCache *pc)
497 * pc PathCache * The cache in which to store the names of
510 int pca_scan_path(PathCache *pc, const char *path)
572 * pc PathCache * The cache of filenames.
583 static int pca_extract_dir(PathCache *pc, const char *path, const char **nextp)
649 * pc PathCache * The cache of filenames.
662 static int pca_read_username(PathCache *pc, const char *string, int slen,
802 * pc PathCache * The filename cache.
808 static int add_PathNode(PathCache *pc, const char *dirname)
878 * pc PathCache * The filename cache.
888 static int pca_scan_dir(PathCache *pc, const char *dirname, CacheMem *mem)
991 * pc PathCache * The cached list of files.
1010 * function in the PathCache module.
1012 char *pca_lookup_file(PathCache *pc, const char *name, int name_len,
1128 * pc PathCache * The filename cache in which to look for
1135 PcaPathConf *new_PcaPathConf(PathCache *pc)
1166 * pc PathCache * The cache in which completions will be looked up.
1172 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc)
1218 PathCache *pc; /* The cache in which to look for completions */
1434 * pc PathCache * The filename cache resource object.
1441 static int pca_prepare_suffix(PathCache *pc, const char *suffix,
1552 * pc PathCache * The cache being searched.
1561 static const char *pca_prepare_prefix(PathCache *pc, const char *prefix,
1623 * pc PathCache * The filename cache.
1636 static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
1698 * pc PathCache * The filename cache.
1700 static void pca_remove_marks(PathCache *pc)