X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=97a172050b59a8f70a49bb45ce0c358fb36dc3df;hp=b5063e2dfc2a7bd66c9b25836438e6c4677167c7;hb=66cfa4ab3cd509b1b7d1b5fb860fc4644a2313ab;hpb=97ad8ac8735dfd7a514aa66e9de54f253440c17d diff --git a/server.c b/server.c index b5063e2d..97a17205 100644 --- a/server.c +++ b/server.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2014 Andre Noll + * Copyright (C) 1997 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -113,6 +113,19 @@ struct server_command_task { struct task *task; }; +/** + * Return the list of tasks for the server process. + * + * This is called from \a com_tasks(). The helper is necessary since command + * handlers can not access the scheduler structure directly. + * + * \return A dynamically allocated string that must be freed by the caller. + */ +char *server_get_tasks(void) +{ + return get_task_list(&sched); +} + static int want_colors(void) { if (conf.color_arg == color_arg_no)