Libecoli  0.11.3
Extensible COmmand LIne library
node_file.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3  */
4 
13 #pragma once
14 
15 #include <dirent.h>
16 #include <sys/stat.h>
17 
18 #include <ecoli/node.h>
19 
22  int (*lstat)(const char *pathname, struct stat *buf);
23  DIR *(*opendir)(const char *name);
24  struct dirent *(*readdir)(DIR *dirp);
25  int (*closedir)(DIR *dirp);
26  int (*dirfd)(DIR *dirp);
27  int (*fstatat)(int dirfd, const char *pathname, struct stat *buf, int flags);
28 };
29 
34 void ec_node_file_set_ops(const struct ec_node_file_ops *ops);
35 
void ec_node_file_set_ops(const struct ec_node_file_ops *ops)