summaryrefslogtreecommitdiff
path: root/include/grail.h
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 /include/grail.h
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 'include/grail.h')
-rw-r--r--include/grail.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/grail.h b/include/grail.h
index d61197d..d21d9e8 100644
--- a/include/grail.h
+++ b/include/grail.h
@@ -179,7 +179,7 @@ struct grail {
179 * 179 *
180 * Returns zero on success, negative error number otherwise. 180 * Returns zero on success, negative error number otherwise.
181 */ 181 */
182int grail_open(struct grail *ge, int fd); 182int GRAIL_PUBLIC grail_open(struct grail *ge, int fd);
183 183
184/** 184/**
185 * grail_idle - check state of kernel device 185 * grail_idle - check state of kernel device
@@ -190,7 +190,7 @@ int grail_open(struct grail *ge, int fd);
190 * Returns true if the device is idle, i.e., there are no fetched 190 * Returns true if the device is idle, i.e., there are no fetched
191 * events in the pipe and there is nothing to fetch from the device. 191 * events in the pipe and there is nothing to fetch from the device.
192 */ 192 */
193int grail_idle(struct grail *ge, int fd, int ms); 193int GRAIL_PUBLIC grail_idle(struct grail *ge, int fd, int ms);
194 194
195/** 195/**
196 * grail_pull - pull and process available events from the kernel device 196 * grail_pull - pull and process available events from the kernel device
@@ -206,7 +206,7 @@ int grail_idle(struct grail *ge, int fd, int ms);
206 * On success, returns the number of events read. Otherwise, 206 * On success, returns the number of events read. Otherwise,
207 * a standard negative error number is returned. 207 * a standard negative error number is returned.
208 */ 208 */
209int grail_pull(struct grail *ge, int fd); 209int GRAIL_PUBLIC grail_pull(struct grail *ge, int fd);
210 210
211/** 211/**
212 * grail_close - close the grail device 212 * grail_close - close the grail device
@@ -216,7 +216,7 @@ int grail_pull(struct grail *ge, int fd);
216 * Deallocates all memory associated with grail, and clears the grail 216 * Deallocates all memory associated with grail, and clears the grail
217 * structure. 217 * structure.
218 */ 218 */
219void grail_close(struct grail *ge, int fd); 219void GRAIL_PUBLIC grail_close(struct grail *ge, int fd);
220 220
221/** 221/**
222 * grail_set_bbox - set the grail unit bounding box 222 * grail_set_bbox - set the grail unit bounding box
@@ -226,9 +226,9 @@ void grail_close(struct grail *ge, int fd);
226 * 226 *
227 * Sets the box within which the device coordinates should be presented. 227 * Sets the box within which the device coordinates should be presented.
228 */ 228 */
229void grail_set_bbox(struct grail *ge, 229void GRAIL_PUBLIC grail_set_bbox(struct grail *ge,
230 const struct grail_coord *min, 230 const struct grail_coord *min,
231 const struct grail_coord *max); 231 const struct grail_coord *max);
232 232
233/** 233/**
234 * grail_filter_abs_events - filter kernel motion events 234 * grail_filter_abs_events - filter kernel motion events
@@ -241,7 +241,7 @@ void grail_set_bbox(struct grail *ge,
241 * stream. 241 * stream.
242 * 242 *
243 */ 243 */
244void grail_filter_abs_events(struct grail *ge, int usage); 244void GRAIL_PUBLIC grail_filter_abs_events(struct grail *ge, int usage);
245 245
246/** 246/**
247 * grail_get_units - get device coordinate ranges 247 * grail_get_units - get device coordinate ranges
@@ -255,8 +255,9 @@ void grail_filter_abs_events(struct grail *ge, int usage);
255 * function. This function reports the device coordinate ranges. 255 * function. This function reports the device coordinate ranges.
256 * 256 *
257 */ 257 */
258void grail_get_units(const struct grail *ge, 258void GRAIL_PUBLIC grail_get_units(const struct grail *ge,
259 struct grail_coord *min, struct grail_coord *max); 259 struct grail_coord *min,
260 struct grail_coord *max);
260 261
261/** 262/**
262 * grail_get_contacts - get current contact state 263 * grail_get_contacts - get current contact state
@@ -267,8 +268,8 @@ void grail_get_units(const struct grail *ge,
267 * Extract the contact state as currently seen by grail. 268 * Extract the contact state as currently seen by grail.
268 * 269 *
269 */ 270 */
270int grail_get_contacts(const struct grail *ge, 271int GRAIL_PUBLIC grail_get_contacts(const struct grail *ge,
271 struct grail_contact *touch, int max_touch); 272 struct grail_contact *touch, int max_touch);
272 273
273#ifdef __cplusplus 274#ifdef __cplusplus
274} 275}