| 1 | package ZMQ::FFI::ZMQ2::Rawscip-perl cpan ZMQ-FFI 1.19 ZMQ/FFI/ZMQ2/Raw/; |
| 2 | $ZMQ::FFI::ZMQ2::Raw::VERSIONscip-perl cpan ZMQ-FFI 1.19 ZMQ/FFI/ZMQ2/Raw/$VERSION. = '1.19'; |
| 3 | use FFI::Platypusscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/; |
| 4 | |
| 5 | sub loadscip-perl cpan ZMQ-FFI 1.19 ZMQ/FFI/ZMQ2/Raw/load(). { |
| 6 | my ($soname) = @_scip-perl cpan ZMQ-FFI 1.19 ZMQ/FFI/ZMQ2/Raw/`@_`.; |
| 7 | |
| 8 | my $ffi = FFI::Platypus->newscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/new().( lib => $soname // 'libzmq.so' ); |
| 9 | my $target = callerscip-perl cpan ZMQ-FFI 1.19 ZMQ/FFI/ZMQ2/Raw/caller().; |
| 10 | |
| 11 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 12 | # void *zmq_init(int io_threads) |
| 13 | ['zmq_init' => "${target}::zmq_init"] |
| 14 | => ['int'] => 'pointer' |
| 15 | ); |
| 16 | |
| 17 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 18 | # void *zmq_socket(void *context, int type) |
| 19 | ['zmq_socket' => "${target}::zmq_socket"] |
| 20 | => ['pointer', 'int'] => 'pointer' |
| 21 | ); |
| 22 | |
| 23 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 24 | # int zmq_device(int device, const void *front, const void *back) |
| 25 | ['zmq_device' => "${target}::zmq_device"] |
| 26 | => ['int', 'pointer', 'pointer'] => 'int' |
| 27 | ); |
| 28 | |
| 29 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 30 | # int zmq_term(void *context) |
| 31 | ['zmq_term' => "${target}::zmq_term"] |
| 32 | => ['pointer'] => 'int' |
| 33 | ); |
| 34 | |
| 35 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 36 | # int zmq_send(void *socket, zmq_msg_t *msg, int flags) |
| 37 | ['zmq_send' => "${target}::zmq_send"] |
| 38 | => ['pointer', 'pointer', 'int'] => 'int' |
| 39 | ); |
| 40 | |
| 41 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 42 | # int zmq_recv(void *socket, zmq_msg_t *msg, int flags) |
| 43 | ['zmq_recv' => "${target}::zmq_recv"] |
| 44 | => ['pointer', 'pointer', 'int'] => 'int' |
| 45 | ); |
| 46 | |
| 47 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 48 | # int zmq_connect(void *socket, const char *endpoint) |
| 49 | ['zmq_connect' => "${target}::zmq_connect"] |
| 50 | => ['pointer', 'string'] => 'int' |
| 51 | ); |
| 52 | |
| 53 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 54 | # int zmq_bind(void *socket, const char *endpoint) |
| 55 | ['zmq_bind' => "${target}::zmq_bind"] |
| 56 | => ['pointer', 'string'] => 'int' |
| 57 | ); |
| 58 | |
| 59 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 60 | # int zmq_msg_init(zmq_msg_t *msg) |
| 61 | ['zmq_msg_init' => "${target}::zmq_msg_init"] |
| 62 | => ['pointer'] => 'int' |
| 63 | ); |
| 64 | |
| 65 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 66 | # int zmq_msg_init_size(zmq_msg_t *msg, size_t size) |
| 67 | ['zmq_msg_init_size' => "${target}::zmq_msg_init_size"] |
| 68 | => ['pointer', 'int'] => 'int' |
| 69 | ); |
| 70 | |
| 71 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 72 | # size_t zmq_msg_size(zmq_msg_t *msg) |
| 73 | ['zmq_msg_size' => "${target}::zmq_msg_size"] |
| 74 | => ['pointer'] => 'int' |
| 75 | ); |
| 76 | |
| 77 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 78 | # void *zmq_msg_data(zmq_msg_t *msg) |
| 79 | ['zmq_msg_data' => "${target}::zmq_msg_data"] |
| 80 | => ['pointer'] => 'pointer' |
| 81 | ); |
| 82 | |
| 83 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 84 | # int zmq_msg_close(zmq_msg_t *msg) |
| 85 | ['zmq_msg_close' => "${target}::zmq_msg_close"] |
| 86 | => ['pointer'] => 'int' |
| 87 | ); |
| 88 | |
| 89 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 90 | # int zmq_close(void *socket) |
| 91 | ['zmq_close' => "${target}::zmq_close"] |
| 92 | => ['pointer'] => 'int' |
| 93 | ); |
| 94 | |
| 95 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 96 | # const char *zmq_strerror(int errnum) |
| 97 | ['zmq_strerror' => "${target}::zmq_strerror"] |
| 98 | => ['int'] => 'string' |
| 99 | ); |
| 100 | |
| 101 | $ffi->attachscip-perl cpan ZMQ-FFI 1.19 FFI/Platypus/attach().( |
| 102 | # int zmq_errno(void) |
| 103 | ['zmq_errno' => "${target}::zmq_errno"] |
| 104 | => [] => 'int' |
| 105 | ); |
| 106 | } |
| 107 | |
| 108 | 1; |
| 109 | |
| 110 | __END__ |
| 111 | |
| 112 | =pod |
| 113 | |
| 114 | =encoding UTF-8 |
| 115 | |
| 116 | =head1 NAME |
| 117 | |
| 118 | ZMQ::FFI::ZMQ2::Raw |
| 119 | |
| 120 | =head1 VERSION |
| 121 | |
| 122 | version 1.19 |
| 123 | |
| 124 | =head1 AUTHOR |
| 125 | |
| 126 | Dylan Cali <[email protected]> |
| 127 | |
| 128 | =head1 COPYRIGHT AND LICENSE |
| 129 | |
| 130 | This software is copyright (c) 2023 by Dylan Cali. |
| 131 | |
| 132 | This is free software; you can redistribute it and/or modify it under |
| 133 | the same terms as the Perl 5 programming language system itself. |
| 134 | |
| 135 | =cut |