queue() renamed to user_queue().

This commit is contained in:
default 2023-02-02 04:47:59 +01:00
parent ee77e45abb
commit 106c94ef86
3 changed files with 8 additions and 7 deletions

View file

@ -1163,7 +1163,7 @@ void process_queue_item(snac *snac, xs_dict *q_item)
void process_queue(snac *snac) void process_queue(snac *snac)
/* processes the queue */ /* processes the queue */
{ {
xs *list = queue(snac); xs *list = user_queue(snac);
xs_list *p = list; xs_list *p = list;
xs_str *fn; xs_str *fn;

7
data.c
View file

@ -1411,13 +1411,14 @@ void enqueue_message(snac *snac, xs_dict *msg)
} }
d_char *queue(snac *snac) xs_list *user_queue(snac *snac)
/* returns a list with filenames that can be dequeued */ /* returns a list with filenames that can be dequeued */
{ {
xs *spec = xs_fmt("%s/queue/" "*.json", snac->basedir); xs *spec = xs_fmt("%s/queue/" "*.json", snac->basedir);
d_char *list = xs_list_new(); xs_list *list = xs_list_new();
time_t t = time(NULL); time_t t = time(NULL);
char *p, *v; xs_list *p;
xs_val *v;
xs *fns = xs_glob(spec, 0, 0); xs *fns = xs_glob(spec, 0, 0);

2
snac.h
View file

@ -129,7 +129,7 @@ void enqueue_output_by_actor(snac *snac, xs_dict *msg, xs_str *actor, int retrie
void enqueue_email(snac *snac, xs_str *msg, int retries); void enqueue_email(snac *snac, xs_str *msg, int retries);
void enqueue_message(snac *snac, char *msg); void enqueue_message(snac *snac, char *msg);
d_char *queue(snac *snac); xs_list *user_queue(snac *snac);
xs_dict *dequeue(const char *fn); xs_dict *dequeue(const char *fn);
void purge(snac *snac); void purge(snac *snac);