Mercurial > pidgin
comparison libpurple/protocols/msn/slpcall.c @ 19843:60bc06498746
Committing khc's msnp14 changes from Trac Ticket #148. --rlaager
committer: Richard Laager <rlaager@wiktel.com>
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 15 Apr 2007 04:12:27 +0000 |
parents | 32c366eeeb99 |
children | 0f6747c5dcc2 |
comparison
equal
deleted
inserted
replaced
16121:6167ee79ecd0 | 19843:60bc06498746 |
---|---|
20 * You should have received a copy of the GNU General Public License | 20 * You should have received a copy of the GNU General Public License |
21 * along with this program; if not, write to the Free Software | 21 * along with this program; if not, write to the Free Software |
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 */ | 23 */ |
24 #include "msn.h" | 24 #include "msn.h" |
25 #include "msnutils.h" | |
25 #include "slpcall.h" | 26 #include "slpcall.h" |
26 #include "slpsession.h" | 27 #include "slpsession.h" |
27 | 28 |
28 #include "slp.h" | 29 #include "slp.h" |
29 | 30 |
30 /* #define MSN_DEBUG_SLPCALL */ | 31 /* #define MSN_DEBUG_SLPCALL */ |
31 | |
32 /************************************************************************** | |
33 * Util | |
34 **************************************************************************/ | |
35 | |
36 static char * | |
37 rand_guid() | |
38 { | |
39 return g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X", | |
40 rand() % 0xAAFF + 0x1111, | |
41 rand() % 0xAAFF + 0x1111, | |
42 rand() % 0xAAFF + 0x1111, | |
43 rand() % 0xAAFF + 0x1111, | |
44 rand() % 0xAAFF + 0x1111, | |
45 rand() % 0xAAFF + 0x1111, | |
46 rand() % 0xAAFF + 0x1111, | |
47 rand() % 0xAAFF + 0x1111); | |
48 } | |
49 | 32 |
50 /************************************************************************** | 33 /************************************************************************** |
51 * Main | 34 * Main |
52 **************************************************************************/ | 35 **************************************************************************/ |
53 | 36 |