Made the header C++ safe.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-10-01 01:41:34 +00:00
parent db82ec452b
commit fad54c1f85
2 changed files with 24 additions and 0 deletions
@@ -1,6 +1,15 @@
#ifndef KPROTOS_H
#define KPROTOS_H
#include "myfs.h"
#define my_stat stat
#define my_dirent dirent
#ifdef __cplusplus
extern "C" {
#endif
int sys_symlink(bool kernel, const char *oldpath, int nfd,
const char *newpath);
ssize_t sys_readlink(bool kernel, int fd, const char *path, char *buf,
@@ -51,3 +60,9 @@ int sys_read_query(bool kernel, int fd, const char *path, void *cookie,struct di
int init_vnode_layer(void);
void *install_file_system(vnode_ops *ops, const char *name,
bool fixed, image_id aid);
#ifdef __cplusplus
}
#endif
#endif /* KPROTOS_H */
@@ -1,6 +1,11 @@
#ifndef _LOCK_H
#define _LOCK_H
#ifdef __cplusplus
extern "C" {
//# define lock fsh_lock
#endif
typedef struct lock lock;
typedef struct mlock mlock;
@@ -25,4 +30,8 @@ extern int free_mlock(mlock *l);
#define LOCKM(l,cnt) acquire_sem_etc(l.s, cnt, 0, 0.0)
#define UNLOCKM(l,cnt) release_sem_etc(l.s, cnt, 0)
#ifdef __cplusplus
}
#endif
#endif /* _LOCK_H */