libUPnP 1.8.4
Macros | Typedefs | Functions
TemplateInclude.h File Reference

Templates for include files of objects. More...

#include <stdlib.h>
#include "ixml.h"
#include "list.h"
#include "UpnpGlobal.h"
#include "UpnpString.h"
#include "TemplateUndef.h"
Include dependency graph for TemplateInclude.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEMPLATE_PROTOTYPE_COMMON(CLASS)    TEMPLATE_PROTOTYPE_COMMON_AUX(CLASS)
 
#define TEMPLATE_PROTOTYPE_COMMON_AUX(CLASS)
 
#define TEMPLATE_PROTOTYPE_INT(CLASS, MEMBER, TYPE)    TEMPLATE_PROTOTYPE_INT_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_INT_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_BUFFER(CLASS, MEMBER, TYPE)    TEMPLATE_PROTOTYPE_BUFFER_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_BUFFER_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_LIST(CLASS, MEMBER)    TEMPLATE_PROTOTYPE_LIST_AUX(CLASS, MEMBER)
 
#define TEMPLATE_PROTOTYPE_LIST_AUX(CLASS, MEMBER)
 
#define TEMPLATE_PROTOTYPE_OBJECT(CLASS, MEMBER, TYPE)    TEMPLATE_PROTOTYPE_OBJECT_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_OBJECT_AUX(CLASS, MEMBER, TYPE)
 
#define TEMPLATE_PROTOTYPE_STRING(CLASS, MEMBER)    TEMPLATE_PROTOTYPE_STRING_AUX(CLASS, MEMBER)
 
#define TEMPLATE_PROTOTYPE_STRING_AUX(CLASS, MEMBER)
 
#define TEMPLATE_PROTOTYPE_DOMSTRING(CLASS, MEMBER)    TEMPLATE_PROTOTYPE_DOMSTRING_AUX(CLASS, MEMBER)
 
#define TEMPLATE_PROTOTYPE_DOMSTRING_AUX(CLASS, MEMBER)
 
#define EXPAND_CLASS_MEMBER_INT(CLASS, MEMBER, TYPE)   TEMPLATE_PROTOTYPE_INT(CLASS, MEMBER, TYPE)
 
#define EXPAND_CLASS_MEMBER_BUFFER(CLASS, MEMBER, TYPE)   TEMPLATE_PROTOTYPE_BUFFER(CLASS, MEMBER, TYPE)
 
#define EXPAND_CLASS_MEMBER_LIST(CLASS, MEMBER)   TEMPLATE_PROTOTYPE_LIST(CLASS, MEMBER)
 
#define EXPAND_CLASS_MEMBER_OBJECT(CLASS, MEMBER, TYPE)   TEMPLATE_PROTOTYPE_OBJECT(CLASS, MEMBER, TYPE)
 
#define EXPAND_CLASS_MEMBER_STRING(CLASS, MEMBER)   TEMPLATE_PROTOTYPE_STRING(CLASS, MEMBER)
 
#define EXPAND_CLASS_MEMBER_DOMSTRING(CLASS, MEMBER)   TEMPLATE_PROTOTYPE_DOMSTRING(CLASS, MEMBER)
 

Typedefs

typedef struct s_UpnpActionComplete UpnpActionComplete
 

Functions

UpnpActionCompleteUpnpActionComplete_new ()
 
void UpnpActionComplete_delete (UpnpActionComplete *p)
 
UpnpActionCompleteUpnpActionComplete_dup (const UpnpActionComplete *p)
 
int UpnpActionComplete_assign (UpnpActionComplete *p, const UpnpActionComplete *q)
 
int UpnpActionComplete_get_ErrCode (const UpnpActionComplete *p)
 
int UpnpActionComplete_set_ErrCode (UpnpActionComplete *p, int n)
 
const UpnpStringUpnpActionComplete_get_CtrlUrl (const UpnpActionComplete *p)
 
int UpnpActionComplete_set_CtrlUrl (UpnpActionComplete *p, const UpnpString *s)
 
size_t UpnpActionComplete_get_CtrlUrl_Length (const UpnpActionComplete *p)
 
const char * UpnpActionComplete_get_CtrlUrl_cstr (const UpnpActionComplete *p)
 
int UpnpActionComplete_strcpy_CtrlUrl (UpnpActionComplete *p, const char *s)
 
int UpnpActionComplete_strncpy_CtrlUrl (UpnpActionComplete *p, const char *s, size_t n)
 
void UpnpActionComplete_clear_CtrlUrl (UpnpActionComplete *p)
 
IXML_DocumentUpnpActionComplete_get_ActionRequest (const UpnpActionComplete *p)
 
int UpnpActionComplete_set_ActionRequest (UpnpActionComplete *p, IXML_Document *n)
 
IXML_DocumentUpnpActionComplete_get_ActionResult (const UpnpActionComplete *p)
 
int UpnpActionComplete_set_ActionResult (UpnpActionComplete *p, IXML_Document *n)
 

Detailed Description

Templates for include files of objects.

Usage:

Author
Marcelo Roberto Jimenez

Macro Definition Documentation

◆ TEMPLATE_PROTOTYPE_BUFFER_AUX

