device/factory: document that some callbacks get an incomplete connection
It's get_connection_parent() and get_connection_iface().
This commit is contained in:
@@ -69,11 +69,15 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
* get_connection_parent:
|
* get_connection_parent:
|
||||||
* @factory: the #NMDeviceFactory
|
* @factory: the #NMDeviceFactory
|
||||||
* @connection: the #NMConnection to return the parent name for, if supported
|
* @connection: the #NMConnection (possibly incomplete) to return the parent name for, if supported
|
||||||
*
|
*
|
||||||
* Given a connection, returns the parent interface name, parent connection
|
* Given a connection, returns the parent interface name, parent connection
|
||||||
* UUID, or parent device permanent hardware address for @connection.
|
* UUID, or parent device permanent hardware address for @connection.
|
||||||
*
|
*
|
||||||
|
* Note that @connection is not necessarily a valid connection.
|
||||||
|
* It might be called during AddAndActivate before the connection is
|
||||||
|
* completed and normalized.
|
||||||
|
*
|
||||||
* Returns: the parent interface name, parent connection UUID, parent
|
* Returns: the parent interface name, parent connection UUID, parent
|
||||||
* device permanent hardware address, or %NULL
|
* device permanent hardware address, or %NULL
|
||||||
*/
|
*/
|
||||||
@@ -82,12 +86,16 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
* get_connection_iface:
|
* get_connection_iface:
|
||||||
* @factory: the #NMDeviceFactory
|
* @factory: the #NMDeviceFactory
|
||||||
* @connection: the #NMConnection to return the interface name for
|
* @connection: the #NMConnection (possibly incomplete) to return the interface name for
|
||||||
* @parent_iface: optional parent interface name for virtual devices
|
* @parent_iface: optional parent interface name for virtual devices
|
||||||
*
|
*
|
||||||
* Given a connection, returns the interface name that a device activating
|
* Given a connection, returns the interface name that a device activating
|
||||||
* that connection would have.
|
* that connection would have.
|
||||||
*
|
*
|
||||||
|
* Note that @connection is not necessarily a valid connection.
|
||||||
|
* It might be called during AddAndActivate before the connection is
|
||||||
|
* completed and normalized.
|
||||||
|
*
|
||||||
* Returns: the interface name, or %NULL
|
* Returns: the interface name, or %NULL
|
||||||
*/
|
*/
|
||||||
char *(*get_connection_iface)(NMDeviceFactory *factory,
|
char *(*get_connection_iface)(NMDeviceFactory *factory,
|
||||||
|
Reference in New Issue
Block a user