2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef STRING_H
|
|
|
|
#define STRING_H
|
|
|
|
|
|
|
|
|
2008-05-04 21:56:15 +02:00
|
|
|
/** \file */
|
|
|
|
|
|
|
|
|
2008-04-26 03:20:09 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
2008-05-04 21:56:15 +02:00
|
|
|
/** Type of the string objects inside libupnp. */
|
2008-04-26 03:20:09 +02:00
|
|
|
typedef struct {} UpnpString;
|
|
|
|
|
|
|
|
|
|
|
|
/** Constructor */
|
|
|
|
UpnpString *UpnpString_new();
|
|
|
|
|
|
|
|
/** Destructor */
|
|
|
|
void UpnpString_delete(UpnpString *p);
|
|
|
|
|
|
|
|
/** Copy Constructor */
|
|
|
|
UpnpString *UpnpString_dup(const UpnpString *p);
|
|
|
|
|
|
|
|
/** Assignment operator */
|
|
|
|
void UpnpString_assign(UpnpString *q, const UpnpString *p);
|
|
|
|
|
|
|
|
/** The length of the string */
|
|
|
|
int UpnpString_get_Length(const UpnpString *p);
|
|
|
|
|
|
|
|
/** The pointer to char */
|
|
|
|
const char *UpnpString_get_String(const UpnpString *p);
|
|
|
|
void UpnpString_set_String(UpnpString *p, const char *s);
|
|
|
|
void UpnpString_set_StringN(UpnpString *p, const char *s, int n);
|
|
|
|
|
|
|
|
/* Clears the string, sets its size to zero */
|
|
|
|
void UpnpString_clear(UpnpString *p);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* STRING_H */
|
|
|
|
|