summaryrefslogtreecommitdiff
path: root/src/fdevent.h
diff options
context:
space:
mode:
authorjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2007-02-20 11:45:30 +0000
committerjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2007-02-20 11:45:30 +0000
commit400ec5388c52c3c59c0fe261f68e54efef9062db (patch)
tree9d4e60ed5b4496598baf3a19ef7f3004b289dd11 /src/fdevent.h
parentdc018175d23eac15d5eb76a88128eac44c565156 (diff)
downloadlighttpd-400ec5388c52c3c59c0fe261f68e54efef9062db.tar.gz
another attempt to get the IMPORT/EXPORT stuff right (patch from jtiai)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@1675 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/fdevent.h')
-rw-r--r--src/fdevent.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/fdevent.h b/src/fdevent.h
index f2300256..2a0cfac2 100644
--- a/src/fdevent.h
+++ b/src/fdevent.h
@@ -213,54 +213,54 @@ typedef struct fdevents {
int (*fcntl_set)(struct fdevents *ev, int fd);
} fdevents;
-LI_EXPORT fdevents* fdevent_init(size_t maxfds, fdevent_handler_t type);
-LI_EXPORT int fdevent_reset(fdevents *ev);
-LI_EXPORT void fdevent_free(fdevents *ev);
+LI_API fdevents* fdevent_init(size_t maxfds, fdevent_handler_t type);
+LI_API int fdevent_reset(fdevents *ev);
+LI_API void fdevent_free(fdevents *ev);
/**
* call the plugin for the number of available events
*/
-LI_EXPORT int fdevent_poll(fdevents *ev, int timeout_ms);
+LI_API int fdevent_poll(fdevents *ev, int timeout_ms);
/**
* get all available events
*/
-LI_EXPORT int fdevent_get_revents(fdevents *ev, size_t event_count, fdevent_revents *revents);
+LI_API int fdevent_get_revents(fdevents *ev, size_t event_count, fdevent_revents *revents);
/**
* add or remove a fd to the handled-pool
*/
-LI_EXPORT int fdevent_register(fdevents *ev, iosocket *sock, fdevent_handler handler, void *ctx);
-LI_EXPORT int fdevent_unregister(fdevents *ev, iosocket *sock);
+LI_API int fdevent_register(fdevents *ev, iosocket *sock, fdevent_handler handler, void *ctx);
+LI_API int fdevent_unregister(fdevents *ev, iosocket *sock);
/**
* add a event to a registered fd
*/
-LI_EXPORT int fdevent_event_add(fdevents *ev, iosocket *sock, int events);
-LI_EXPORT int fdevent_event_del(fdevents *ev, iosocket *sock);
+LI_API int fdevent_event_add(fdevents *ev, iosocket *sock, int events);
+LI_API int fdevent_event_del(fdevents *ev, iosocket *sock);
/**
* set non-blocking
*/
-LI_EXPORT int fdevent_fcntl_set(fdevents *ev, iosocket *sock);
+LI_API int fdevent_fcntl_set(fdevents *ev, iosocket *sock);
-LI_EXPORT fdevent_revents* fdevent_revents_init(void);
-LI_EXPORT void fdevent_revents_reset(fdevent_revents *revents);
-LI_EXPORT void fdevent_revents_add(fdevent_revents *revents, int fd, int events);
-LI_EXPORT void fdevent_revents_free(fdevent_revents *revents);
+LI_API fdevent_revents* fdevent_revents_init(void);
+LI_API void fdevent_revents_reset(fdevent_revents *revents);
+LI_API void fdevent_revents_add(fdevent_revents *revents, int fd, int events);
+LI_API void fdevent_revents_free(fdevent_revents *revents);
-LI_EXPORT fdevent_revent* fdevent_revent_init(void);
-LI_EXPORT void fdevent_revent_free(fdevent_revent *revent);
+LI_API fdevent_revent* fdevent_revent_init(void);
+LI_API void fdevent_revent_free(fdevent_revent *revent);
/**
* plugin init
*/
-LI_EXPORT int fdevent_select_init(fdevents *ev);
-LI_EXPORT int fdevent_poll_init(fdevents *ev);
-LI_EXPORT int fdevent_linux_rtsig_init(fdevents *ev);
-LI_EXPORT int fdevent_linux_sysepoll_init(fdevents *ev);
-LI_EXPORT int fdevent_solaris_devpoll_init(fdevents *ev);
-LI_EXPORT int fdevent_freebsd_kqueue_init(fdevents *ev);
+LI_API int fdevent_select_init(fdevents *ev);
+LI_API int fdevent_poll_init(fdevents *ev);
+LI_API int fdevent_linux_rtsig_init(fdevents *ev);
+LI_API int fdevent_linux_sysepoll_init(fdevents *ev);
+LI_API int fdevent_solaris_devpoll_init(fdevents *ev);
+LI_API int fdevent_freebsd_kqueue_init(fdevents *ev);
#endif