X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=nlm%2Flibnfs-raw-nlm.h;h=08ee0c7d0c15fed795cfe25cc383f171c55fe49e;hb=d663ff20d0e69e8ce026210893398f870b981d97;hp=6437aa4ddbbacde76f7606c466d867cce9c187d7;hpb=f537d520d11e96f2af7e56733c57ee0fea204a88;p=deb_libnfs.git diff --git a/nlm/libnfs-raw-nlm.h b/nlm/libnfs-raw-nlm.h index 6437aa4..08ee0c7 100644 --- a/nlm/libnfs-raw-nlm.h +++ b/nlm/libnfs-raw-nlm.h @@ -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,20 +35,13 @@ #ifndef _NLM_H_RPCGEN #define _NLM_H_RPCGEN -#include + + #ifdef __cplusplus extern "C" { #endif -#if defined(ANDROID) -typedef long long int quad_t; -typedef long long unsigned u_quad_t; -#endif -#if defined(WIN32) -typedef long long int quad_t; -typedef long long unsigned u_quad_t; -#endif struct nlm_fh4 { struct { @@ -168,54 +190,54 @@ typedef struct NLM4_GRANTEDres NLM4_GRANTEDres; #if defined(__STDC__) || defined(__cplusplus) #define NLM4_NULL 0 -extern void * nlm4_null_4(void *, CLIENT *); +extern void * nlm4_null_4(void *, void *); extern void * nlm4_null_4_svc(void *, struct svc_req *); #define NLM4_TEST 1 -extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, CLIENT *); +extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, void *); extern NLM4_TESTres * nlm4_test_4_svc(NLM4_TESTargs *, struct svc_req *); #define NLM4_LOCK 2 -extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, CLIENT *); +extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, void *); extern NLM4_LOCKres * nlm4_lock_4_svc(NLM4_LOCKargs *, struct svc_req *); #define NLM4_CANCEL 3 -extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, CLIENT *); +extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, void *); extern NLM4_CANCres * nlm4_cancel_4_svc(NLM4_CANCargs *, struct svc_req *); #define NLM4_UNLOCK 4 -extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, CLIENT *); +extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, void *); extern NLM4_UNLOCKres * nlm4_unlock_4_svc(NLM4_UNLOCKargs *, struct svc_req *); #define NLM4_GRANT 5 -extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, CLIENT *); +extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, void *); extern NLM4_GRANTEDres * nlm4_grant_4_svc(NLM4_GRANTEDargs *, struct svc_req *); #define NLM4_TEST_MSG 6 -extern void * nlm4_test_msg_4(NLM4_TESTargs *, CLIENT *); +extern void * nlm4_test_msg_4(NLM4_TESTargs *, void *); extern void * nlm4_test_msg_4_svc(NLM4_TESTargs *, struct svc_req *); #define NLM4_LOCK_MSG 7 -extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, CLIENT *); +extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, void *); extern void * nlm4_lock_msg_4_svc(NLM4_LOCKargs *, struct svc_req *); #define NLM4_CANCEL_MSG 8 -extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, CLIENT *); +extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, void *); extern void * nlm4_cancel_msg_4_svc(NLM4_CANCargs *, struct svc_req *); #define NLM4_UNLOCK_MSG 9 -extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, CLIENT *); +extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, void *); extern void * nlm4_unlock_msg_4_svc(NLM4_UNLOCKargs *, struct svc_req *); #define NLM4_GRANT_MSG 10 -extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, CLIENT *); +extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, void *); extern void * nlm4_grant_msg_4_svc(NLM4_GRANTEDargs *, struct svc_req *); #define NLM4_TEST_RES 11 -extern void * nlm4_test_res_4(NLM4_TESTres *, CLIENT *); +extern void * nlm4_test_res_4(NLM4_TESTres *, void *); extern void * nlm4_test_res_4_svc(NLM4_TESTres *, struct svc_req *); #define NLM4_LOCK_RES 12 -extern void * nlm4_lock_res_4(NLM4_LOCKres *, CLIENT *); +extern void * nlm4_lock_res_4(NLM4_LOCKres *, void *); extern void * nlm4_lock_res_4_svc(NLM4_LOCKres *, struct svc_req *); #define NLM4_CANCEL_RES 13 -extern void * nlm4_cancel_res_4(NLM4_CANCres *, CLIENT *); +extern void * nlm4_cancel_res_4(NLM4_CANCres *, void *); extern void * nlm4_cancel_res_4_svc(NLM4_CANCres *, struct svc_req *); #define NLM4_UNLOCK_RES 14 -extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, CLIENT *); +extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, void *); extern void * nlm4_unlock_res_4_svc(NLM4_UNLOCKres *, struct svc_req *); #define NLM4_GRANT_RES 15 -extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, CLIENT *); +extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, void *); extern void * nlm4_grant_res_4_svc(NLM4_GRANTEDres *, struct svc_req *); -extern int nlm_program_4_freeresult (SVCXPRT *, zdrproc_t, caddr_t); +extern int nlm_program_4_freeresult (void *, zdrproc_t, caddr_t); #else /* K&R C */ #define NLM4_NULL 0