Function shadow_rs::cshadow::address_new

source ยท
pub unsafe extern "C-unwind" fn address_new(
    hostID: HostId,
    mac: guint,
    ip: guint32,
    name: *const gchar,
    isLocal: gboolean,
) -> *mut Address
Expand description

Create a new Address structure with the given IP and Hostname. The hostname is copied and stored internally, so the caller retains its ownership.

@param mac the mac address to associate with this Address structure @param ip the IP address to associate with this Address structure, in network order @param name the name to associate with this Address structure @return a new Address structure,

@see address_free()