]> git.saurik.com Git - wxWidgets.git/commitdiff
Mention wxQsort()
authorRobert Roebling <robert@roebling.de>
Tue, 10 Mar 2009 18:41:02 +0000 (18:41 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 10 Mar 2009 18:41:02 +0000 (18:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/utils.h

index d1121780e6e196fa2297de8b673d3a8393c29608..534b610ea66dee07b33cefe800b4918e51392fbe 100644 (file)
@@ -422,6 +422,27 @@ wxString wxLoadUserResource(const wxString& resourceName,
 */
 void wxPostDelete(wxObject* object);
 
+
+/**
+    Compare function type for use with wxQsort()
+
+    @header{wx/utils.h}
+*/
+extern "C"
+{
+typedef int (wxCMPFUNC_CONV *CMPFUNCDATA)(const void* pItem1, const void* pItem2, const void* user_data);
+}
+
+/**
+    Function for performing a qsort operation including a user data
+    parameter.
+
+    @header{wx/utils.h}
+*/
+void wxQsort(void *const pbase, size_t total_elems,
+             size_t size, CMPFUNCDATA cmp, const void* user_data);
+
+
 /**
     Under X only, sets the current display name. This is the X host and display
     name such as "colonsay:0.0", and the function indicates which display