diff options
author | Zhang Chen <zhangchen.fnst@cn.fujitsu.com> | 2016-05-13 15:35:19 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-06-01 09:25:29 +0800 |
commit | 16a3df403b10c4ac347159e39005fd520b2648bb (patch) | |
tree | 50ade2b78e5758951e34c077ae207393fe95813f /device_tree.c | |
parent | d30300f771bffc3964e86472e0c21607521a2e24 (diff) |
net/net: Add SocketReadState for reuse codes
This function is from net/socket.c, move it to net.c and net.h.
Add SocketReadState to make others reuse net_fill_rstate().
suggestion from jason.
v4:
- move 'rs->finalize = finalize' to rs_init()
v3:
- remove SocketReadState init callback
- put finalize callback to net_fill_rstate()
v2:
- rename ReadState to SocketReadState
- add SocketReadState init and finalize callback
v1:
- init patch
Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'device_tree.c')
0 files changed, 0 insertions, 0 deletions