network: Add a NetObject->edit vfunc for the different devices to use

This commit is contained in:
Richard Hughes 2012-07-20 09:08:53 +01:00
parent a808633484
commit 62b8a4c8bb
5 changed files with 42 additions and 14 deletions

View file

@ -167,6 +167,14 @@ net_object_refresh (NetObject *object)
klass->refresh (object);
}
void
net_object_edit (NetObject *object)
{
NetObjectClass *klass = NET_OBJECT_GET_CLASS (object);
if (klass->edit != NULL)
klass->edit (object);
}
/**
* net_object_get_property:
**/