summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-16 19:36:48 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-16 19:36:48 +0000
commita2c3443be86b5dc4756a92b6eb1dc114399b5f6c (patch)
tree1ed0452cd32bc714c31cf8b9dda4392740956aae
parent4b2aeaa002ecfc903e1846e2c76ce6a4ff385db4 (diff)
Initial revision
-rw-r--r--libnetfs/netfs.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h
new file mode 100644
index 00000000..68851d83
--- /dev/null
+++ b/libnetfs/netfs.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 1994 Free Software Foundation
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+/* This library supports client-side network file system
+ implementations. It is analogous to the diskfs library provided for
+ disk-based filesystems. */
+
+
+/* The user must define this function. Request the operation encoded
+ in OPERATION. Return a 32-bit unique ID for the operation. When
+ the operation completes, call netfs_operation_complete. */
+int netfs_start_operation (struct operation *operation);
+
+/* When an operation has completed, call this routine with the same
+ 32-bit ID that was used in the call to netfs_start_operation. (The
+ ID will be validated by the library, so there is no need for the
+ user to check it if it is externally generated.) */
+void netfs_operation_complete (int id);
+
+