diff options
Diffstat (limited to 'vxi11_server.c')
-rw-r--r-- | vxi11_server.c | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/vxi11_server.c b/vxi11_server.c new file mode 100644 index 0000000..cebff63 --- /dev/null +++ b/vxi11_server.c @@ -0,0 +1,225 @@ +/* + * This is sample code generated by rpcgen. + * These are only templates and you can use them + * as a guideline for developing your own functions. + */ + +#include "vxi11.h" +#include "stdio.h" + +Device_Error * +device_abort_1_svc(Device_Link *argp, struct svc_req *rqstp) { + printf("device_abort_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Create_LinkResp * +create_link_1_svc(Create_LinkParms *argp, struct svc_req *rqstp) { + printf("create_link_1_svc()\n"); + static Create_LinkResp result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_WriteResp * +device_write_1_svc(Device_WriteParms *argp, struct svc_req *rqstp) { + printf("device_write_1_svc()\n"); + static Device_WriteResp result; + + printf("%s\n", argp->data.data_val); + + /* + * insert server code here + */ + + //result.size = argp->data.data_len; + result.size = 1; + result.error = 0; + return &result; +} + +Device_ReadResp * +device_read_1_svc(Device_ReadParms *argp, struct svc_req *rqstp) { + printf("device_read_1_svc()\n"); + static Device_ReadResp result; + + /* + * insert server code here + */ + + result.data.data_val = "HELLO!"; + result.data.data_len = 7; + result.error = 0; + result.reason = 0x4; + return &result; +} + +Device_ReadStbResp * +device_readstb_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) { + printf("device_readstb_1_svc()\n"); + static Device_ReadStbResp result; + + /* + * insert server code here + */ + + result.error = 0; + result.stb = 0; + return &result; +} + +Device_Error * +device_trigger_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) { + printf("device_trigger_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + + result.error = 0; + return &result; +} + +Device_Error * +device_clear_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) { + printf("device_clear_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + + result.error = 0; + return &result; +} + +Device_Error * +device_remote_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) { + printf("device_remote_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + + result.error = 0; + return &result; +} + +Device_Error * +device_local_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) { + printf("device_local_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_Error * +device_lock_1_svc(Device_LockParms *argp, struct svc_req *rqstp) { + printf("device_lock_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_Error * +device_unlock_1_svc(Device_Link *argp, struct svc_req *rqstp) { + static Device_Error result; + printf("device_unlock_1_svc()\n"); + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_Error * +device_enable_srq_1_svc(Device_EnableSrqParms *argp, struct svc_req *rqstp) { + printf("device_enable_srq_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + + return &result; +} + +Device_DocmdResp * +device_docmd_1_svc(Device_DocmdParms *argp, struct svc_req *rqstp) { + printf("device_docmd_1_svc()\n"); + static Device_DocmdResp result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_Error * +destroy_link_1_svc(Device_Link *argp, struct svc_req *rqstp) { + printf("destroy_link_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + + return &result; +} + +Device_Error * +create_intr_chan_1_svc(Device_RemoteFunc *argp, struct svc_req *rqstp) { + printf("create_intr_chan_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +Device_Error * +destroy_intr_chan_1_svc(void *argp, struct svc_req *rqstp) { + printf("destroy_intr_chan_1_svc()\n"); + static Device_Error result; + + /* + * insert server code here + */ + result.error = 0; + return &result; +} + +void * +device_intr_srq_1_svc(Device_SrqParms *argp, struct svc_req *rqstp) { + printf("device_intr_srq_1_svc()\n"); + static char * result; + + /* + * insert server code here + */ + + return (void *) &result; +} |