mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
15 lines
344 B
C
15 lines
344 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;
|
||
|
}
|