Simplify the upgrade path handling from PPA.
[deb_libnfs.git] / nsm / libnfs-raw-nsm.h
index b68a1bd11832123cdfe35e40f65d1f3cf1beb79b..e35e0c2015c9b949e7bd0e09557882ed58eaa9ff 100644 (file)
@@ -1,3 +1,32 @@
+/*
+Copyright (c) 2014, Ronnie Sahlberg
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer. 
+2. Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those
+of the authors and should not be interpreted as representing official policies, 
+either expressed or implied, of the FreeBSD Project.
+*/
+
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
@@ -6,7 +35,7 @@
 #ifndef _NSM_H_RPCGEN
 #define _NSM_H_RPCGEN
 
-
+#include <nfsc/libnfs-zdr.h>
 
 
 #ifdef __cplusplus
@@ -89,27 +118,27 @@ typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs;
 
 #if defined(__STDC__) || defined(__cplusplus)
 #define NSM1_NULL 0
-extern  void * nsm1_null_1(void *, CLIENT *);
+extern  void * nsm1_null_1(void *, void *);
 extern  void * nsm1_null_1_svc(void *, struct svc_req *);
 #define NSM1_STAT 1
-extern  struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *);
+extern  struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, void *);
 extern  struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *);
 #define NSM1_MON 2
-extern  struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *);
+extern  struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, void *);
 extern  struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *);
 #define NSM1_UNMON 3
-extern  struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *);
+extern  struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, void *);
 extern  struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *);
 #define NSM1_UNMON_ALL 4
-extern  struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *);
+extern  struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, void *);
 extern  struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *);
 #define NSM1_SIMU_CRASH 5
-extern  void * nsm1_simu_crash_1(void *, CLIENT *);
+extern  void * nsm1_simu_crash_1(void *, void *);
 extern  void * nsm1_simu_crash_1_svc(void *, struct svc_req *);
 #define NSM1_NOTIFY 6
-extern  void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *);
+extern  void * nsm1_notify_1(struct NSM1_NOTIFYargs *, void *);
 extern  void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *);
-extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nsm_program_1_freeresult (void *, zdrproc_t, caddr_t);
 
 #else /* K&R C */
 #define NSM1_NULL 0
@@ -139,32 +168,32 @@ extern int nsm_program_1_freeresult ();
 /* the zdr functions */
 
 #if defined(__STDC__) || defined(__cplusplus)
-extern  bool_t zdr_nsmstat1 (ZDR *, nsmstat1*);
-extern  bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
-extern  bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
-extern  bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
-extern  bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
-extern  bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
-extern  bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
-extern  bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
-extern  bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
-extern  bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
-extern  bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
-extern  bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
+extern  uint32_t zdr_nsmstat1 (ZDR *, nsmstat1*);
+extern  uint32_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
+extern  uint32_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
+extern  uint32_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
+extern  uint32_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
+extern  uint32_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
+extern  uint32_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
+extern  uint32_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
+extern  uint32_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
+extern  uint32_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
+extern  uint32_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
+extern  uint32_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
 
 #else /* K&R C */
-extern bool_t zdr_nsmstat1 ();
-extern bool_t zdr_nsm_my_id ();
-extern bool_t zdr_nsm_mon_id ();
-extern bool_t zdr_NSM1_STATres ();
-extern bool_t zdr_NSM1_STATargs ();
-extern bool_t zdr_NSM1_MONres ();
-extern bool_t zdr_NSM1_MONargs ();
-extern bool_t zdr_NSM1_UNMONres ();
-extern bool_t zdr_NSM1_UNMONargs ();
-extern bool_t zdr_NSM1_UNMONALLres ();
-extern bool_t zdr_NSM1_UNMONALLargs ();
-extern bool_t zdr_NSM1_NOTIFYargs ();
+extern uint32_t zdr_nsmstat1 ();
+extern uint32_t zdr_nsm_my_id ();
+extern uint32_t zdr_nsm_mon_id ();
+extern uint32_t zdr_NSM1_STATres ();
+extern uint32_t zdr_NSM1_STATargs ();
+extern uint32_t zdr_NSM1_MONres ();
+extern uint32_t zdr_NSM1_MONargs ();
+extern uint32_t zdr_NSM1_UNMONres ();
+extern uint32_t zdr_NSM1_UNMONargs ();
+extern uint32_t zdr_NSM1_UNMONALLres ();
+extern uint32_t zdr_NSM1_UNMONALLargs ();
+extern uint32_t zdr_NSM1_NOTIFYargs ();
 
 #endif /* K&R C */