core cleanup: rename core & backend API headers
[siplcs.git] / src / core / sipe-chat.h
blob82e8f80c072ab2b34cc4b77dc5da4d7e2b1715e2
1 /**
2 * @file sipe-chat.h
4 * pidgin-sipe
6 * Copyright (C) 2009 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Interface dependencies:
26 * <glib.h>
29 /* Forward declarations */
30 struct sipe_account_data;
32 /**
33 * Create a new chat
35 void sipe_chat_create(struct sipe_account_data *sip, int id, const char *name);
37 /**
38 * Returns purple's chat name for provided chat identification in protocol.
39 * Stores newly created chat title if not yet exist.
41 * @param proto_chat_id for 2007 conference this is (gchar *) Focus URI,
42 * for 2005 multiparty chat this is (gchar *) Call-Id of the conversation.
44 * @return chat name. Must be g_free()'d after use
46 gchar *
47 sipe_chat_get_name(const gchar *proto_chat_id);
49 /**
50 * Returns protocol id for provided purple's chat name
52 * @param chat_name chat name
54 * @return protocol id
56 const gchar *
57 sipe_chat_find_name(const gchar *chat_name);