libkeymap  2.0.4
Library to manage the Linux keymaps
src/libkeymap/keymap/findfile.h
Go to the documentation of this file.
00001 
00005 #ifndef LK_FINDFILE_H
00006 #define LK_FINDFILE_H
00007 
00008 #include <stdio.h>
00009 #include <sys/param.h>
00010 
00014 typedef struct lkfile {
00015         FILE *fd;
00016         int pipe;
00017         char pathname[MAXPATHLEN];
00018 } lkfile_t;
00019 
00020 lkfile_t *lk_fpopen(const char *filename);
00021 void lk_fpclose(lkfile_t *fp);
00022 int lk_findfile(const char *fnam, const char *const *dirpath, const char *const *suffixes, lkfile_t *fp);
00023 
00024 #endif /* LK_FINDFILE_H */