From 508828c5861bf8487b995df537cbfa0b0b7a8ba4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 8 Apr 2021 17:58:54 +0200 Subject: Add with_me parameter to libcontacts_list_contacts and libcontacts_load_contacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcontacts_load_contacts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcontacts_load_contacts.c') diff --git a/libcontacts_load_contacts.c b/libcontacts_load_contacts.c index 0bb0b86..8d44a9a 100644 --- a/libcontacts_load_contacts.c +++ b/libcontacts_load_contacts.c @@ -3,7 +3,7 @@ int -libcontacts_load_contacts(struct libcontacts_contact ***contactsp, const struct passwd *user) +libcontacts_load_contacts(struct libcontacts_contact ***contactsp, const struct passwd *user, int with_me) { int saved_errno = errno; char **ids; @@ -13,7 +13,7 @@ libcontacts_load_contacts(struct libcontacts_contact ***contactsp, const struct *contactsp = NULL; - if (libcontacts_list_contacts(&ids, user)) + if (libcontacts_list_contacts(&ids, user, with_me)) return -1; for (n = 0; ids[n]; n++); -- cgit v1.2.3-70-g09d2