Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion host/dsig/vllp_alertstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ vllp_alertstream_t *
vllp_alertstream_create(vllp_t *v, void *opaque,
void (*mark)(void *opaque),
void (*raise)(void *opaque, const char *key,
int level, const char *msg),
alert_level_t level, const char *msg),
void (*sweep)(void *opaque))
{
vllp_alertstream_t *va = calloc(1, sizeof(vllp_alertstream_t));
Expand Down
11 changes: 10 additions & 1 deletion host/dsig/vllp_alertstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@

#include <stdint.h>


// Mirors the enum in include/mios/alert.h
typedef enum {
ALERT_LEVEL_NOTICE,
ALERT_LEVEL_WARNING,
ALERT_LEVEL_ATTENTION,
ALERT_LEVEL_ERROR,
} alert_level_t;

struct vllp;
typedef struct vllp_alertstream vllp_alertstream_t;

vllp_alertstream_t *vllp_alertstream_create(struct vllp *v, void *opaque,
void (*mark)(void *opaque),
void (*raise)(void *opaque,
const char *key,
int level,
alert_level_t level,
const char *msg),
void (*sweep)(void *opaque));

Expand Down
Loading