summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_file.h
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>1999-10-31 03:39:03 +0000
committerbp <bp@FreeBSD.org>1999-10-31 03:39:03 +0000
commitc763e1b076eb84b549b0ef6eacfb693115ad652d (patch)
tree25eb0b1c241046eb4a80842143d329050fa11867 /sys/netncp/ncp_file.h
parentb57c214bcc798094ac9d02b7cd0fb77213049fe7 (diff)
downloadFreeBSD-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_file.h')
-rw-r--r--sys/netncp/ncp_file.h38
1 files changed, 14 insertions, 24 deletions
diff --git a/sys/netncp/ncp_file.h b/sys/netncp/ncp_file.h
index 17b5bd5..e5ecea9 100644
--- a/sys/netncp/ncp_file.h
+++ b/sys/netncp/ncp_file.h
@@ -32,12 +32,8 @@
* $FreeBSD$
*/
-#ifndef _NCP_NCP_FILE_H_
-#define _NCP_NCP_FILE_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+#ifndef _NETNCP_NCP_FILE_H_
+#define _NETNCP_NCP_FILE_H_
typedef struct {
nuint32 sequence;
@@ -64,29 +60,23 @@ typedef struct {
nuint8 reserved3 [16];
} __attribute__((packed)) NWDELETED_INFO;
-int ncp_AllocTempDirHandle(char *path, NWDIR_HANDLE *pdh);
-int ncp_DeallocateDirHandle(NWDIR_HANDLE dh);
-int ncp_GetNSEntryInfo(NWDIR_HANDLE dh, struct nw_entry_info *fi, int *ns);
+__BEGIN_DECLS
-NWCCODE ncp_ScanNSEntryInfo(NWCONN_HANDLE cH, nuint8 namSpc, nuint16 attrs,
- SEARCH_SEQUENCE *seq, pnstr8 searchPattern, nuint32 retInfoMask,
- NW_ENTRY_INFO *entryInfo);
+int ncp_AllocTempDirHandle(char *, NWDIR_HANDLE *);
+int ncp_DeallocateDirHandle(NWDIR_HANDLE);
+int ncp_GetNSEntryInfo(NWDIR_HANDLE, struct nw_entry_info *, int *);
-NWCCODE ncp_PurgeDeletedFile(NWCONN_HANDLE cH, nuint32 iterHandle,
- nuint32 volNum, nuint32 dirBase, nuint8 ns);
+NWCCODE ncp_ScanNSEntryInfo(NWCONN_HANDLE, nuint8, nuint16,
+ SEARCH_SEQUENCE *, pnstr8, nuint32, NW_ENTRY_INFO *);
-NWCCODE NWRecoverDeletedFile(NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle,
- nuint32 iterHandle,
- nuint32 volNum, nuint32 dirBase,
- pnstr8 delFileName, pnstr8 rcvrFileName);
+NWCCODE ncp_PurgeDeletedFile(NWCONN_HANDLE, nuint32, nuint32, nuint32, nuint8);
-NWCCODE ncp_ScanForDeletedFiles(NWCONN_HANDLE cH, pnuint32 iterHandle,
- pnuint32 volNum, pnuint32 dirBase, nuint8 ns,
- NWDELETED_INFO *entryInfo);
+NWCCODE NWRecoverDeletedFile(NWCONN_HANDLE, NWDIR_HANDLE,
+ nuint32, nuint32, nuint32, pnstr8, pnstr8);
+NWCCODE ncp_ScanForDeletedFiles(NWCONN_HANDLE, pnuint32, pnuint32, pnuint32,
+ nuint8, NWDELETED_INFO *);
-#ifdef __cplusplus
-}
-#endif
+__END_DECLS
#endif /* _NCP_NCP_FILE_ */
OpenPOWER on IntegriCloud