comparison plugins/history.c @ 5676:dae79aefac8d

[gaim-migrate @ 6094] I've been meaning to do this for a LONG time. The conversation API now follows the naming convention of the rest of the new APIs. I'll get some g_return_*_if_fail() checks in there soon. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 02 Jun 2003 21:51:06 +0000
parents 340cb17d3e37
children 059d95c67cda
comparison
equal deleted inserted replaced
5675:17e345ffeddb 5676:dae79aefac8d
15 15
16 #define HISTORY_SIZE (4 * 1024) 16 #define HISTORY_SIZE (4 * 1024)
17 17
18 void historize (char *name, void *data) 18 void historize (char *name, void *data)
19 { 19 {
20 struct gaim_conversation *c = gaim_find_conversation(name); 20 GaimConversation *c = gaim_find_conversation(name);
21 struct gaim_gtk_conversation *gtkconv; 21 GaimGtkConversation *gtkconv;
22 struct stat st; 22 struct stat st;
23 FILE *fd; 23 FILE *fd;
24 char *userdir = g_strdup(gaim_user_dir()); 24 char *userdir = g_strdup(gaim_user_dir());
25 char *logfile = g_strdup_printf("%s.log", normalize(name)); 25 char *logfile = g_strdup_printf("%s.log", normalize(name));
26 char *path = g_build_filename(userdir, "logs", logfile, NULL); 26 char *path = g_build_filename(userdir, "logs", logfile, NULL);