comparison src/util.h @ 5563:9eb5b13fd412

[gaim-migrate @ 5965] Just a taste of what's coming. Standard "This won't compile" thing. Plugin authors, you're going to hate me, but that's okay, because I have friends too! It's really late. My brain resembles that of fish swimming in jello pudding with neon lights flying around chanting musicals. I'm not on drugs. I'm just that tired. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 09:38:29 +0000
parents 6f35b80c5ffa
children bd0d0e89cac3
comparison
equal deleted inserted replaced
5562:3c8d34574601 5563:9eb5b13fd412
24 * namespace. 24 * namespace.
25 */ 25 */
26 #ifndef _GAIM_UTIL_H_ 26 #ifndef _GAIM_UTIL_H_
27 #define _GAIM_UTIL_H_ 27 #define _GAIM_UTIL_H_
28 28
29 #include "account.h"
30
29 /** 31 /**
30 * Normalizes a string, so that it is suitable for comparison. 32 * Normalizes a string, so that it is suitable for comparison.
31 * 33 *
32 * The returned string will point to a static buffer, so if the 34 * The returned string will point to a static buffer, so if the
33 * string is intended to be kept long-term, you <i>must</i> 35 * string is intended to be kept long-term, you <i>must</i>
129 * @param name The name of the account. 131 * @param name The name of the account.
130 * @param protocol The protocol type. 132 * @param protocol The protocol type.
131 * 133 *
132 * @return The gaim_account, if found, or @c NULL otherwise. 134 * @return The gaim_account, if found, or @c NULL otherwise.
133 */ 135 */
134 struct gaim_account *gaim_account_find(const char *name, 136 GaimAccount *gaim_account_find(const char *name, int protocol);
135 int protocol) G_GNUC_PURE;
136 137
137 /** 138 /**
138 * Returns the date and time in human-readable form. 139 * Returns the date and time in human-readable form.
139 * 140 *
140 * The returned string is stored in a static buffer, so the result 141 * The returned string is stored in a static buffer, so the result
142 * 143 *
143 * @return The date and time in human-readable form. 144 * @return The date and time in human-readable form.
144 * 145 *
145 * @see date() 146 * @see date()
146 */ 147 */
147 char *full_date(void) G_GNUC_PURE; 148 char *full_date(void);
148 149
149 /** 150 /**
150 * Looks for %n, %d, or %t in a string, and replaces them with the 151 * Looks for %n, %d, or %t in a string, and replaces them with the
151 * specified name, date, and time, respectively. 152 * specified name, date, and time, respectively.
152 * 153 *
266 * @param sec The second. 267 * @param sec The second.
267 * 268 *
268 * @return A time_t. 269 * @return A time_t.
269 */ 270 */
270 time_t get_time(int year, int month, int day, 271 time_t get_time(int year, int month, int day,
271 int hour, int min, int sec) G_GNUC_CONST; 272 int hour, int min, int sec);
272 273
273 /** 274 /**
274 * Creates a temporary file and returns a file pointer to it. 275 * Creates a temporary file and returns a file pointer to it.
275 * 276 *
276 * This is like mkstemp(), but returns a file pointer and uses a 277 * This is like mkstemp(), but returns a file pointer and uses a