libUPnP  1.6.17
UpnpString.h
Go to the documentation of this file.
00001 
00002 
00003 #ifndef STRING_H
00004 #define STRING_H
00005 
00006 
00024 #include "UpnpGlobal.h" /* for EXPORT_SPEC */
00025 
00026 
00027 #include <stdlib.h> /* for size_t */
00028 
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif /* __cplusplus */
00033 
00034 
00038 typedef struct s_UpnpString UpnpString;
00039 
00040 
00046 EXPORT_SPEC UpnpString *UpnpString_new();
00047 
00048 
00052 EXPORT_SPEC void UpnpString_delete(
00054         UpnpString *p);
00055 
00056 
00062 EXPORT_SPEC UpnpString *UpnpString_dup(
00064         const UpnpString *p);
00065 
00066 
00070 EXPORT_SPEC void UpnpString_assign(
00072         UpnpString *p,
00074         const UpnpString *q);
00075 
00076 
00082 EXPORT_SPEC size_t UpnpString_get_Length(
00084         const UpnpString *p);
00085 
00086 
00091 EXPORT_SPEC void UpnpString_set_Length(
00093         UpnpString *p,
00095         size_t n);
00096 
00097 
00103 EXPORT_SPEC const char *UpnpString_get_String(
00105         const UpnpString *p);
00106 
00107 
00111 EXPORT_SPEC int UpnpString_set_String(
00113         UpnpString *p,
00115         const char *s);
00116 
00117 
00121 EXPORT_SPEC int UpnpString_set_StringN(
00123         UpnpString *p,
00125         const char *s,
00127         size_t n);
00128 
00129 
00133 EXPORT_SPEC void UpnpString_clear(
00135         UpnpString *p);
00136 
00137 
00143 EXPORT_SPEC int UpnpString_cmp(
00145         UpnpString *p,
00147         UpnpString *q);
00148 
00149 
00155 EXPORT_SPEC int UpnpString_casecmp(
00157         UpnpString *p,
00159         UpnpString *q);
00160 
00161 
00162 #ifdef __cplusplus
00163 }
00164 #endif /* __cplusplus */
00165 
00166 
00167 /* @} UpnpString The UpnpString API */
00168 
00169 
00170 #endif /* STRING_H */
00171