mUPnP for C
device_advertiser.c File Reference
#include <mupnp/device.h>
#include <mupnp/util/log.h>
#include <mupnp/util/time.h>

Functions

static void mupnp_device_advertiser_action (mUpnpThread *thread)
 
bool mupnp_device_advertiser_start (mUpnpDevice *dev)
 
bool mupnp_device_advertiser_stop (mUpnpDevice *dev)
 
bool mupnp_device_advertiser_isrunning (mUpnpDevice *dev)
 

Function Documentation

◆ mupnp_device_advertiser_action()

static void mupnp_device_advertiser_action ( mUpnpThread * thread)
static

mupnp_device_advertiser_action

Function run as a UPnP device advertisement thread.

Parameters
threadThe thread context that this function is running in

Get the device struct that this function is advertising.

Lease time

◆ mupnp_device_advertiser_isrunning()

bool mupnp_device_advertiser_isrunning ( mUpnpDevice * dev)

mupnp_device_advertiser_isrunning

Check if the advertiser has been started

Parameters
devDevice that is being advertised

◆ mupnp_device_advertiser_start()

bool mupnp_device_advertiser_start ( mUpnpDevice * dev)

mupnp_device_advertiser_start

Start the advertiser thread for the given device

Parameters
devThe device that is to be advertised

◆ mupnp_device_advertiser_stop()

bool mupnp_device_advertiser_stop ( mUpnpDevice * dev)

mupnp_device_advertiser_stop

Stop the advertiser thread for the given device

Parameters
devDevice that is being advertised