1 | /* |
1 | /* |
2 | * libev native API header |
2 | * libev native API header |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2009,2010,2011,2012,2015 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007-2018 Marc Alexander Lehmann <libev@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
49 | # endif |
49 | # endif |
50 | #else |
50 | #else |
51 | # define EV_CPP(x) |
51 | # define EV_CPP(x) |
52 | # define EV_NOEXCEPT |
52 | # define EV_NOEXCEPT |
53 | #endif |
53 | #endif |
|
|
54 | #define EV_THROW EV_NOEXCEPT /* pre-4.25, do not use in new code */ |
54 | |
55 | |
55 | EV_CPP(extern "C" {) |
56 | EV_CPP(extern "C" {) |
56 | |
57 | |
57 | /*****************************************************************************/ |
58 | /*****************************************************************************/ |
58 | |
59 | |
… | |
… | |
209 | #endif |
210 | #endif |
210 | |
211 | |
211 | /*****************************************************************************/ |
212 | /*****************************************************************************/ |
212 | |
213 | |
213 | #define EV_VERSION_MAJOR 4 |
214 | #define EV_VERSION_MAJOR 4 |
214 | #define EV_VERSION_MINOR 24 |
215 | #define EV_VERSION_MINOR 25 |
215 | |
216 | |
216 | /* eventmask, revents, events... */ |
217 | /* eventmask, revents, events... */ |
217 | enum { |
218 | enum { |
218 | EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ |
219 | EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ |
219 | EV_NONE = 0x00, /* no events */ |
220 | EV_NONE = 0x00, /* no events */ |