You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#ifndef _LIBNFS_PRIVATE_H_
+#define _LIBNFS_PRIVATE_H_
+
#ifdef HAVE_CONFIG_H
#include "config.h" /* HAVE_SOCKADDR_STORAGE ? */
#endif
#include "libnfs-zdr.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
#if !defined(HAVE_SOCKADDR_STORAGE) && !defined(WIN32)
/*
/* fragment reassembly */
struct rpc_fragment *fragments;
-
+
/* parameters passable via URL */
int tcp_syncnt;
+ int uid;
+ int gid;
};
struct rpc_pdu {
void rpc_unset_autoreconnect(struct rpc_context *rpc);
void rpc_set_tcp_syncnt(struct rpc_context *rpc, int v);
+void rpc_set_uid(struct rpc_context *rpc, int uid);
+void rpc_set_gid(struct rpc_context *rpc, int gid);
int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size);
void rpc_free_all_fragments(struct rpc_context *rpc);
const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !_LIBNFS_PRIVATE_H_ */