libpurple/example/nullclient.c

branch
soc.2008.masterpassword
changeset 34028
a3050b6df38e
parent 34023
6bc30809f7fe
child 34029
059c1270db1f
equal deleted inserted replaced
34027:2f162902f78a 34028:a3050b6df38e
303 /* Create the account */ 303 /* Create the account */
304 account = purple_account_new(name, prpl); 304 account = purple_account_new(name, prpl);
305 305
306 /* Get the password for the account */ 306 /* Get the password for the account */
307 password = getpass("Password: "); 307 password = getpass("Password: ");
308 purple_account_set_password_async(account, g_strdup(password), g_free, NULL, NULL); 308 purple_account_set_password(account, g_strdup(password), g_free, NULL, NULL);
309 309
310 /* It's necessary to enable the account first. */ 310 /* It's necessary to enable the account first. */
311 purple_account_set_enabled(account, UI_ID, TRUE); 311 purple_account_set_enabled(account, UI_ID, TRUE);
312 312
313 /* Now, to connect the account(s), create a status and activate it. */ 313 /* Now, to connect the account(s), create a status and activate it. */

mercurial