void connman_device_set_index(struct connman_device *device, int index);
int connman_device_get_index(struct connman_device *device);
void connman_device_set_interface(struct connman_device *device,
- const char *interface, const char *control);
+ const char *interface);
void connman_device_set_ident(struct connman_device *device,
const char *ident);
char *node;
char *address;
char *interface;
- char *control;
char *ident;
int phyindex;
unsigned int connections;
g_free(device->node);
g_free(device->name);
g_free(device->address);
- g_free(device->control);
g_free(device->interface);
g_free(device->last_network);
* connman_device_set_interface:
* @device: device structure
* @interface: interface name
- * @control: control interface
*
* Set interface name of device
*/
void connman_device_set_interface(struct connman_device *device,
- const char *interface, const char *control)
+ const char *interface)
{
g_free(device->element.devname);
device->element.devname = g_strdup(interface);
g_free(device->interface);
device->interface = g_strdup(interface);
- g_free(device->control);
- device->control = g_strdup(control);
-
if (device->name == NULL) {
const char *str = type2description(device->type);
if (str != NULL && device->interface != NULL)
enum connman_device_type type;
struct connman_device *device;
char *devname, *ident = NULL;
- char *addr = NULL, *name = NULL, *node = NULL;
+ char *addr = NULL, *name = NULL;
if (index < 0)
return NULL;
}
connman_device_set_index(device, index);
- connman_device_set_interface(device, devname, node);
+ connman_device_set_interface(device, devname);
if (ident != NULL) {
connman_device_set_ident(device, ident);
done:
g_free(devname);
- g_free(node);
free(name);
free(addr);