AccountsUpdate
From TrillWiki
The accountsUpdate function updates an account already added using accountsAdd.
Compatibility: 2.0 and higher
Contents |
Syntax
plugin_send(MYGUID, "accountsUpdate", struct account_entry_t *);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
AccountsUpdate utilitizes the account_entry_t structure.
struct account_entry_t
{
unsigned int struct_size;
char *account;
char *medium;
char *status;
char *section;
int connected;
long last_connected;
HICON icon;
HWND window;
/* 3.0
*/
ttkCallback callback;
void *data;
};
- account
- The account name.
- medium
- The medium for the account.
- status
- The status for the particular account.
- section
- The contact list for the account. The default contact list is NULL.
- connected
- If the account is connected, set this to 1.
- last_connected
- The time when the account was last connected. If it is currently connected, then it is the time the connection started. This time is based on time since EPOCH.
- icon
- The icon to use with the account.
Return Value
Negative value on error, 0 on success.
Remarks
None.
