~chasedouglas/grail/original-touch-state

« back to all changes in this revision

Viewing changes to src/grail-inserter.h

  • Committer: Henrik Rydberg
  • Date: 2011-01-02 12:08:08 UTC
  • Revision ID: rydberg@bitmath.org-20110102120808-0nzbo3fcpp91sir5
Replace touch logic with utouch frame engine

The original grail uses an internal touch framework and exports some
touch information as extended attributes to gesture events. This was
never quite the intention, but rather to expose gestures and touches
on a similar footing, such that grail can be input agnostic. This
patch starts off by replacing the internal touch framework with the
utouch-frame engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef _GRAIL_INSERTER_H
24
24
#define _GRAIL_INSERTER_H
25
25
 
26
 
#include <grail-touch.h>
27
 
#include <grail.h>
 
26
#include "grail-impl.h"
28
27
#include "gebuf.h"
29
28
 
30
29
#define DIM_EV_TYPE             EV_CNT
69
68
}
70
69
 
71
70
int gin_add_contact_props(const struct gesture_inserter *gin,
72
 
                          grail_prop_t *prop, const struct touch_frame *frame);
 
71
                          grail_prop_t *prop, const struct utouch_frame *frame);
73
72
 
74
73
int gin_get_clients(struct grail *ge,
75
74
                    struct grail_client_info *info, int maxinfo,
76
75
                    const grail_mask_t* types, int btypes,
77
76
                    const grail_mask_t* span, int bspan,
78
 
                    const struct touch_frame *frame);
 
77
                    const struct utouch_frame *frame);
79
78
void gin_send_event(struct grail *ge, struct slot_state *s,
80
79
                    const struct gesture_event *ev,
81
 
                    const struct touch_frame *frame);
 
80
                    const struct utouch_frame *frame);
82
81
 
83
82
int gin_init(struct grail *ge);
84
83
void gin_destroy(struct grail *ge);
85
84
 
86
 
void gin_frame_begin(struct grail *ge, const struct touch_frame *frame);
87
 
void gin_frame_end(struct grail *ge, const struct touch_frame *frame);
 
85
void gin_frame_begin(struct grail *ge, const struct utouch_frame *frame);
 
86
void gin_frame_end(struct grail *ge, const struct utouch_frame *frame);
88
87
 
89
 
int gin_gid_begin_select(struct grail *ge, int type, int priority,
90
 
                         const grail_mask_t *span, int nspan);
91
88
int gin_gid_begin(struct grail *ge, int type, int priority,
92
 
                  const struct touch_frame *frame);
 
89
                  const struct utouch_frame *frame);
93
90
void gin_gid_discard(struct grail *ge, int gid);
94
91
 
95
92
void gin_gid_event(struct grail *ge, int gid,