aboutsummaryrefslogtreecommitdiff
path: root/include/erofs/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erofs/inode.h')
-rw-r--r--include/erofs/inode.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/erofs/inode.h b/include/erofs/inode.h
index 5a7f5f1..e23d65f 100644
--- a/include/erofs/inode.h
+++ b/include/erofs/inode.h
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
- * erofs-utils/include/erofs/inode.h
- *
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <bluce.liguifu@huawei.com>
@@ -10,12 +8,22 @@
#ifndef __EROFS_INODE_H
#define __EROFS_INODE_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include "erofs/internal.h"
+unsigned char erofs_mode_to_ftype(umode_t mode);
void erofs_inode_manager_init(void);
unsigned int erofs_iput(struct erofs_inode *inode);
erofs_nid_t erofs_lookupnid(struct erofs_inode *inode);
struct erofs_inode *erofs_mkfs_build_tree_from_path(struct erofs_inode *parent,
const char *path);
+#ifdef __cplusplus
+}
+#endif
+
#endif