diff options
| author | 2023-04-30 06:39:55 +0200 | |
|---|---|---|
| committer | 2023-04-30 06:39:55 +0200 | |
| commit | ede4d6f2dc8f862337724054dcfeb31cbaa89bcc (patch) | |
| tree | 2a3c0f5ee89a0825cc4902de1f2ace86873e8250 /data.c | |
| parent | Bumped version. (diff) | |
| download | snac2-ede4d6f2dc8f862337724054dcfeb31cbaa89bcc.tar.gz snac2-ede4d6f2dc8f862337724054dcfeb31cbaa89bcc.tar.xz snac2-ede4d6f2dc8f862337724054dcfeb31cbaa89bcc.zip | |
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) | |||
| 1046 | } | 1046 | } |
| 1047 | 1047 | ||
| 1048 | 1048 | ||
| 1049 | d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show) | 1049 | xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show) |
| 1050 | /* returns a timeline (with all entries) */ | 1050 | /* returns a timeline (with all entries) */ |
| 1051 | { | 1051 | { |
| 1052 | int c_max; | 1052 | int c_max; |
| @@ -1064,7 +1064,7 @@ d_char *timeline_simple_list(snac *snac, const char *idx_name, int skip, int sho | |||
| 1064 | } | 1064 | } |
| 1065 | 1065 | ||
| 1066 | 1066 | ||
| 1067 | d_char *timeline_list(snac *snac, const char *idx_name, int skip, int show) | 1067 | xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show) |
| 1068 | /* returns a timeline (only top level entries) */ | 1068 | /* returns a timeline (only top level entries) */ |
| 1069 | { | 1069 | { |
| 1070 | xs *list = timeline_simple_list(snac, idx_name, skip, show); | 1070 | 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) | |||
| 1073 | } | 1073 | } |
| 1074 | 1074 | ||
| 1075 | 1075 | ||
| 1076 | xs_list *timeline_instance_list(int skip, int show) | ||
| 1077 | /* returns the timeline for the full instance */ | ||
| 1078 | { | ||
| 1079 | xs *idx = xs_fmt("%s/public.idx", srv_basedir); | ||
| 1080 | |||
| 1081 | return index_list_desc(idx, skip, show); | ||
| 1082 | } | ||
| 1083 | |||
| 1084 | |||
| 1076 | /** following **/ | 1085 | /** following **/ |
| 1077 | 1086 | ||
| 1078 | /* this needs special treatment and cannot use the object db as is, | 1087 | /* this needs special treatment and cannot use the object db as is, |