Csilk 0.2.1
A lightweight, high-performance C HTTP web framework
Loading...
Searching...
No Matches
workflow_wal.h
Go to the documentation of this file.
18#ifndef CSILK_WORKFLOW_WAL_H
19#define CSILK_WORKFLOW_WAL_H
20
21#include <stdint.h>
22
23#include "csilk/app/workflow.h"
24
26#define CSILK_WF_MAGIC 0x5746414C /* "WFAL" */
27
44
54typedef struct __attribute__((packed)) {
55 uint32_t magic;
56 uint8_t type;
57 uint32_t timestamp;
58 uint32_t payload_len;
60
74int
75_wf_wal_append(const char* wal_path, csilk_wf_event_type_t type, const void* payload, size_t len);
76
77#endif /* CSILK_WORKFLOW_WAL_H */
AI Workflow engine for the csilk framework.
csilk_wf_event_type_t
Event types recorded in the workflow WAL.
Definition workflow_wal.h:35
@ WF_EV_START
Definition workflow_wal.h:36
@ WF_EV_NODE_FINISH
Definition workflow_wal.h:39
@ WF_EV_END
Definition workflow_wal.h:42
@ WF_EV_NODE_START
Definition workflow_wal.h:37
@ WF_EV_PAUSE
Definition workflow_wal.h:41
int _wf_wal_append(const char *wal_path, csilk_wf_event_type_t type, const void *payload, size_t len)
Append a WAL record to the log file.
Definition workflow_wal.c:48
struct __attribute__((packed))
Packed binary header prefixed to every WAL record.
Definition workflow_wal.h:54
csilk_wf_wal_header_t
Definition workflow_wal.h:59