}
#endif
-bool srv_witness_startup(struct WitnessServerState *s)
+bool srv_witness_startup(struct WitnessServerState *s,
+ const char *server_global_name,
+ uint32_t version)
{
- uint32_t version = lp_parm_int(-1, "witness", "max version", 0);
-
switch (version) {
case 1:
s->WitnessServiceVersion = WITNESS_V1;
}
//s->ServerGlobalName = talloc_strdup(s, lp_parm_const_string(-1, "witness", "server global name", lp_netbios_name()));
- s->ServerGlobalName = talloc_strdup(s, lp_netbios_name());
+ s->ServerGlobalName = talloc_strdup(s, server_global_name);
if (s->ServerGlobalName == NULL) {
return false;
}
const char *ipv4_address,
struct witness_notifyResponse **_r);
bool srv_witness_startup_witness_interfaces_from_ctdb(struct WitnessServerState *s);
-bool srv_witness_startup(struct WitnessServerState *s);
+bool srv_witness_startup(struct WitnessServerState *s,
+ const char *server_global_name,
+ uint32_t version);
/**
* @brief CTDB integration functions.