diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/nde/NDEString.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/nde/NDEString.h')
-rw-r--r-- | Src/nde/NDEString.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Src/nde/NDEString.h b/Src/nde/NDEString.h new file mode 100644 index 00000000..f7182827 --- /dev/null +++ b/Src/nde/NDEString.h @@ -0,0 +1,31 @@ +/* + Ben Allison benski@winamp.com Nov 14 2007 + Simple reference counted string, to avoid a whole bunch of _wcsdup's in NDE and ml_local + */ + +#pragma once +#include "foundation/types.h" +#include "nx/nxstring.h" + +enum +{ + STRING_IS_WCHAR=0, + STRING_IS_NDESTRING=1, +}; + +#include "nde_defines.h" + +#ifdef __cplusplus +extern "C" { +#endif + + NDE_API wchar_t *ndestring_wcsdup(const wchar_t *str); + NDE_API wchar_t *ndestring_wcsndup(const wchar_t *str, size_t n); + NDE_API wchar_t *ndestring_malloc(size_t str_size); + NDE_API void ndestring_release(wchar_t *str); + NDE_API void ndestring_retain(wchar_t *str); + NDE_API nx_string_t ndestring_get_string(wchar_t *str); + +#ifdef __cplusplus +} +#endif
\ No newline at end of file |