pike.git
/
src
/
modules
/
_Protocols_DNS_SD
/
sd.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Protocols_DNS_SD/sd.c:316:
} #endif /* defined(HAVE_HOWL) && !defined(HAVE_DNS_SD) */ static void f_update_txt(INT32 args) {
-
check_all_args(
"Service->update_txt"
, args,
+
check_all_args(
NULL
, args,
BIT_STRING, /* txt */ 0); /* Can only be called if we have valid service */ if (THIS->service_ref) { char *txt = sp[0 - args].u.string->str; int txtlen = sp[0 - args].u.string->len; int err = update_txt_record(THIS, txt, txtlen); if (IS_ERR(err))
pike.git/src/modules/_Protocols_DNS_SD/sd.c:338:
} pop_n_elems(args); } static void f_create(INT32 args) { char *name, *service, *domain, *txt; int port, txtlen, err;
-
check_all_args(
"Service->create"
, args,
+
check_all_args(
NULL
, args,
BIT_STRING, /* name */ BIT_STRING, /* service */ BIT_STRING, /* domain */ BIT_INT, /* port */ BIT_STRING | BIT_VOID, /* txt */ 0); /* Stop existing service if one is running */ stop_service(THIS);