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)
/* processes the queue */
{
xs *list = queue(snac);
xs *list = user_queue(snac);
xs_list *p = list;
xs_str *fn;

11
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 */
{
xs *spec = xs_fmt("%s/queue/" "*.json", snac->basedir);
d_char *list = xs_list_new();
time_t t = time(NULL);
char *p, *v;
xs *spec = xs_fmt("%s/queue/" "*.json", snac->basedir);
xs_list *list = xs_list_new();
time_t t = time(NULL);
xs_list *p;
xs_val *v;
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_message(snac *snac, char *msg);
d_char *queue(snac *snac);
xs_list *user_queue(snac *snac);
xs_dict *dequeue(const char *fn);
void purge(snac *snac);