diff options
Diffstat (limited to 'src/gnunet_chat_account.h')
-rw-r--r-- | src/gnunet_chat_account.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gnunet_chat_account.h b/src/gnunet_chat_account.h index 40d8392..45ca869 100644 --- a/src/gnunet_chat_account.h +++ b/src/gnunet_chat_account.h | |||
@@ -38,14 +38,34 @@ struct GNUNET_CHAT_Account | |||
38 | void *user_pointer; | 38 | void *user_pointer; |
39 | }; | 39 | }; |
40 | 40 | ||
41 | /** | ||
42 | * Creates a chat account using a given <i>ego</i> and | ||
43 | * a matching <i>name</i>. | ||
44 | * | ||
45 | * @param[in] ego EGO | ||
46 | * @param[in] name Name | ||
47 | * @return New chat account | ||
48 | */ | ||
41 | struct GNUNET_CHAT_Account* | 49 | struct GNUNET_CHAT_Account* |
42 | account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego, | 50 | account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego, |
43 | const char *name); | 51 | const char *name); |
44 | 52 | ||
53 | /** | ||
54 | * Updates the stored directory path by a chat <i>account</i> | ||
55 | * using its current ego and key information. | ||
56 | * | ||
57 | * @param[in,out] account Chat account | ||
58 | * @param[in] base_directory The base directory for the accounts | ||
59 | */ | ||
45 | void | 60 | void |
46 | account_update_directory (struct GNUNET_CHAT_Account *account, | 61 | account_update_directory (struct GNUNET_CHAT_Account *account, |
47 | const char *base_directory); | 62 | const char *base_directory); |
48 | 63 | ||
64 | /** | ||
65 | * Destroys a chat <i>account</i> and frees its memory. | ||
66 | * | ||
67 | * @param[in,out] account Chat account | ||
68 | */ | ||
49 | void | 69 | void |
50 | account_destroy(struct GNUNET_CHAT_Account *account); | 70 | account_destroy(struct GNUNET_CHAT_Account *account); |
51 | 71 | ||