From ea11aeeef0218fd58aeb2e141c57115716784c82 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 10 Mar 2009 18:41:02 +0000 Subject: [PATCH] Mention wxQsort() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/utils.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/interface/wx/utils.h b/interface/wx/utils.h index d1121780e6..534b610ea6 100644 --- a/interface/wx/utils.h +++ b/interface/wx/utils.h @@ -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 -- 2.45.2