mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
queue() renamed to user_queue().
This commit is contained in:
parent
ee77e45abb
commit
106c94ef86
3 changed files with 8 additions and 7 deletions
|
@ -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
11
data.c
|
@ -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
2
snac.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue