From 753f11f3881eac51da49c5bb2c2eebc99bd47410 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 28 Apr 2011 14:46:17 +0200 Subject: Use visibility macros instead of symbol map Signed-off-by: Jussi Pakkanen Signed-off-by: Henrik Rydberg --- include/grail.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'include/grail.h') 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 { * * Returns zero on success, negative error number otherwise. */ -int grail_open(struct grail *ge, int fd); +int GRAIL_PUBLIC grail_open(struct grail *ge, int fd); /** * grail_idle - check state of kernel device @@ -190,7 +190,7 @@ int grail_open(struct grail *ge, int fd); * Returns true if the device is idle, i.e., there are no fetched * events in the pipe and there is nothing to fetch from the device. */ -int grail_idle(struct grail *ge, int fd, int ms); +int GRAIL_PUBLIC grail_idle(struct grail *ge, int fd, int ms); /** * 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); * On success, returns the number of events read. Otherwise, * a standard negative error number is returned. */ -int grail_pull(struct grail *ge, int fd); +int GRAIL_PUBLIC grail_pull(struct grail *ge, int fd); /** * grail_close - close the grail device @@ -216,7 +216,7 @@ int grail_pull(struct grail *ge, int fd); * Deallocates all memory associated with grail, and clears the grail * structure. */ -void grail_close(struct grail *ge, int fd); +void GRAIL_PUBLIC grail_close(struct grail *ge, int fd); /** * grail_set_bbox - set the grail unit bounding box @@ -226,9 +226,9 @@ void grail_close(struct grail *ge, int fd); * * Sets the box within which the device coordinates should be presented. */ -void grail_set_bbox(struct grail *ge, - const struct grail_coord *min, - const struct grail_coord *max); +void GRAIL_PUBLIC grail_set_bbox(struct grail *ge, + const struct grail_coord *min, + const struct grail_coord *max); /** * grail_filter_abs_events - filter kernel motion events @@ -241,7 +241,7 @@ void grail_set_bbox(struct grail *ge, * stream. * */ -void grail_filter_abs_events(struct grail *ge, int usage); +void GRAIL_PUBLIC grail_filter_abs_events(struct grail *ge, int usage); /** * grail_get_units - get device coordinate ranges @@ -255,8 +255,9 @@ void grail_filter_abs_events(struct grail *ge, int usage); * function. This function reports the device coordinate ranges. * */ -void grail_get_units(const struct grail *ge, - struct grail_coord *min, struct grail_coord *max); +void GRAIL_PUBLIC grail_get_units(const struct grail *ge, + struct grail_coord *min, + struct grail_coord *max); /** * grail_get_contacts - get current contact state @@ -267,8 +268,8 @@ void grail_get_units(const struct grail *ge, * Extract the contact state as currently seen by grail. * */ -int grail_get_contacts(const struct grail *ge, - struct grail_contact *touch, int max_touch); +int GRAIL_PUBLIC grail_get_contacts(const struct grail *ge, + struct grail_contact *touch, int max_touch); #ifdef __cplusplus } -- cgit v1.2.3