Blame src/libkeymap/keymap/findfile.h
|
Packit Service |
50ad14 |
/**
|
|
Packit Service |
50ad14 |
* @file findfile.h
|
|
Packit Service |
50ad14 |
* @brief Functions for search, open and close a file objects.
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
#ifndef LK_FINDFILE_H
|
|
Packit Service |
50ad14 |
#define LK_FINDFILE_H
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#include <stdio.h>
|
|
Packit Service |
50ad14 |
#include <sys/param.h>
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/**
|
|
Packit Service |
50ad14 |
* @brief Structure contains information about an open keymap file.
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
typedef struct lkfile {
|
|
Packit Service |
50ad14 |
FILE *fd;
|
|
Packit Service |
50ad14 |
int pipe;
|
|
Packit Service |
50ad14 |
char pathname[MAXPATHLEN];
|
|
Packit Service |
50ad14 |
} lkfile_t;
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
lkfile_t *lk_fpopen(const char *filename);
|
|
Packit Service |
50ad14 |
void lk_fpclose(lkfile_t *fp);
|
|
Packit Service |
50ad14 |
int lk_findfile(const char *fnam, const char *const *dirpath, const char *const *suffixes, lkfile_t *fp);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#endif /* LK_FINDFILE_H */
|