X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-raw.h;h=bd23dc11665ac74fb26b3c3f1d60d448a72dba0d;hb=fc01d2a96189edc0c08fb1d757f83c63077b0516;hp=782870773251b3dfbdc3638faece27dfda91b4e1;hpb=77c23b46c022775c2d5fa82c05fd475b7ca01c88;p=deb_libnfs.git diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index 7828707..bd23dc1 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -43,8 +43,6 @@ char *rpc_get_error(struct rpc_context *rpc); #define RPC_STATUS_ERROR 1 #define RPC_STATUS_CANCEL 2 -typedef void (*rpc_cb)(struct rpc_context *rpc, int status, void *data, void *private_data); - /* * Async connection to the tcp port at server:port. * Function returns @@ -66,8 +64,6 @@ int rpc_connect_async(struct rpc_context *rpc, const char *server, int port, rpc */ int rpc_disconnect(struct rpc_context *rpc, char *error); -void rpc_set_error(struct rpc_context *rpc, char *error_string, ...); - /* * PORTMAP FUNCTIONS @@ -196,13 +192,17 @@ int rpc_mount_umntall_async(struct rpc_context *rpc, rpc_cb cb, void *private_da /* * Call MOUNT/EXPORT + * NOTE: You must include 'libnfs-raw-mount.h' to get the definitions of the + * returned structures. + * * Function returns * 0 : The call was initiated. The callback will be invoked when the call completes. * <0 : An error occured when trying to set up the call. The callback will not be invoked. * * When the callback is invoked, status indicates the result: * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. - * data is an exports. + * data is a pointer to an exports pointer: + * exports export = *(exports *)data; * RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * data is the error string. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.