~ubuntu-branches/ubuntu/saucy/libdmapsharing/saucy

« back to all changes in this revision

Viewing changes to tests/test-dmap-client.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2011-12-01 10:07:48 UTC
  • mfrom: (0.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111201100748-zrjkw7uks8s1i7nz
Tags: 2.9.13-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <glib.h>
21
21
#include <stdio.h>
22
22
#include <stdlib.h>
 
23
#include <string.h>
23
24
 
24
25
#include <libdmapsharing/dmap.h>
25
26
 
46
47
                     NULL);
47
48
 
48
49
        g_print ("%d: %s %s\n", GPOINTER_TO_UINT (id), artist, title);
 
50
 
 
51
        g_free (artist);
 
52
        g_free (title);
49
53
}
50
54
 
51
55
static void
57
61
        g_print ("Connection cb., DB has %lu entries\n", dmap_db_count (db));
58
62
 
59
63
        dmap_db_foreach (db, (GHFunc) print_record, NULL);
60
 
 
61
 
        g_main_loop_quit (loop);
62
64
}
63
65
 
64
66
static void
89
91
    DMAPConnection *conn;
90
92
    DMAPDb *db;
91
93
 
92
 
    g_debug ("service added %s:%s:%s:%d (%s)",
 
94
    g_debug ("service added %s:%s:%s:%d",
93
95
             service->service_name,
94
96
             service->name,
95
97
             service->host,