diff options
| author | default <nobody@localhost> | 2026-08-26 07:59:23 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2026-08-26 07:59:23 +0200 |
| commit | 71a83e6578f910c3baa251e4128208b201ce9e45 (patch) | |
| tree | 1605da24b8574a9dfb14f65ea49a4b4c44ba95e8 /snac.h | |
| parent | 6ae12b03d5566b9119c78d79a96df7ac12b2c636 (diff) | |
Use snac_op in actor_failure().
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -79,6 +79,14 @@ typedef struct { enum { THST_STOP, THST_WAIT, THST_IN, THST_QUEUE } th_state[MAX_THREADS]; } srv_state; +typedef enum { + OP_CHECK = 0, + OP_ADD = 1, + OP_DEL = 2, + OP_LIST = 3, + OP_FIND = 4 +} snac_op; + extern srv_state *p_state; enum { @@ -300,7 +308,7 @@ int content_match(const char *file, const xs_dict *msg); xs_list *content_search(snac *user, const char *regex, int priv, int skip, int show, int max_secs, int *timeout); -int actor_failure(const char *actor, int op); +int actor_failure(const char *actor, snac_op op); int instance_failure(const char *url, int op); int grave(const char *objid, int op); |