diff options
author | default <nobody@localhost> | 2023-04-30 06:39:55 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-30 06:39:55 +0200 |
commit | ede4d6f2dc8f862337724054dcfeb31cbaa89bcc (patch) | |
tree | 2a3c0f5ee89a0825cc4902de1f2ace86873e8250 /data.c | |
parent | 6b632e1ee9450f12c51442264e402753f8dfe325 (diff) |
Some instance timeline work.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1046,7 +1046,7 @@ xs_list *timeline_top_level(snac *snac, xs_list *list) } -d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show) +xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show) /* returns a timeline (with all entries) */ { int c_max; @@ -1064,7 +1064,7 @@ d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int sho } -d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show) +xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show) /* returns a timeline (only top level entries) */ { xs *list = timeline_simple_list(snac, idx_name, skip, show); @@ -1073,6 +1073,15 @@ d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show) } +xs_list *timeline_instance_list(int skip, int show) +/* returns the timeline for the full instance */ +{ + xs *idx = xs_fmt("%s/public.idx", srv_basedir); + + return index_list_desc(idx, skip, show); +} + + /** following **/ /* this needs special treatment and cannot use the object db as is, |