1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00
putty-source/utils/conf_launchable.c

15 lines
344 B
C
Raw Normal View History

/*
* Determine whether or not a Conf represents a session which can
* sensibly be launched right now.
*/
#include "putty.h"
bool conf_launchable(Conf *conf)
{
if (conf_get_int(conf, CONF_protocol) == PROT_SERIAL)
return conf_get_str(conf, CONF_serline)[0] != 0;
else
return conf_get_str(conf, CONF_host)[0] != 0;
}