|
version 1.14.2.2, 2013/04/02 15:32:03
|
version 1.16.2.3, 2013/07/15 14:54:40
|
|
Line 67 static sched_task_func_t cbProto[SOCK_RAW + 1][4] = {
|
Line 67 static sched_task_func_t cbProto[SOCK_RAW + 1][4] = {
|
| }; |
}; |
| |
|
| |
|
| inline void | void |
| rpc_freeCli(rpc_cli_t * __restrict c) |
rpc_freeCli(rpc_cli_t * __restrict c) |
| { |
{ |
| rpc_srv_t *s = c->cli_parent; |
rpc_srv_t *s = c->cli_parent; |
|
Line 529 end:
|
Line 529 end:
|
| |
|
| /* ------------------------------------------------------ */ |
/* ------------------------------------------------------ */ |
| |
|
| inline void | void |
| rpc_freeBLOBCli(rpc_cli_t * __restrict c) |
rpc_freeBLOBCli(rpc_cli_t * __restrict c) |
| { |
{ |
| rpc_srv_t *s = c->cli_parent; |
rpc_srv_t *s = c->cli_parent; |
|
Line 628 rxBLOB(sched_task_t *task)
|
Line 628 rxBLOB(sched_task_t *task)
|
| } |
} |
| break; |
break; |
| case set: |
case set: |
| if ((b = rpc_srv_registerBLOB(s, ntohl(blob.hdr_len)))) { | if ((b = rpc_srv_registerBLOB(s, ntohl(blob.hdr_len), |
| | ntohl(blob.hdr_ret), task))) { |
| /* set new BLOB variable for reply :) */ |
/* set new BLOB variable for reply :) */ |
| blob.hdr_var = htonl(b->blob_var); |
blob.hdr_var = htonl(b->blob_var); |
| |
|
|
Line 645 rxBLOB(sched_task_t *task)
|
Line 646 rxBLOB(sched_task_t *task)
|
| blob.hdr_cmd = error; |
blob.hdr_cmd = error; |
| blob.hdr_ret = RPC_ERROR(-1); |
blob.hdr_ret = RPC_ERROR(-1); |
| } |
} |
| |
|
| |
schedCancelby(TASK_ROOT(task), taskTIMER, CRITERIA_DATA, |
| |
(void*) (intptr_t) ntohl(blob.hdr_var), NULL); |
| break; |
break; |
| default: |
default: |
| rpc_SetErr(EPROCUNAVAIL, "Unsupported BLOB command %d", blob.hdr_cmd); |
rpc_SetErr(EPROCUNAVAIL, "Unsupported BLOB command %d", blob.hdr_cmd); |
|
Line 826 rpc_srv_initBLOBServer(rpc_srv_t * __restrict srv, u_s
|
Line 830 rpc_srv_initBLOBServer(rpc_srv_t * __restrict srv, u_s
|
| * @srv = RPC Server instance |
* @srv = RPC Server instance |
| * return: none |
* return: none |
| */ |
*/ |
| inline void | void |
| rpc_srv_endBLOBServer(rpc_srv_t * __restrict srv) |
rpc_srv_endBLOBServer(rpc_srv_t * __restrict srv) |
| { |
{ |
| if (!srv) |
if (!srv) |
|
Line 1029 err: /* error condition */
|
Line 1033 err: /* error condition */
|
| * @psrv = RPC Server instance |
* @psrv = RPC Server instance |
| * return: none |
* return: none |
| */ |
*/ |
| inline void | void |
| rpc_srv_endServer(rpc_srv_t ** __restrict psrv) |
rpc_srv_endServer(rpc_srv_t ** __restrict psrv) |
| { |
{ |
| if (!psrv || !*psrv) |
if (!psrv || !*psrv) |