aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_load_contacts.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-08 17:58:54 +0200
committerMattias Andrée <maandree@kth.se>2021-04-08 18:15:49 +0200
commit508828c5861bf8487b995df537cbfa0b0b7a8ba4 (patch)
tree0ae6366528057f6fea28cb347d7c582850708a85 /libcontacts_load_contacts.c
parentAdd test for libcontacts_get_path (diff)
downloadlibcontacts-508828c5861bf8487b995df537cbfa0b0b7a8ba4.tar.gz
libcontacts-508828c5861bf8487b995df537cbfa0b0b7a8ba4.tar.bz2
libcontacts-508828c5861bf8487b995df537cbfa0b0b7a8ba4.tar.xz
Add with_me parameter to libcontacts_list_contacts and libcontacts_load_contacts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_load_contacts.c')
-rw-r--r--libcontacts_load_contacts.c4
1 files changed, 2 insertions, 2 deletions
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++);