~ubuntu-branches/ubuntu/hardy/evolution-data-server/hardy-updates

« back to all changes in this revision

Viewing changes to servers/exchange/lib/e2k-result.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-11-13 10:59:20 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20071113105920-nb6w14udvgx0ghi3
Tags: 2.21.2-0ubuntu1
* New upstream version:
  Bug Fixes:
  - #318842: Task lists should be sorted (LP: #23912)
  - #345135: Disable SSLv2 compatible HELLO on SSL stream when 
    SSLv2 is disabled
  - #359267: Not all memos are showed in calendar view
  - #430420: Returned size <= 0 is an error
  - #460649: Meeting UI Needs To Show Color Of Selected Calendar Source
  - #487229: Use GKeyFile instead of gnome-config to access stored passwords
  - #488156: Minimize use of the WITH_GNOME_KEYRING macro
  - #492130: ESourceSelector uses pointers to ESource
  - #494304: Fix leak
  Updated Translations
  New in 2.21.1:
  - Support for Google Calendar
  Bug Fixes:
  - #203480: (Novell Bugzilla) Compiler warning fix 
    for usage ofunintialized variable
  - #231178: New symbol 'set-label' defined and added corresponding callback
  - #271777: Keep character's case as user types
  - #417999: Don't use deprecated GTK+ symbols
  - #420167: e-d-s now exits with gnome-session
  - #469657: Better use of GHashTable
  - #474000: Use GLib's Base64 API instead of Camel's
  - #475487: When creating the default contact, print errors to the console
  - #475493: Use G_DEFINE_TYPE
  - #475494: Use G_LOCK instead of a static mutex for clearer code
  - #478404: Reset the id to zero
  - #483301: Remove an unused variable
  - #487270: Fix typo in documentation
  - #488173: Remove __FUNCTION__, which is a gcc-ism
  - #488351: Fix an addressbook error on a fresh install
  Other Contributors:
  - Protect against a NULL subject string. 
* debian/*.preinst:
  - On upgrades from Gutsy, remove the symlinks introduced in Gutsy. They
    break upgrades all over, and current cdbs just symlinks individual files.
* Sync with Debian
* debian/control:
  - evolution-data-server Breaks evolution (<< 2.9), 
    evolution-exchange (<= 2.8.1-0ubuntu1),
    evolution-jescs (<= 2.8.2-0ubuntu3), 
    evolution-scalix (<= 10.0.0.357-0ubuntu6)
  - updated maintainer to desktop team
* debian/rules:
  - don't specify the paths for nspr and nss since the package is built 
    with firefox
  - don't build documentation, it's distributed in the upstream tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#endif
23
23
 
24
24
#include "e2k-result.h"
25
 
#include "e2k-encoding-utils.h"
26
25
#include "e2k-http-utils.h"
27
26
#include "e2k-propnames.h"
28
27
#include "e2k-xml-utils.h"
41
40
 
42
41
        array = g_ptr_array_new ();
43
42
        for (node = node->xmlChildrenNode; node; node = node->next) {
44
 
                if (node->xmlChildrenNode && node->xmlChildrenNode->content)
45
 
                        g_ptr_array_add (array, e2k_base64_decode (node->xmlChildrenNode->content));
46
 
                else
47
 
                        g_ptr_array_add (array, g_byte_array_new ());
 
43
                GByteArray *byte_array;
 
44
 
 
45
                byte_array = g_byte_array_new ();
 
46
                if (node->xmlChildrenNode && node->xmlChildrenNode->content) {
 
47
                        guchar *data;
 
48
                        gsize length;
 
49
 
 
50
                        data = g_base64_decode (
 
51
                                node->xmlChildrenNode->content, &length);
 
52
                        g_byte_array_append (byte_array, data, length);
 
53
                        g_free (data);
 
54
                }
 
55
                g_ptr_array_add (array, byte_array);
48
56
        }
49
57
 
50
58
        e2k_properties_set_binary_array (result->props, propname, array);
71
79
static void
72
80
prop_get_binary (E2kResult *result, const char *propname, xmlNode *node)
73
81
{
74
 
        GByteArray *data;
75
 
 
76
 
        if (node->xmlChildrenNode && node->xmlChildrenNode->content)
77
 
                data = e2k_base64_decode (node->xmlChildrenNode->content);
78
 
        else
79
 
                data = g_byte_array_new ();
80
 
 
81
 
        e2k_properties_set_binary (result->props, propname, data);
 
82
        GByteArray *byte_array;
 
83
 
 
84
        byte_array = g_byte_array_new ();
 
85
        if (node->xmlChildrenNode && node->xmlChildrenNode->content) {
 
86
                guchar *data;
 
87
                gsize length;
 
88
 
 
89
                data = g_base64_decode (
 
90
                        node->xmlChildrenNode->content, &length);
 
91
                g_byte_array_append (byte_array, data, length);
 
92
                g_free (data);
 
93
        }
 
94
 
 
95
        e2k_properties_set_binary (result->props, propname, byte_array);
82
96
}
83
97
 
84
98
static void