Lines Matching +defs:val +defs:message
127 char *val;
134 err = nvlist_lookup_string(ah->asr_cfg, name, &val);
137 val = default_value;
139 if (val == NULL || val[0] == '\0')
140 val = default_value;
142 return (val);
162 char *val = asr_getprop_str(ah, name);
165 if (val == NULL) {
170 if (strcmp(ASR_VALUE_TRUE, val) == 0)
172 else if (strcmp(ASR_VALUE_FALSE, val) == 0)
185 char *val = asr_getprop_str(ah, name);
188 if (val == NULL) {
195 lval = atol(val);
236 strcharcmp(char c, char *val)
238 while (val[0] == c)
239 val++;
240 return (val[0] == '\0');
431 * Gets the message signing key length to be used when generating new
483 * Gets the registered message signing keys.
906 * Cleans up an ASR message and its contents.
919 * Converts a new ASR message from a buffer and the given type.
940 * message transmission on that handle.
949 char *r, *val;
952 if (nvlist_lookup_string(reg, r, &val) == 0)
953 err = nvlist_add_string(cfg, r, val);
1064 * Sends the given telemetry data. If the message isn't already signed
1090 * Creates an name value list containing ASR common message header properties.
1117 * Creates an name value list containing ASR common message header properties
1118 * and sets the time of the message in the supplied time buffer.
1157 "<message xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\n");
1167 err |= asr_buf_append_xml_nvtoken(buf, 1, "message-uuid", uuidbuf);
1169 "timezone", "UTC", "message-time", timebuf);
1213 err |= asr_buf_append_xml_end(msg, 0, "message");
1218 * Creates an ASR activation message.
1281 * Creates an ASR deactivation message. This message gets sent if registration
1311 * Creates and ASR heartbeat message.
1341 * Creates an ASR test message that simulates a fault on the back end and
1378 err |= asr_buf_append_xml_nv(buf, pad, "message-id", "TESTCREATE");
1409 * Creates a message that can get the activation status of the devices for
1454 * Creates a message that identifies a proactive change to the device state.
1496 asr_log(asr_handle_t *ah, const char *level, const char *message)
1505 (void) fprintf(logfile, "[ %s %s ] %s\n", level, timebuf, message);
1552 * Logs the ASR error with the given errno and message.
1578 * Logs an informational message to the ASR log.
1590 * Logs a debug message to the ASR log.