Skip to content

Commit bbafc5a

Browse files
upgrade to 1.4.2
1 parent 3cdcc97 commit bbafc5a

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

bindings.lisp

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
(#.(lispify "TCP_CA_Recovery" 'enumvalue :keyword) #.3)
2525
(#.(lispify "TCP_CA_Loss" 'enumvalue :keyword) #.4))
2626

27+
(cffi:defcenum #.(lispify "uv_loop_option" 'enumname)
28+
#.(lispify "UV_LOOP_BLOCK_SIGNAL" 'enumvalue :keyword))
29+
2730
(cffi:defcenum #.(lispify "uv_run_mode" 'enumname)
2831
(#.(lispify "UV_RUN_DEFAULT" 'enumvalue :keyword) #.0)
2932
#.(lispify "UV_RUN_ONCE" 'enumvalue :keyword)
@@ -51,6 +54,11 @@
5154
(cffi:defcfun ("uv_loop_alive" #.(lispify "uv_loop_alive" 'function)) :int
5255
(loop :pointer))
5356

57+
(cffi:defcfun ("uv_loop_configure" #.(lispify "uv_loop_configure" 'function)) :int
58+
(loop :pointer)
59+
(option #.(lispify "uv_loop_option" 'enumname))
60+
&rest)
61+
5462
(cffi:defcfun ("uv_run" #.(lispify "uv_run" 'function)) :int
5563
(arg0 :pointer)
5664
(mode #.(lispify "uv_run_mode" 'enumname)))
@@ -282,6 +290,11 @@
282290
(cffi:defcfun ("uv_udp_recv_stop" #.(lispify "uv_udp_recv_stop" 'function)) :int
283291
(handle :pointer))
284292

293+
(cffi:defcenum #.(lispify "uv_tty_mode_t" 'enumname)
294+
#.(lispify "UV_TTY_MODE_NORMAL" 'enumvalue :keyword)
295+
#.(lispify "UV_TTY_MODE_RAW" 'enumvalue :keyword)
296+
#.(lispify "UV_TTY_MODE_IO" 'enumvalue :keyword))
297+
285298
(cffi:defcfun ("uv_tty_init" #.(lispify "uv_tty_init" 'function)) :int
286299
(arg0 :pointer)
287300
(arg1 :pointer)
@@ -290,7 +303,7 @@
290303

291304
(cffi:defcfun ("uv_tty_set_mode" #.(lispify "uv_tty_set_mode" 'function)) :int
292305
(arg0 :pointer)
293-
(mode :int))
306+
(mode #.(lispify "uv_tty_mode_t" 'enumname)))
294307

295308
(cffi:defcfun ("uv_tty_reset_mode" #.(lispify "uv_tty_reset_mode" 'function)) :int)
296309

@@ -323,8 +336,13 @@
323336

324337
(cffi:defcfun ("uv_pipe_getsockname" #.(lispify "uv_pipe_getsockname" 'function)) :int
325338
(handle :pointer)
326-
(buf :string)
327-
(len :pointer))
339+
(buffer :string)
340+
(size :pointer))
341+
342+
(cffi:defcfun ("uv_pipe_getpeername" #.(lispify "uv_pipe_getpeername" 'function)) :int
343+
(handle :pointer)
344+
(buffer :string)
345+
(size :pointer))
328346

329347
(cffi:defcfun ("uv_pipe_pending_instances" #.(lispify "uv_pipe_pending_instances" 'function)) :void
330348
(handle :pointer)
@@ -786,8 +804,8 @@
786804

787805
(cffi:defcfun ("uv_fs_poll_getpath" #.(lispify "uv_fs_poll_getpath" 'function)) :int
788806
(handle :pointer)
789-
(buf :string)
790-
(len :pointer))
807+
(buffer :string)
808+
(size :pointer))
791809

792810
(cffi:defcstruct #.(lispify "uv_signal_s_tree_entry_s" 'classname)
793811
(#.(lispify "rbe_left" 'slotname) :pointer)
@@ -825,8 +843,8 @@
825843

826844
(cffi:defcfun ("uv_fs_event_getpath" #.(lispify "uv_fs_event_getpath" 'function)) :int
827845
(handle :pointer)
828-
(buf :string)
829-
(len :pointer))
846+
(buffer :string)
847+
(size :pointer))
830848

831849
(cffi:defcfun ("uv_ip4_addr" #.(lispify "uv_ip4_addr" 'function)) :int
832850
(ip :string)

0 commit comments

Comments
 (0)