line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#if !defined (P5UV_CONSTANTS_H) |
2
|
|
|
|
|
|
|
#define P5UV_CONSTANTS_H |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
#include "EXTERN.h" |
5
|
|
|
|
|
|
|
#include "perl.h" |
6
|
|
|
|
|
|
|
#include "XSUB.h" |
7
|
|
|
|
|
|
|
#define NEED_newCONSTSUB |
8
|
|
|
|
|
|
|
#include "ppport.h" |
9
|
|
|
|
|
|
|
#include |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#define DO_CONST_IV(c) \ |
12
|
|
|
|
|
|
|
newCONSTSUB(stash, #c, newSViv(c)); \ |
13
|
|
|
|
|
|
|
av_push(export, newSVpv(#c, 0)); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
/* all of these call Perl API functions and should have thread context */ |
16
|
|
|
|
|
|
|
extern void constants_export_uv_util(pTHX); |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
|
void constants_export_uv_util(pTHX) |
19
|
|
|
|
|
|
|
{ |
20
|
1
|
|
|
|
|
|
HV *stash = gv_stashpv("UV::Util", GV_ADD); |
21
|
1
|
|
|
|
|
|
AV *export = get_av("UV::Util::EXPORT_XS", TRUE); |
22
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_ASYNC); |
23
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_CHECK); |
24
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_FS_EVENT); |
25
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_FS_POLL); |
26
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_IDLE); |
27
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_NAMED_PIPE); |
28
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_POLL); |
29
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_PREPARE); |
30
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_PROCESS); |
31
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_STREAM); |
32
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_TCP); |
33
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_TIMER); |
34
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_TTY); |
35
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_UDP); |
36
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_SIGNAL); |
37
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_FILE); |
38
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_UNKNOWN_HANDLE); |
39
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_HANDLE); |
40
|
1
|
|
|
|
|
|
DO_CONST_IV(UV_HANDLE_TYPE_MAX); |
41
|
1
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
#endif |