Updated to release 1.7.0
[siplcs.git] / src / sipe-chat.h
blob963146a444fb5e460763b7ba94cca98facb9915d
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
23 /**
24 * libpurple plugin callback to create a new chat from conversation menu
26 void sipe_chat_invite(PurpleConnection *gc, int id, const char *message,
27 const char *name);
29 /**
30 * Returns purple's chat name for provided chat identification in protocol.
31 * Stores newly created chat title if not yet exist.
33 * @param proto_chat_id for 2007 conference this is (gchar *) Focus URI,
34 * for 2005 multiparty chat this is (gchar *) Call-Id of the conversation.
36 * @return chat name. Must be g_free()'d after use
38 gchar *
39 sipe_chat_get_name(const gchar *proto_chat_id);
41 /**
42 * Returns protocol id for provided purple's chat name
44 * @param chat_name chat name
46 * @return protocol id
48 const gchar *
49 sipe_chat_find_name(const gchar *chat_name);