
The fact that we now have an active developer on branch ipv6 made me do this before I would like to. The idea here is to hide libupnp internal data structures from the outside world so that developers can be free to change them without breaking the interface. There is still some work to do before a formal release, but the samples (device and control point) should be working. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@353 119443c7-1b9e-41f8-b6fc-b9c35fce742c
45 lines
845 B
C
45 lines
845 B
C
|
|
|
|
#ifndef STRING_H
|
|
#define STRING_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
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 */
|
|
|