(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.

This commit is contained in:
rubidium
2008-04-19 13:05:05 +00:00
parent af34ce0b5d
commit 081f627018
7 changed files with 71 additions and 31 deletions

View File

@@ -184,35 +184,36 @@ struct plstations_d {
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(plstations_d));
/**
* Set the 'SL_REBUILD' flag for all station lists
* Set the station sort flag for all station-list windows.
* @param sl_flag Sort list flag to set for all station-list windows
*/
void RebuildStationLists()
static void SetStationListsFlag(StationListFlags sl_flag)
{
Window *const *wz;
FOR_ALL_WINDOWS(wz) {
Window *w = *wz;
if (w->window_class == WC_STATION_LIST) {
WP(w, plstations_d).flags |= SL_REBUILD;
WP(w, plstations_d).flags |= sl_flag;
SetWindowDirty(w);
}
}
}
/**
* Set the 'SL_REBUILD' flag for all station lists
*/
void RebuildStationLists()
{
SetStationListsFlag(SL_REBUILD);
}
/**
* Set the 'SL_RESORT' flag for all station lists
*/
void ResortStationLists()
{
Window *const *wz;
FOR_ALL_WINDOWS(wz) {
Window *w = *wz;
if (w->window_class == WC_STATION_LIST) {
WP(w, plstations_d).flags |= SL_RESORT;
SetWindowDirty(w);
}
}
SetStationListsFlag(SL_RESORT);
}
/**