X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=server.c;h=fc81b9440150f886af47b97ce77878f937959344;hb=71929f2e901067bf1c8d9693ab27ef844d37b148;hp=b5063e2dfc2a7bd66c9b25836438e6c4677167c7;hpb=abfb661f35e99e99c09a94d84839356d905af080;p=paraslash.git diff --git a/server.c b/server.c index b5063e2d..fc81b944 100644 --- a/server.c +++ b/server.c @@ -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)