~ubuntu-branches/ubuntu/raring/libdmapsharing/raring

« back to all changes in this revision

Viewing changes to libdmapsharing/dpap-connection.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-30 17:50:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110530175018-bbz8iqkeu3e9zaba
Tags: 2.9.12-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
}
38
38
 
39
39
static gchar *
40
 
get_query_metadata (void)
 
40
get_query_metadata (DMAPConnection * connection)
41
41
{
42
42
        return g_strdup ("all");
43
43
}
53
53
        const gchar *format = NULL;
54
54
        const gchar *comments = NULL;
55
55
        const gchar *thumbnail = NULL;
56
 
        const GByteArray *ptr = NULL;
 
56
        GByteArray *ptr = NULL;
57
57
        gint creation_date = 0;
58
58
        gint filesize = 0;
59
59
        gint large_filesize = 0;
119
119
 
120
120
        if (filesize) {
121
121
                ptr = g_byte_array_sized_new (filesize);
122
 
                g_byte_array_append (ptr, thumbnail, filesize);
 
122
                g_byte_array_append (ptr, (guint8 *) thumbnail, filesize);
123
123
        } else {
124
124
                ptr = g_byte_array_sized_new (0);
125
125
        }
163
163
dpap_connection_new (const char *name,
164
164
                     const char *host,
165
165
                     guint port,
166
 
                     gboolean password_protected,
167
166
                     DMAPDb * db, DMAPRecordFactory * factory)
168
167
{
169
168
        DPAPConnection *connection;
170
169
 
171
170
        connection = g_object_new (DPAP_TYPE_CONNECTION,
172
171
                                   "name", name,
173
 
                                   "password-protected", password_protected,
174
172
                                   "db", db,
175
173
                                   "host", host,
176
174
                                   "port", port, "factory", factory, NULL);