tevent: Define TALLOC_FREE() if it's not defined yet, to allow building
[ira/wip.git] / lib / tevent / tevent_util.h
index 052b302aae38553e1d8a343583d8d269d87b13fe..829cbc2f6e618fb6ecea1431de2fd49fa1c393f0 100644 (file)
@@ -115,3 +115,10 @@ do { \
 
 const char **ev_str_list_add(const char **list, const char *s);
 int ev_set_blocking(int fd, bool set);
+size_t ev_str_list_length(const char **list);
+
+/* Defined here so we can build against older talloc versions that don't
+ * have this define yet. */
+#ifndef TALLOC_FREE
+#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
+#endif