libpurple/example/nullclient.c

changeset 41392
b5c84f55d5d2
parent 41314
0dc72eacd8bf
child 41396
2ef3d6eeffb3
equal deleted inserted replaced
41390:628971e4ecdf 41392:b5c84f55d5d2
242 manager = purple_credential_manager_get_default(); 242 manager = purple_credential_manager_get_default();
243 purple_credential_manager_write_password_async(manager, account, password, 243 purple_credential_manager_write_password_async(manager, account, password,
244 NULL, NULL, NULL); 244 NULL, NULL, NULL);
245 245
246 /* It's necessary to enable the account first. */ 246 /* It's necessary to enable the account first. */
247 purple_account_set_enabled(account, UI_ID, TRUE); 247 purple_account_set_enabled(account, TRUE);
248 248
249 /* Now, to connect the account(s), create a status and activate it. */ 249 /* Now, to connect the account(s), create a status and activate it. */
250 status = purple_savedstatus_new(NULL, PURPLE_STATUS_AVAILABLE); 250 status = purple_savedstatus_new(NULL, PURPLE_STATUS_AVAILABLE);
251 purple_savedstatus_activate(status); 251 purple_savedstatus_activate(status);
252 252

mercurial