Lines Matching refs:error
4 #include "log-error-buffer.h"
24 struct log_error error;
52 const struct log_error *error)
54 size_t prefix_size = strlen(error->prefix)+1;
55 size_t text_size = strlen(error->text)+1;
64 data->type = error->type;
65 data->timestamp = error->timestamp;
66 memcpy(data->prefix_text, error->prefix, prefix_size);
67 memcpy(data->prefix_text + prefix_size, error->text, text_size);
107 iter->error.type = data->type;
108 iter->error.timestamp = data->timestamp;
109 iter->error.prefix = (const void *)data->prefix_text;
110 iter->error.text = (const void *)(data->prefix_text +
111 strlen(iter->error.prefix) + 1);
112 return &iter->error;