summaryrefslogtreecommitdiff
path: root/src/grail-api.c
diff options
context:
space:
mode:
authorJussi Pakkanen <jussi.pakkanen@canonical.com>2011-04-28 14:46:17 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-04-28 15:19:03 +0200
commit753f11f3881eac51da49c5bb2c2eebc99bd47410 (patch)
treeb3a5906f6751116efd26fdd6951e7d2f82f0b38f /src/grail-api.c
parentb2a967eea554fce9fdec21f5e19c9608406f530c (diff)
Use visibility macros instead of symbol map
Signed-off-by: Jussi Pakkanen <jussi.pakkanen@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-api.c')
-rw-r--r--src/grail-api.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/grail-api.c b/src/grail-api.c
index 5a0beb4..259f5a0 100644
--- a/src/grail-api.c
+++ b/src/grail-api.c
@@ -34,13 +34,13 @@
34#define DIM_FRAMES 100 34#define DIM_FRAMES 100
35#define FRAME_RATE 100 35#define FRAME_RATE 100
36 36
37void grail_filter_abs_events(struct grail *ge, int usage) 37void GRAIL_PUBLIC grail_filter_abs_events(struct grail *ge, int usage)
38{ 38{
39 struct grail_impl *x = ge->impl; 39 struct grail_impl *x = ge->impl;
40 x->filter_abs = usage; 40 x->filter_abs = usage;
41} 41}
42 42
43int grail_open(struct grail *ge, int fd) 43int GRAIL_PUBLIC grail_open(struct grail *ge, int fd)
44{ 44{
45 struct grail_impl *x; 45 struct grail_impl *x;
46 struct stat fs; 46 struct stat fs;
@@ -116,7 +116,7 @@ int grail_open(struct grail *ge, int fd)
116 return ret; 116 return ret;
117} 117}
118 118
119void grail_close(struct grail *ge, int fd) 119void GRAIL_PUBLIC grail_close(struct grail *ge, int fd)
120{ 120{
121 struct grail_impl *x = ge->impl; 121 struct grail_impl *x = ge->impl;
122 gru_destroy(ge); 122 gru_destroy(ge);
@@ -131,7 +131,7 @@ void grail_close(struct grail *ge, int fd)
131 ge->impl = 0; 131 ge->impl = 0;
132} 132}
133 133
134int grail_idle(struct grail *ge, int fd, int ms) 134int GRAIL_PUBLIC grail_idle(struct grail *ge, int fd, int ms)
135{ 135{
136 struct grail_impl *x = ge->impl; 136 struct grail_impl *x = ge->impl;
137 if (x->fptest) 137 if (x->fptest)
@@ -141,8 +141,8 @@ int grail_idle(struct grail *ge, int fd, int ms)
141 return 1; 141 return 1;
142} 142}
143 143
144void grail_get_units(const struct grail *ge, 144void GRAIL_PUBLIC grail_get_units(const struct grail *ge,
145 struct grail_coord *min, struct grail_coord *max) 145 struct grail_coord *min, struct grail_coord *max)
146{ 146{
147 struct utouch_surface *s = utouch_frame_get_surface(ge->impl->fh); 147 struct utouch_surface *s = utouch_frame_get_surface(ge->impl->fh);
148 min->x = s->min_x; 148 min->x = s->min_x;
@@ -287,7 +287,7 @@ static int grail_pull_fstest(struct grail *ge, int fd)
287 return count > 0 ? count : -1; 287 return count > 0 ? count : -1;
288} 288}
289 289
290int grail_pull(struct grail *ge, int fd) 290int GRAIL_PUBLIC grail_pull(struct grail *ge, int fd)
291{ 291{
292 struct grail_impl *impl = ge->impl; 292 struct grail_impl *impl = ge->impl;
293 struct input_event ev; 293 struct input_event ev;