+/* Declare an error, setting the error field in the handle. */
+#define set_error(fs...) \
+ wrap_int_set_error ((struct wrap_internal_h *)w, __func__, fs)
+#define set_error_errno(fs...) \
+ wrap_int_set_error_errno ((struct wrap_internal_h *)w, (errno), __func__, fs)
+
+extern void wrap_int_connect_ssh (wrap_h *w);
+extern void wrap_int_make_request (wrap_h *w, int proc_nr, const void *args, void *ret);
+extern void wrap_int_make_request_xdr (wrap_h *w, int proc_nr, const void *args, void *ret);
+extern void wrap_int_set_error (struct wrap_internal_h *w, const char *func, const char *fs, ...);
+extern void wrap_int_set_error_errno (struct wrap_internal_h *w, int errnum, const char *func, const char *fs, ...);
+
+/* See lib/internal-procs.c for the static contents of this table.
+ * The table is indexed by wrap_int_<name>_num. These are defined in
+ * lib/internal-procs.h.
+ */
+struct proc_table {
+ const char *name; /* The name of this entry point. */
+
+ /* XDR encode/decode functions for serializing the args and ret. */
+ xdrproc_t xdr_args;
+ xdrproc_t xdr_ret;
+};
+
+extern const struct proc_table wrap_int_proc_table[];
+
+#include "internal-procs.h"
+