aboutsummaryrefslogtreecommitdiff
path: root/src/im-asapo.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-05-03 15:28:46 +0200
committerThomas White <taw@physics.org>2022-06-02 12:15:38 +0200
commit992e25b007f8a418fd7860cc34a441932cdf023c (patch)
treeb949c905232ece7bbce237eacde6b4834d4a08e4 /src/im-asapo.c
parent7cae8ed0e420173b17aec11329411d4284de32cd (diff)
indexamajig: Track metadata (e.g. for ASAP::O)
Diffstat (limited to 'src/im-asapo.c')
-rw-r--r--src/im-asapo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/im-asapo.c b/src/im-asapo.c
index 48a32ee4..a095c82e 100644
--- a/src/im-asapo.c
+++ b/src/im-asapo.c
@@ -244,7 +244,7 @@ static void skip_to_stream_end(struct im_asapo *a)
void *im_asapo_fetch(struct im_asapo *a, size_t *pdata_size,
- char **pfilename, char **pevent)
+ char **pmeta, char **pfilename, char **pevent)
{
void *data_copy;
AsapoMessageMetaHandle meta;
@@ -295,6 +295,7 @@ void *im_asapo_fetch(struct im_asapo *a, size_t *pdata_size,
}
memcpy(data_copy, asapo_message_data_get_as_chars(data), msg_size);
+ *pmeta = strdup(asapo_message_meta_get_metadata(meta));
*pfilename = strdup(asapo_message_meta_get_name(meta));
*pevent = strdup("//");