diff options
author | default <nobody@localhost> | 2022-09-19 23:03:18 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-19 23:03:18 +0200 |
commit | dd1a5ff1472eeadbfd84eaa1eab55af54179200a (patch) | |
tree | 96852c6b1ec9f85148aee24425ab44d32a8214a2 | |
parent | 8be433c9b65fe5f214151651055700d1fea02a56 (diff) |
Renamed user functions.
-rw-r--r-- | data.c | 2 | ||||
-rw-r--r-- | main.c | 5 | ||||
-rw-r--r-- | snac.h | 4 |
3 files changed, 4 insertions, 7 deletions
@@ -72,7 +72,7 @@ void snac_free(snac *snac) } -int snac_open(snac *snac, char *uid) +int user_open(snac *snac, char *uid) /* opens a user */ { int ret = 0; @@ -13,11 +13,8 @@ int main(int argc, char *argv[]) srv_open("/home/angel/lib/snac/comam.es"); - snac_open(&snac, "mike"); + user_open(&snac, "mike"); snac_log(&snac, xs_str_new("ok")); - char *passwd = xs_dict_get(snac.config, "passwd"); - printf("%d\n", check_password("mike", "1234", passwd)); - return 0; } @@ -26,8 +26,8 @@ typedef struct _snac { d_char *actor; /* actor url */ } snac; -int snac_open(snac *snac, char *uid); -void snac_free(snac *snac); +int user_open(snac *snac, char *uid); +void user_free(snac *snac); void snac_debug(snac *snac, int level, d_char *str); #define snac_log(snac, str) snac_debug(snac, 0, str) |