*/
#include <errno.h>
+#include <systemd/sd-id128.h>
#include "event.h"
#include "module.h"
if (ret)
return ret;
+ ret = sd_id128_get_boot(&ev->boot_id);
+ if (ret < 0)
+ return ret;
+
ev->type = ev_type;
ev->ops = ev_type->default_ops;
#ifndef FAULTD_EVENT_H
#define FAULTD_EVENT_H
-#include <time.h>
#include <string.h>
+#include <systemd/sd-id128.h>
+#include <time.h>
#include "uref.h"
#include "list.h"
struct faultd_event {
struct timespec timestamp;
+ sd_id128_t boot_id;
/* TODO: add here some id field */