Files
2024-02-13 13:37:55 -06:00

15 lines
358 B
C

/*
* 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;
}