comparison src/util.h @ 5874:964e4f94fc56

[gaim-migrate @ 6306] Moved gaim_account_find() from util.[ch] to gaim_accounts_find() in account.[ch]. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 23:50:24 +0000
parents 059d95c67cda
children a4f2aba0848d
comparison
equal deleted inserted replaced
5873:a18e88c4dace 5874:964e4f94fc56
124 * seconds. 124 * seconds.
125 */ 125 */
126 char *sec_to_text(guint sec); 126 char *sec_to_text(guint sec);
127 127
128 /** 128 /**
129 * Finds a gaim_account with the specified name and protocol ID.
130 *
131 * @param name The name of the account.
132 * @param protocol The protocol type.
133 *
134 * @return The gaim_account, if found, or @c NULL otherwise.
135 */
136 GaimAccount *gaim_account_find(const char *name, int protocol);
137
138 /**
139 * Returns the date and time in human-readable form. 129 * Returns the date and time in human-readable form.
140 * 130 *
141 * The returned string is stored in a static buffer, so the result 131 * The returned string is stored in a static buffer, so the result
142 * should be g_strdup()'d if it's intended to be used for long. 132 * should be g_strdup()'d if it's intended to be used for long.
143 * 133 *
327 * @param string The string from which to replace stuff. 317 * @param string The string from which to replace stuff.
328 * @param delimiter The substring you want replaced. 318 * @param delimiter The substring you want replaced.
329 * @param replacement The substring you want inserted in place 319 * @param replacement The substring you want inserted in place
330 * of the delimiting substring. 320 * of the delimiting substring.
331 */ 321 */
332 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, const gchar *replacement); 322 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter,
323 const gchar *replacement);
333 324
334 /** 325 /**
335 * Returns a string representing a filesize in the appropriate units (MB, KB, GB, etc.) 326 * Returns a string representing a filesize in the appropriate units (MB, KB, GB, etc.)
336 * 327 *
337 * @param size The size 328 * @param size The size