libUPnP 1.14.20
upnputil.h File Reference
#include "upnp.h"
#include <errno.h>
Include dependency graph for upnputil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GEMD_OUT_OF_MEMORY   -1
 
#define EVENT_TIMEDOUT   -2
 
#define EVENT_TERMINATE   -3
 
#define ERROR_BUFFER_LEN   (size_t)256
 
#define max(a, b)
 
#define min(a, b)
 

Functions

void linecopy (char dest[LINE_SIZE], const char *src)
 Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer.
 
void namecopy (char dest[NAME_SIZE], const char *src)
 Copy no of bytes spcified by the NAME_SIZE constant, from the source buffer. Null terminate the destination buffer.
 
void linecopylen (char dest[LINE_SIZE], const char *src, size_t srclen)
 Determine if the srclen passed in paramter is less than the permitted LINE_SIZE. If it is use the passed parameter, if not use the permitted LINE_SIZE as the length parameter.
 

Macro Definition Documentation

◆ max

#define max ( a,
b )
Value:
(((a) > (b)) ? (a) : (b))

◆ min

#define min ( a,
b )
Value:
(((a) < (b)) ? (a) : (b))

Function Documentation

◆ linecopy()

void linecopy ( char dest[LINE_SIZE],
const char * src )

Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer.

Parameters
[out]destoutput buffer.
[in]srcinput buffer.

◆ linecopylen()

void linecopylen ( char dest[LINE_SIZE],
const char * src,
size_t srclen )

Determine if the srclen passed in paramter is less than the permitted LINE_SIZE. If it is use the passed parameter, if not use the permitted LINE_SIZE as the length parameter.

Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the destination buffer.

Parameters
[out]destoutput buffer.
[in]srcinput buffer.
[in]srclenbytes to be copied.

◆ namecopy()

void namecopy ( char dest[NAME_SIZE],
const char * src )

Copy no of bytes spcified by the NAME_SIZE constant, from the source buffer. Null terminate the destination buffer.

Parameters
[out]destoutput buffer.
[in]srcinput buffer.

Referenced by check_soapaction_hdr(), and get_dev_service().