FreeCalypso > hg > fc-selenite
comparison src/g23m-fad/tcpip/rnet/rnet_rt/rnet_rt_api_getuserdata.c @ 1:d393cd9bb723
src/g23m-*: initial import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 04:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:b6a5e36de839 | 1:d393cd9bb723 |
---|---|
1 /** | |
2 * @file rnet_rt_api_getuserdata.c | |
3 * | |
4 * RNET_RT API | |
5 * | |
6 * @author Regis Feneon | |
7 * @version 0.1 | |
8 */ | |
9 | |
10 /* | |
11 * $Id: rnet_rt_api_getuserdata.c,v 1.3 2002/10/30 15:23:34 rf Exp $ | |
12 * $Name: ti_20021030 $ | |
13 * | |
14 * History: | |
15 * | |
16 * Date Author Modification | |
17 * -------------------------------------------------- | |
18 * 3/29/2002 Regis Feneon Create | |
19 * | |
20 * (C) Copyright 2002 by TI, All Rights Reserved | |
21 * | |
22 */ | |
23 | |
24 #include "rnet_cfg.h" | |
25 #ifdef RNET_CFG_REAL_TRANSPORT | |
26 | |
27 #include "rnet_rt_i.h" | |
28 #include "rnet_rt_env.h" | |
29 | |
30 /** | |
31 * Associates an application specific pointer to a connection ID. | |
32 * | |
33 * @param desc Connection identifier. | |
34 * @param user_data Pointer that can be used by an application to store | |
35 * application specific data. | |
36 */ | |
37 | |
38 void * rnet_rt_get_user_data (T_RNET_DESC *desc) | |
39 { | |
40 void *user_data; | |
41 | |
42 /* get user data */ | |
43 //rvf_lock_mutex( &rnet_rt_env_ctrl_blk_p->mutex); | |
44 user_data = ((T_RNET_RT_SOCK *) desc)->user_data; | |
45 //rvf_unlock_mutex( &rnet_rt_env_ctrl_blk_p->mutex); | |
46 | |
47 return( user_data); | |
48 } | |
49 | |
50 #endif /* ifdef RNET_CFG_REAL_TRANSPORT */ | |
51 |