Changes in uspace/lib/net/generic/net_remote.c [14f1db0:2fa0ad9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/generic/net_remote.c
r14f1db0 r2fa0ad9 47 47 #include <net_net_messages.h> 48 48 49 int net_connect_module(services_t service){ 49 int net_connect_module(services_t service) 50 { 50 51 return connect_to_service(SERVICE_NETWORKING); 51 52 } 52 53 53 void net_free_settings(measured_string_ref settings, char * data){ 54 if(settings){ 54 void net_free_settings(measured_string_ref settings, char * data) 55 { 56 if (settings) 55 57 free(settings); 56 } 57 if (data){58 59 if (data) 58 60 free(data); 59 }60 61 } 61 62 62 int net_get_conf_req(int net_phone, measured_string_ref * configuration, size_t count, char ** data){ 63 return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, 0, 0, * configuration, count, configuration, data); 63 int 64 net_get_conf_req(int net_phone, measured_string_ref * configuration, 65 size_t count, char ** data) 66 { 67 return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, 0, 0, 68 *configuration, count, configuration, data); 64 69 } 65 70 66 int net_get_device_conf_req(int net_phone, device_id_t device_id, measured_string_ref * configuration, size_t count, char ** data){ 67 return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, device_id, 0, * configuration, count, configuration, data); 71 int 72 net_get_device_conf_req(int net_phone, device_id_t device_id, 73 measured_string_ref * configuration, size_t count, char ** data) 74 { 75 return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, 76 device_id, 0, *configuration, count, configuration, data); 68 77 } 69 78
Note:
See TracChangeset
for help on using the changeset viewer.