~oif-team/frame/1.1.4

« back to all changes in this revision

Viewing changes to tools/common-defs.h

  • Committer: Chase Douglas
  • Date: 2012-08-15 19:05:52 UTC
  • Revision ID: chase.douglas@canonical.com-20120815190552-ul59r06he8a8j7f8
Rename project to simply 'frame'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 *
3
 
 * utouch-frame - Touch Frame Library
 
3
 * frame - Touch Frame Library
4
4
 *
5
5
 * Copyright (C) 2010-2011 Canonical Ltd.
6
6
 *
22
22
 *
23
23
 ****************************************************************************/
24
24
 
25
 
static void report_device_caps(utouch_frame_handle fh)
 
25
static void report_device_caps(oif_frame_handle fh)
26
26
{
27
 
        const struct utouch_surface *s = utouch_frame_get_surface(fh);
 
27
        const struct oif_surface *s = oif_frame_get_surface(fh);
28
28
 
29
29
        fprintf(stderr, "device props:\n");
30
30
        if (s->needs_pointer)
52
52
                fprintf(stderr, "\tdistance\n");
53
53
}
54
54
 
55
 
static void report_frame(const struct utouch_frame *frame)
 
55
static void report_frame(const struct oif_frame *frame)
56
56
{
57
57
        int i;
58
58
 
59
59
        for (i = 0; i < frame->num_active; i++) {
60
 
                const struct utouch_contact *t = frame->active[i];
 
60
                const struct oif_contact *t = frame->active[i];
61
61
 
62
62
                fprintf(stderr, "touch %d\n", i);
63
63
                fprintf(stderr, "  slot:         %d\n", t->slot);