UpnpString.h
Go to the documentation of this file.
#ifndef STRING_H
#define STRING_H
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct s_UpnpString UpnpString;
EXPORT_SPEC UpnpString *UpnpString_new();
EXPORT_SPEC void UpnpString_delete(
UpnpString *p);
EXPORT_SPEC UpnpString *UpnpString_dup(
const UpnpString *p);
EXPORT_SPEC void UpnpString_assign(
UpnpString *p,
const UpnpString *q);
EXPORT_SPEC int UpnpString_get_Length(
const UpnpString *p);
EXPORT_SPEC const char *UpnpString_get_String(
const UpnpString *p);
EXPORT_SPEC void UpnpString_set_String(
UpnpString *p,
const char *s);
EXPORT_SPEC void UpnpString_set_StringN(
UpnpString *p,
const char *s,
int n);
EXPORT_SPEC void UpnpString_clear(
UpnpString *p);
#ifdef __cplusplus
}
#endif /* __cplusplus */
/* @} UpnpString The UpnpString API */
#endif /* STRING_H */
UpnpString_get_Length
int UpnpString_get_Length(const UpnpString *p)
Returns the length of the string.
Definition: UpnpString.c:118
UpnpString_delete
void UpnpString_delete(UpnpString *p)
Destructor.
Definition: UpnpString.c:73
UpnpString_set_StringN
void UpnpString_set_StringN(UpnpString *p, const char *s, int n)
Sets the string from a pointer to char using a maximum of N chars.
Definition: UpnpString.c:138
UpnpString_set_String
void UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
Definition: UpnpString.c:130
UpnpString_get_String
const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
Definition: UpnpString.c:124
UpnpString_assign
void UpnpString_assign(UpnpString *p, const UpnpString *q)
Assignment operator.
Definition: UpnpString.c:110
UpnpString_clear
void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Definition: UpnpString.c:148
UpnpString_new
UpnpString * UpnpString_new()
Constructor.
Definition: UpnpString.c:46
UpnpString_dup
UpnpString * UpnpString_dup(const UpnpString *p)
Copy Constructor.
Definition: UpnpString.c:88
UpnpString
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:35
EXPORT_SPEC
#define EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition: UpnpGlobal.h:82
UpnpGlobal.h
Defines constants that for some reason are not defined on some systems.