diff options
author | bp <bp@FreeBSD.org> | 1999-10-31 03:39:03 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 1999-10-31 03:39:03 +0000 |
commit | c763e1b076eb84b549b0ef6eacfb693115ad652d (patch) | |
tree | 25eb0b1c241046eb4a80842143d329050fa11867 /sys/netncp/ncp_rcfile.h | |
parent | b57c214bcc798094ac9d02b7cd0fb77213049fe7 (diff) | |
download | FreeBSD-src-c763e1b076eb84b549b0ef6eacfb693115ad652d.zip FreeBSD-src-c763e1b076eb84b549b0ef6eacfb693115ad652d.tar.gz |
Add support for C++ in the headers. Some style cleanup.
Pointed by: bde
Diffstat (limited to 'sys/netncp/ncp_rcfile.h')
-rw-r--r-- | sys/netncp/ncp_rcfile.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sys/netncp/ncp_rcfile.h b/sys/netncp/ncp_rcfile.h index bbdf8eb..815b8dd 100644 --- a/sys/netncp/ncp_rcfile.h +++ b/sys/netncp/ncp_rcfile.h @@ -31,8 +31,8 @@ * * $FreeBSD$ */ -#ifndef _NCP_RCFILE_H_ -#define _NCP_RCFILE_H_ +#ifndef _NETNCP_NCP_RCFILE_H_ +#define _NETNCP_NCP_RCFILE_H_ #include <sys/queue.h> struct rckey { @@ -54,11 +54,15 @@ struct rcfile { FILE *rf_f; }; -int rc_open(char *filename,char *mode,struct rcfile **rcfile); -int rc_close(struct rcfile *rcp); -int rc_getstringptr(struct rcfile *rcp,char *section, char *key,char **dest); -int rc_getstring(struct rcfile *rcp,char *section, char *key,int maxlen,char *dest); -int rc_getint(struct rcfile *rcp,char *section, char *key,int *value); -int rc_getbool(struct rcfile *rcp,char *section, char *key,int *value); +__BEGIN_DECLS -#endif /* _NCP_RCFILE_H_ */ +int rc_open(char *, char *,struct rcfile **); +int rc_close(struct rcfile *); +int rc_getstringptr(struct rcfile *, char *, char *, char **); +int rc_getstring(struct rcfile *, char *, char *, int, char *); +int rc_getint(struct rcfile *, char *, char *, int *); +int rc_getbool(struct rcfile *, char *, char *, int *); + +__END_DECLS + +#endif /* _NETNCP_NCP_RCFILE_H_ */ |