mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-29 13:04:32 +08:00
Cleanup.
This commit is contained in:
@@ -101,21 +101,21 @@ typedef struct __rpc_client {
|
||||
struct clnt_ops {
|
||||
/* call remote procedure */
|
||||
enum clnt_stat (*cl_call)(struct __rpc_client *,
|
||||
rpcproc_t, xdrproc_t, void *, xdrproc_t,
|
||||
void *, struct timeval);
|
||||
u_long, xdrproc_t, caddr_t, xdrproc_t,
|
||||
caddr_t, struct timeval);
|
||||
/* abort a call */
|
||||
void (*cl_abort)(struct __rpc_client *);
|
||||
void (*cl_abort)(void);
|
||||
/* get specific error code */
|
||||
void (*cl_geterr)(struct __rpc_client *,
|
||||
struct rpc_err *);
|
||||
/* frees results */
|
||||
bool_t (*cl_freeres)(struct __rpc_client *,
|
||||
xdrproc_t, void *);
|
||||
xdrproc_t, caddr_t);
|
||||
/* destroy this structure */
|
||||
void (*cl_destroy)(struct __rpc_client *);
|
||||
/* the ioctl() of rpc */
|
||||
bool_t (*cl_control)(struct __rpc_client *, u_int,
|
||||
void *);
|
||||
bool_t (*cl_control)(struct __rpc_client *, int,
|
||||
char *);
|
||||
} *cl_ops;
|
||||
void *cl_private; /* private stuff */
|
||||
} CLIENT;
|
||||
|
||||
@@ -84,12 +84,12 @@ typedef struct __rpc_svcxprt {
|
||||
enum xprt_stat (*xp_stat)(struct __rpc_svcxprt *);
|
||||
/* get arguments */
|
||||
bool_t (*xp_getargs)(struct __rpc_svcxprt *, xdrproc_t,
|
||||
void *);
|
||||
caddr_t args_ptr);
|
||||
/* send reply */
|
||||
bool_t (*xp_reply)(struct __rpc_svcxprt *, struct rpc_msg *);
|
||||
/* free mem allocated for args */
|
||||
bool_t (*xp_freeargs)(struct __rpc_svcxprt *, xdrproc_t,
|
||||
void *);
|
||||
caddr_t args_ptr);
|
||||
/* destroy this struct */
|
||||
void (*xp_destroy)(struct __rpc_svcxprt *);
|
||||
} *xp_ops;
|
||||
|
||||
Reference in New Issue
Block a user