summaryrefslogtreecommitdiff
path: root/src/engine_gui.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-05-27 12:24:23 +0000
committerpeter1138 <peter1138@openttd.org>2008-05-27 12:24:23 +0000
commitf7a9c4f522ed0b929627f68012484a501677546d (patch)
tree598591d68e4b9ad6ce1e2e56259ba09418a15ecd /src/engine_gui.h
parent6d46851b61e482965412d2e4b74d1846efefe21d (diff)
downloadopenttd-f7a9c4f522ed0b929627f68012484a501677546d.tar.xz
(svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
Diffstat (limited to 'src/engine_gui.h')
-rw-r--r--src/engine_gui.h16
1 files changed, 16 insertions, 0 deletions
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 <vector>
+
+typedef std::vector<EngineID> 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 */