diff options
| author | 2023-02-05 13:35:50 +0100 | |
|---|---|---|
| committer | 2023-02-05 13:35:50 +0100 | |
| commit | 12aedfadfd9c7805bb7138f64695858b6ceca62c (patch) | |
| tree | 7513c57743d6f46e382e0a0cc43a22f9607d79c8 /data.c | |
| parent | Minor README tweak. (diff) | |
| download | snac2-12aedfadfd9c7805bb7138f64695858b6ceca62c.tar.gz snac2-12aedfadfd9c7805bb7138f64695858b6ceca62c.tar.xz snac2-12aedfadfd9c7805bb7138f64695858b6ceca62c.zip | |
New function timeline_get().
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -824,6 +824,13 @@ double timeline_mtime(snac *snac) | |||
| 824 | } | 824 | } |
| 825 | 825 | ||
| 826 | 826 | ||
| 827 | int timeline_get(snac *snac, const char *id, xs_dict **msg) | ||
| 828 | /* gets a message from the timeline */ | ||
| 829 | { | ||
| 830 | return object_get_by_md5(id, msg, NULL); | ||
| 831 | } | ||
| 832 | |||
| 833 | |||
| 827 | int timeline_del(snac *snac, char *id) | 834 | int timeline_del(snac *snac, char *id) |
| 828 | /* deletes a message from the timeline */ | 835 | /* deletes a message from the timeline */ |
| 829 | { | 836 | { |