diff internal.h @ 5946:28ca2d77f997 libavformat

Move the internal function declarations in avformat.h to internal.h.
author stefano
date Sun, 11 Apr 2010 21:44:23 +0000
parents fd37c39041cd
children b740f4918397
line wrap: on
line diff
--- a/internal.h	Sun Apr 11 12:21:30 2010 +0000
+++ b/internal.h	Sun Apr 11 21:44:23 2010 +0000
@@ -24,6 +24,28 @@
 #include <stdint.h>
 #include "avformat.h"
 
+void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
+
+#ifdef __GNUC__
+#define dynarray_add(tab, nb_ptr, elem)\
+do {\
+    __typeof__(tab) _tab = (tab);\
+    __typeof__(elem) _elem = (elem);\
+    (void)sizeof(**_tab == _elem); /* check that types are compatible */\
+    ff_dynarray_add((intptr_t **)_tab, nb_ptr, (intptr_t)_elem);\
+} while(0)
+#else
+#define dynarray_add(tab, nb_ptr, elem)\
+do {\
+    ff_dynarray_add((intptr_t **)(tab), nb_ptr, (intptr_t)(elem));\
+} while(0)
+#endif
+
+time_t mktimegm(struct tm *tm);
+struct tm *brktimegm(time_t secs, struct tm *tm);
+const char *small_strptime(const char *p, const char *fmt,
+                           struct tm *dt);
+
 char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase);
 
 void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);