libpurple/example/nullclient.c

branch
soc.2008.masterpassword
changeset 33992
a4299c59c1b0
parent 22278
111ef6c0ea1a
child 34023
6bc30809f7fe
equal deleted inserted replaced
33991:0eb45874d73a 33992:a4299c59c1b0
293 /* Create the account */ 293 /* Create the account */
294 account = purple_account_new(name, prpl); 294 account = purple_account_new(name, prpl);
295 295
296 /* Get the password for the account */ 296 /* Get the password for the account */
297 password = getpass("Password: "); 297 password = getpass("Password: ");
298 purple_account_set_password(account, password); 298 purple_account_set_password_async(account, g_strdup(password), g_free, NULL, NULL);
299 299
300 /* It's necessary to enable the account first. */ 300 /* It's necessary to enable the account first. */
301 purple_account_set_enabled(account, UI_ID, TRUE); 301 purple_account_set_enabled(account, UI_ID, TRUE);
302 302
303 /* Now, to connect the account(s), create a status and activate it. */ 303 /* Now, to connect the account(s), create a status and activate it. */

mercurial