aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_account.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_account.h')
-rw-r--r--src/gnunet_chat_account.h20
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 */
41struct GNUNET_CHAT_Account* 49struct GNUNET_CHAT_Account*
42account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego, 50account_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 */
45void 60void
46account_update_directory (struct GNUNET_CHAT_Account *account, 61account_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 */
49void 69void
50account_destroy(struct GNUNET_CHAT_Account *account); 70account_destroy(struct GNUNET_CHAT_Account *account);
51 71