chiark / gitweb /
disobedience, playrtp: Have `playrtp' handle volume control.
[disorder] / lib / vector.h
index 31dfeda5e86ffee911719a8e901a1e927f781cdc..fdef9cf795c710bd9ccf3c17700f08697135137a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2007-2009, 2013 Richard Kettlewell
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -79,6 +79,8 @@ VECTOR_TYPE(vector, char *, xrealloc);
 /** @brief A dynamic string */
 VECTOR_TYPE(dynstr, char, xrealloc_noptr);
 /** @brief A dynamic unicode string */
+VECTOR_TYPE(dynstr_utf16, uint16_t, xrealloc_noptr);
+/** @brief A dynamic wide character string */
 VECTOR_TYPE(dynstr_ucs4, uint32_t, xrealloc_noptr);
 /** @brief A dynamic array of pointers to unicode string */
 VECTOR_TYPE(vector32, uint32_t *, xrealloc);
@@ -94,6 +96,9 @@ static inline void dynstr_append_string(struct dynstr *v, const char *ptr) {
   dynstr_append_bytes(v, ptr, strlen(ptr));
 }
 
+void free_strings(int nvec, char **vec);
+void vector_clear(struct vector *v);
+
 #endif /* VECTOR_H */
 
 /*