Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4350 | Rev 4505 | ||
|---|---|---|---|
| Line 47... | Line 47... | ||
| 47 | 47 | ||
| 48 | #include "../structures/measured_strings.h" |
48 | #include "../structures/measured_strings.h" |
| 49 | 49 | ||
| 50 | //#include "net_messages.h" |
50 | //#include "net_messages.h" |
| 51 | 51 | ||
| 52 | int net_get_device_conf_req( int net_phone, device_id_t device_id, measured_string_ref * configuration, int count, char ** data ){ |
52 | int net_get_device_conf_req( int net_phone, device_id_t device_id, measured_string_ref * configuration, size_t count, char ** data ){ |
| 53 | return generic_translate_req( net_phone, NET_NET_GET_DEVICE_CONF, device_id, 0, * configuration, count, configuration, data ); |
53 | return generic_translate_req( net_phone, NET_NET_GET_DEVICE_CONF, device_id, 0, * configuration, count, configuration, data ); |
| 54 | } |
54 | } |
| 55 | 55 | ||
| 56 | int net_get_conf_req( int net_phone, measured_string_ref * configuration, int count, char ** data ){ |
56 | int net_get_conf_req( int net_phone, measured_string_ref * configuration, size_t count, char ** data ){ |
| 57 | return generic_translate_req( net_phone, NET_NET_GET_DEVICE_CONF, 0, 0, * configuration, count, configuration, data ); |
57 | return generic_translate_req( net_phone, NET_NET_GET_DEVICE_CONF, 0, 0, * configuration, count, configuration, data ); |
| 58 | } |
58 | } |
| 59 | 59 | ||
| 60 | void net_free_settings( measured_string_ref settings, char * data ){ |
60 | void net_free_settings( measured_string_ref settings, char * data ){ |
| 61 | if( settings ) free( settings ); |
61 | if( settings ) free( settings ); |