Libecoli
0.10.1
Extensible COmmand LIne library
Loading...
Searching...
No Matches
node_file.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3
*/
4
9
10
#pragma once
11
12
#include <dirent.h>
13
#include <sys/stat.h>
14
15
#include <ecoli/node.h>
16
18
struct
ec_node_file_ops
{
19
int (*lstat)(
const
char
*pathname,
struct
stat *buf);
20
DIR *(*opendir)(
const
char
*name);
21
struct
dirent *(*readdir)(DIR *dirp);
22
int (*closedir)(DIR *dirp);
23
int (*dirfd)(DIR *dirp);
24
int (*fstatat)(
int
dirfd,
const
char
*pathname,
struct
stat *buf,
int
flags);
25
};
26
28
void
ec_node_file_set_ops(
const
struct
ec_node_file_ops
*ops);
29
ec_node_file_ops
Definition
node_file.h:18
include
ecoli
node_file.h
Generated by
1.13.2