public int virConnectNetworkEventRegisterAny(Network net, int eventID, virConnectNetworkEventGenericCallback cb, IntPtr opaque, virFreeCallback freecb)
 {
     return API.virConnectNetworkEventRegisterAny(_ConnectPtr, Network.GetPtr(net), eventID, cb, opaque, freecb);
 }
 public static Libvirt.virNetworkPtr GetPtr(Network p)
 {
     return p._virNetworkPtr;
 }
 public Libvirt_Pinvoke.CS_Objects.Container.LibvirtContainer<Network> virConnectListAllNetworks(virConnectListAllNetworksFlags flags)
 {
     Network[] nets;
     Libvirt.virNetworkPtr[] ds;
     var ret = API.virConnectListAllNetworks(_ConnectPtr, out ds, flags);
     if (ret > -1)
     {
         nets = new Network[ds.Length];
         for (var i = 0; i < ds.Length; i++)
         {
             nets[i] = new Network(ds[i]);
         }
     }
     else nets = new Network[0];
     return new Libvirt_Pinvoke.CS_Objects.Container.LibvirtContainer<Network>(nets);
 }