#define TEMPLATE_PROTOTYPE_BUFFER_AUX (   CLASS,
  MEMBER,
  TYPE 
)
Value:
\
EXPORT_SPEC const TYPE *CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC int CLASS##_set_##MEMBER(CLASS *p, const TYPE *buf); \
EXPORT_SPEC void CLASS##_clear_##MEMBER(CLASS *p); \

◆ TEMPLATE_PROTOTYPE_COMMON_AUX

#define TEMPLATE_PROTOTYPE_COMMON_AUX (   CLASS)
Value:
\
typedef struct s_##CLASS CLASS; \
\ \
EXPORT_SPEC CLASS *CLASS##_new(); \
\ \
EXPORT_SPEC void CLASS##_delete(CLASS *p); \
\ \
EXPORT_SPEC CLASS *CLASS##_dup(const CLASS *p); \
\ \
EXPORT_SPEC int CLASS##_assign(CLASS *p, const CLASS *q); \

◆ TEMPLATE_PROTOTYPE_DOMSTRING_AUX

#define TEMPLATE_PROTOTYPE_DOMSTRING_AUX (   CLASS,
  MEMBER 
)
Value:
\
EXPORT_SPEC const DOMString CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC int CLASS##_set_##MEMBER(CLASS *p, const DOMString s); \
EXPORT_SPEC const char *CLASS##_get_##MEMBER##_cstr(const CLASS *p); \
#define DOMString
The type of DOM strings.
Definition: ixml.h:59

◆ TEMPLATE_PROTOTYPE_INT_AUX

#define TEMPLATE_PROTOTYPE_INT_AUX (   CLASS,
  MEMBER,
  TYPE 
)
Value:
\
EXPORT_SPEC TYPE CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC int CLASS##_set_##MEMBER(CLASS *p, TYPE n); \

◆ TEMPLATE_PROTOTYPE_LIST_AUX

#define TEMPLATE_PROTOTYPE_LIST_AUX (   CLASS,
  MEMBER 
)
Value:
\
EXPORT_SPEC const struct list_head *CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC void CLASS##_add_to_list_##MEMBER(CLASS *p, struct list_head *head); \
EXPORT_SPEC void CLASS##_remove_from_list_##MEMBER(CLASS *p); \
EXPORT_SPEC void CLASS##_replace_in_list_##MEMBER(CLASS *p, struct list_head *new); \
Definition: list.h:58

◆ TEMPLATE_PROTOTYPE_OBJECT_AUX

#define TEMPLATE_PROTOTYPE_OBJECT_AUX (   CLASS,
  MEMBER,
  TYPE 
)
Value:
\
EXPORT_SPEC const TYPE *CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC int CLASS##_set_##MEMBER(CLASS *p, const TYPE *n); \

◆ TEMPLATE_PROTOTYPE_STRING_AUX

#define TEMPLATE_PROTOTYPE_STRING_AUX (   CLASS,
  MEMBER 
)
Value:
\
EXPORT_SPEC const UpnpString *CLASS##_get_##MEMBER(const CLASS *p); \
EXPORT_SPEC int CLASS##_set_##MEMBER(CLASS *p, const UpnpString *s); \
EXPORT_SPEC size_t CLASS##_get_##MEMBER##_Length(const CLASS *p); \
EXPORT_SPEC const char *CLASS##_get_##MEMBER##_cstr(const CLASS *p); \
EXPORT_SPEC int CLASS##_strcpy_##MEMBER(CLASS *p, const char *s); \
EXPORT_SPEC int CLASS##_strncpy_##MEMBER(CLASS *p, const char *s, size_t n); \
EXPORT_SPEC void CLASS##_clear_##MEMBER(CLASS *p); \
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:38

Typedef Documentation

◆ UpnpActionComplete

typedef struct s_UpnpActionComplete UpnpActionComplete
  • DOC_UpnpActionComplete

Function Documentation

◆ UpnpActionComplete_assign()

int UpnpActionComplete_assign ( UpnpActionComplete p,
const UpnpActionComplete q 
)

Assignment operator

◆ UpnpActionComplete_delete()

void UpnpActionComplete_delete ( UpnpActionComplete p)

Destructor

◆ UpnpActionComplete_dup()

UpnpActionComplete * UpnpActionComplete_dup ( const UpnpActionComplete p)

Copy Constructor

◆ UpnpActionComplete_get_ActionRequest()

IXML_Document * UpnpActionComplete_get_ActionRequest ( const UpnpActionComplete p)

DOC_UpnpActionComplete_ActionRequest

◆ UpnpActionComplete_get_ActionResult()

IXML_Document * UpnpActionComplete_get_ActionResult ( const UpnpActionComplete p)

DOC_UpnpActionComplete_ActionResult

◆ UpnpActionComplete_get_CtrlUrl()

const UpnpString * UpnpActionComplete_get_CtrlUrl ( const UpnpActionComplete p)

DOC_UpnpActionComplete_CtrlUrl

◆ UpnpActionComplete_get_ErrCode()

int UpnpActionComplete_get_ErrCode ( const UpnpActionComplete p)

DOC_UpnpActionComplete_ErrCode

◆ UpnpActionComplete_new()

UpnpActionComplete * UpnpActionComplete_new ( )

Constructor