annotate libpurple/example/Makefile.am @ 24745:0e8d91cdd63a

Change the msim_msg_clone_element() function to respect the "dynamic_name" flag when cloning elements. This fixes the bug where buddies didn't appear in their correct groups the first time you sign in. The problem is that msim_add_contact_from_server() doesn't have the username, so it calls msim_lookup_user() and clones the contact_info. The problem is that the cloned version of the contact_info points to dynamic names which are freed before we get the response from the user lookup. So msim_add_contact_from_server_cb() is called and based the contact_info, but the names in the contact_info point to freed memory, so we couldn't lookup the uid or the group.
author Mark Doliner <mark@kingant.net>
date Mon, 15 Dec 2008 04:08:31 +0000
parents caeb452845ef
children f5bcb58bdf56
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16266
a9c75536f0c9 Don't install nullclient by default, it's probably not particularly useful
Stu Tomlinson <stu@nosnilmot.com>
parents: 15880
diff changeset
1 noinst_PROGRAMS = nullclient
15617
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
2
15880
f6b7e893c4f1 Include defines.h in make dist
Stu Tomlinson <stu@nosnilmot.com>
parents: 15617
diff changeset
3 nullclient_SOURCES = defines.h nullclient.c
f6b7e893c4f1 Include defines.h in make dist
Stu Tomlinson <stu@nosnilmot.com>
parents: 15617
diff changeset
4 nullclient_DEPENDENCIES =
15617
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
5 nullclient_LDFLAGS = -export-dynamic
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
6 nullclient_LDADD = \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
7 $(DBUS_LIBS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
8 $(INTLLIBS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
9 $(GLIB_LIBS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
10 $(LIBXML_LIBS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
11 $(top_builddir)/libpurple/libpurple.la
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
12
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
13 AM_CPPFLAGS = \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
14 -DSTANDALONE \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
15 -DBR_PTHREADS=0 \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
16 -DDATADIR=\"$(datadir)\" \
16583
ce049678a67b soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <stu@nosnilmot.com>
parents: 16266
diff changeset
17 -DLIBDIR=\"$(libdir)/purple-$(PURPLE_MAJOR_VERSION)/\" \
15617
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
18 -DLOCALEDIR=\"$(datadir)/locale\" \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
19 -DSYSCONFDIR=\"$(sysconfdir)\" \
22163
caeb452845ef Fix for $(top_builddir) != $(top_srcdir)
Bj?rn Voigt <bjoern@cs.tu-berlin.de>
parents: 16583
diff changeset
20 -I$(top_builddir)/libpurple \
caeb452845ef Fix for $(top_builddir) != $(top_srcdir)
Bj?rn Voigt <bjoern@cs.tu-berlin.de>
parents: 16583
diff changeset
21 -I$(top_srcdir)/libpurple \
15617
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
22 -I$(top_srcdir) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
23 $(DEBUG_CFLAGS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
24 $(GLIB_CFLAGS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
25 $(DBUS_CFLAGS) \
7e0c0062c428 Add the example nullclient here.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff changeset
26 $(LIBXML_CFLAGS)