mUPnP for C
interface_list.c File Reference
#include <mupnp/net/interface.h>
#include <mupnp/util/list.h>
#include <mupnp/util/log.h>

Functions

mUpnpNetworkInterfaceListmupnp_net_interfacelist_new ()
 
void mupnp_net_interfacelist_delete (mUpnpNetworkInterfaceList *netIfList)
 
mUpnpNetworkInterfacemupnp_net_interfacelist_get (mUpnpNetworkInterfaceList *netIfList, char *name)
 
void mupnp_net_interfacelist_getchanges (mUpnpNetworkInterfaceList *netIfListOld, mUpnpNetworkInterfaceList *netIfListNew, mUpnpNetworkInterfaceList *netIfListAdded, mUpnpNetworkInterfaceList *netIfListRemoved)
 

Function Documentation

◆ mupnp_net_interfacelist_delete()

void mupnp_net_interfacelist_delete ( mUpnpNetworkInterfaceList * netIfList)

◆ mupnp_net_interfacelist_get()

mUpnpNetworkInterface * mupnp_net_interfacelist_get ( mUpnpNetworkInterfaceList * netIfList,
char * name )

◆ mupnp_net_interfacelist_getchanges()

void mupnp_net_interfacelist_getchanges ( mUpnpNetworkInterfaceList * netIfListOld,
mUpnpNetworkInterfaceList * netIfListNew,
mUpnpNetworkInterfaceList * netIfListAdded,
mUpnpNetworkInterfaceList * netIfListRemoved )

Gets changes in the two given (aka old and new) interface lists. Changes are resolved based on IP-addresses.

Parameters
netIfListOldList of the old interfaces. It is changed!
netIfListNewList of the new interfaces. It is changed!
netIfListAddedList to store interfaces, which were in netIfListNew, but were not in netIfListOld. May be NULL.
netIfListRemovedList to store interfaces, which were in netIfListOld, but were not in netIfListNew.

◆ mupnp_net_interfacelist_new()

mUpnpNetworkInterfaceList * mupnp_net_interfacelist_new ( void )