summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
index b81f13c..163fd8f 100644
--- a/main.c
+++ b/main.c
@@ -16,5 +16,19 @@ int main(int argc, char *argv[])
user_open(&snac, "mike");
snac_log(&snac, xs_str_new("ok"));
+ {
+ xs *list = user_list();
+ char *p, *uid;
+
+ p = list;
+ while (xs_list_iter(&p, &uid)) {
+ user_open(&snac, uid);
+
+ printf("%s (%s)\n", uid, xs_dict_get(snac.config, "name"));
+
+ user_free(&snac);
+ }
+ }
+
return 0;
}