* Copyright (c) 2004 Novell, Inc. All Rights Reserved. * 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; version 2 of the License. * 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 NMConference *conference; nm_create_message(const char *text) NMMessage *msg = g_new0(NMMessage, 1); msg->text = g_strdup(text); nm_message_add_ref(NMMessage * msg) nm_release_message(NMMessage * msg) if (msg && (--(msg->ref_count) == 0)) { nm_release_conference(msg->conference); nm_message_get_text(NMMessage * msg) nm_message_set_conference(NMMessage * msg, NMConference * conf) if (msg == NULL || conf == NULL) /* Need to ref the conference first so that it doesn't * get released out from under us nm_conference_add_ref(conf); nm_message_get_conference(NMMessage * msg)