]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Mon Dec 15 10:33:40 CST 2008 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 15:56:04 +0000 (15:56 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 15:56:04 +0000 (15:56 +0000)
  * sofia-sip/heap.h: added protype for su_smoothsort()

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11760 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h

index 50007ce684fd6a41a4632eacf3a12f95f742390d..25142795a731c4288ac3c0680ca7e84a1065b559 100644 (file)
@@ -319,9 +319,6 @@ scope void prefix##_swap(void *h, size_t a, size_t b) \
   type *_heap = h; type _swap = _heap[a]; \
   set(_heap, a, _heap[b]); set(_heap, b, _swap); \
 } \
-void su_smoothsort(void *base, size_t r0, size_t N,            \
-                  int (*less)(void *base, size_t a, size_t b), \
-                  void (*swap)(void *base, size_t a, size_t b));       \
 scope void prefix##sort(heaptype h) \
 { \
   struct prefix##priv { size_t _size, _used; type _heap[1];}; \
@@ -331,4 +328,14 @@ scope void prefix##sort(heaptype h) \
 } \
 extern int const prefix##dummy_heap
 
+#include <sofia-sip/su_types.h>
+
+SOFIA_BEGIN_DECLS
+
+SOFIAPUBFUN void su_smoothsort(void *base, size_t r0, size_t N,
+                              int (*less)(void *base, size_t a, size_t b),
+                              void (*swap)(void *base, size_t a, size_t b));
+
+SOFIA_END_DECLS
+
 #endif /** !defined(SOFIA_SIP_HEAP_H) */