/*new a user object*/ MsnUser * msn_user_new(MsnUserList *userlist, const char *passport, const char *friendly_name) { MsnUser *user; user = g_new0(MsnUser, 1); user->userlist = userlist; msn_user_set_passport(user, passport); msn_user_set_friendly_name(user, friendly_name); return user; }
MsnUser * msn_user_new(MsnUserList *userlist, const char *passport, const char *store_name) { MsnUser *user; user = g_new0(MsnUser, 1); user->userlist = userlist; msn_user_set_passport(user, passport); msn_user_set_store_name(user, store_name); /* * XXX This seems to reset the friendly name from what it should be * to the passport when moving users. So, screw it :) */ #if 0 if (name != NULL) msn_user_set_name(user, name); #endif return user; }