Lines Matching defs:line
88 static int get_line(RemoteSource *source, char **line, size_t *size) {
145 *line = source->buf + source->offset;
270 static int process_dunder(RemoteSource *source, char *line, size_t n) {
274 assert(line);
276 assert(line[n-1] == '\n');
281 timestamp = startswith(line, "__CURSOR=");
286 timestamp = startswith(line, "__REALTIME_TIMESTAMP=");
289 line[n-1] = '\0';
298 timestamp = startswith(line, "__MONOTONIC_TIMESTAMP=");
301 line[n-1] = '\0';
310 timestamp = startswith(line, "__");
312 log_notice("Unknown dunder line %s", line);
325 char *line, *sep;
330 r = get_line(source, &line, &n);
338 assert(line[n-1] == '\n');
341 log_trace("Received empty line, event is ready");
345 r = process_dunder(source, line, n);
354 sep = memchr(line, '=', n);
359 r = iovw_put(&source->iovw, line, n);
364 line[n-1] = '=';
372 log_trace("Received: %.*s (%s)", (int) n, line, sep ? "text" : "binary");