view finch/gntstatus.h @ 22441:c2b9399d95b2

some memleak fixes from Andrew Gaul again: ==9002== 12 bytes in 1 blocks are definitely lost in loss record 19 of 229 ==9002== at 0x4006A6E: malloc (vg_replace_malloc.c:207) ==9002== by 0xA1CAF5: g_malloc (in /lib/libglib-2.0.so.0.1400.6) ==9002== by 0xA35348: g_strdup (in /lib/libglib-2.0.so.0.1400.6) ==9002== by 0x4FD826F: oscar_format_screenname (oscar.c:6227) ==9002== by 0x4FD0C46: purple_bosrights (oscar.c:3632) ==7413== 4 bytes in 1 blocks are definitely lost in loss record 3 of 233 ==7413== at 0x4004B22: calloc (vg_replace_malloc.c:397) ==7413== by 0xA1CA5D: g_malloc0 (in /lib/libglib-2.0.so.0.1400.6) ==7413== by 0x5018159: irc_dccsend_recv (dcc_send.c:116) ==7413== 98 bytes in 9 blocks are definitely lost in loss record 91 of 233 ==7413== at 0x4006A6E: malloc (vg_replace_malloc.c:207) ==7413== by 0x234888A: vasprintf (in /lib/libc-2.7.so) ==7413== by 0xA44996: g_vasprintf (in /lib/libglib-2.0.so.0.1400.6) ==7413== by 0xA35485: g_strdup_vprintf (in /lib/libglib-2.0.so.0.1400.6) ==7413== by 0xA354AA: g_strdup_printf (in /lib/libglib-2.0.so.0.1400.6) ==7413== by 0x45E68DB: purple_str_size_to_units (util.c:3320) ==7413== by 0x80A9D19: pidgin_xfer_dialog_update_xfer (gtkft.c:1058) committer: Ka-Hing Cheung <khc@hxbc.us>
author Andrew Gaul <andrew@gaul.org>
date Sun, 09 Mar 2008 21:34:32 +0000
parents 6bf32c9e15a7
children
line wrap: on
line source

/**
 * @file gntstatus.h GNT Status API
 * @ingroup finch
 */

/* finch
 *
 * Finch is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 */
#ifndef _GNT_STATUS_H
#define _GNT_STATUS_H

#include <status.h>
#include <savedstatuses.h>

/**********************************************************************
 * @name GNT BuddyList API
 **********************************************************************/
/*@{*/

/**
 * Show a dialog with all the saved statuses.
 */
void finch_savedstatus_show_all(void);

/**
 * Show a dialog to edit a status.
 *
 * @param saved The saved status to edit. Set it to @c NULL to create a new status.
 */
void finch_savedstatus_edit(PurpleSavedStatus *saved);

/*@}*/

#endif