RetroArch
Functions | Variables
portlistingparse.c File Reference
#include <string.h>
#include <stdlib.h>
#include "portlistingparse.h"
#include "minixml.h"
Include dependency graph for portlistingparse.c:

Functions

static UNSIGNED_INTEGER my_atoui (const char *p, int l)
 
static void startelt (void *d, const char *name, int l)
 
static void endelt (void *d, const char *name, int l)
 
static void portlisting_data (void *d, const char *data, int l)
 
void ParsePortListing (const char *buffer, int bufsize, struct PortMappingParserData *pdata)
 
void FreePortListing (struct PortMappingParserData *pdata)
 

Variables

struct {
   const portMappingElt   code
 
   const char *const   str
 
elements []
 

Function Documentation

◆ endelt()

static void endelt ( void d,
const char *  name,
int  l 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FreePortListing()

void FreePortListing ( struct PortMappingParserData pdata)
Here is the call graph for this function:

◆ my_atoui()

static UNSIGNED_INTEGER my_atoui ( const char *  p,
int  l 
)
static
Here is the caller graph for this function:

◆ ParsePortListing()

void ParsePortListing ( const char *  buffer,
int  bufsize,
struct PortMappingParserData pdata 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ portlisting_data()

static void portlisting_data ( void d,
const char *  data,
int  l 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ startelt()

static void startelt ( void d,
const char *  name,
int  l 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ code

◆ elements

const { ... } elements[]
Initial value:
= {
{ PortMappingEntry, "PortMappingEntry"},
{ NewRemoteHost, "NewRemoteHost"},
{ NewExternalPort, "NewExternalPort"},
{ NewProtocol, "NewProtocol"},
{ NewInternalPort, "NewInternalPort"},
{ NewInternalClient, "NewInternalClient"},
{ NewEnabled, "NewEnabled"},
{ NewDescription, "NewDescription"},
{ NewLeaseTime, "NewLeaseTime"},
}
Definition: portlistingparse.h:33
Definition: portlistingparse.h:32
Definition: portlistingparse.h:30
Definition: portlistingparse.h:32
Definition: portlistingparse.h:33
Definition: portlistingparse.h:31
#define NULL
Pointer to 0.
Definition: gctypes.h:65
Definition: portlistingparse.h:34
Definition: portlistingparse.h:35
Definition: portlistingparse.h:31
Definition: portlistingparse.h:34

◆ str

const char* const str