diff options
| author | 2022-09-20 10:49:24 +0200 | |
|---|---|---|
| committer | 2022-09-20 10:49:24 +0200 | |
| commit | 9a01f731d76f5b14f98ecf022a7961e24a3360b9 (patch) | |
| tree | 2be140104d36a764dea594c8351d1fade68c5234 /main.c | |
| parent | Added some timeline functions. (diff) | |
| download | snac2-9a01f731d76f5b14f98ecf022a7961e24a3360b9.tar.gz snac2-9a01f731d76f5b14f98ecf022a7961e24a3360b9.tar.xz snac2-9a01f731d76f5b14f98ecf022a7961e24a3360b9.zip | |
More timeline work.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -27,6 +27,18 @@ int main(int argc, char *argv[]) | |||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | { | 29 | { |
| 30 | xs *list = timeline_list(&snac); | ||
| 31 | char *p, *fn; | ||
| 32 | |||
| 33 | p = list; | ||
| 34 | while (xs_list_iter(&p, &fn)) { | ||
| 35 | xs *tle = timeline_get(&snac, fn); | ||
| 36 | |||
| 37 | printf("%s\n", xs_dict_get(tle, "id")); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | |||
| 41 | { | ||
| 30 | xs *list = user_list(); | 42 | xs *list = user_list(); |
| 31 | char *p, *uid; | 43 | char *p, *uid; |
| 32 | 44 | ||