From f7a9c4f522ed0b929627f68012484a501677546d Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 27 May 2008 12:24:23 +0000 Subject: (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp --- src/engine_gui.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/engine_gui.h (limited to 'src/engine_gui.h') diff --git a/src/engine_gui.h b/src/engine_gui.h new file mode 100644 index 000000000..12957da92 --- /dev/null +++ b/src/engine_gui.h @@ -0,0 +1,16 @@ +/* $Id$ */ + +/** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */ + +#ifndef ENGINE_GUI_H +#define ENGINE_GUI_H + +#include + +typedef std::vector EngineList; + +typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort() +void EngList_Sort(EngineList *el, EngList_SortTypeFunction compare); ///< qsort of the engine list +void EngList_SortPartial(EngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list + +#endif /* ENGINE_GUI_H */ -- cgit v1.2.3-54-g00ecf