8000 addons, feat: support napi_make_callback. · fibjs/fibjs@8bae75b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 8bae75b

Browse files
committed
addons, feat: support napi_make_callback.
1 parent a8ad9d4 commit 8bae75b

File tree

14 files changed

+603
-4
lines changed

14 files changed

+603
-4
lines changed

fibjs/addons/build.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if(NOT "${CLEAN_BUILD}" STREQUAL "true")
1616
5_function_factory
1717
6_object_wrap
1818
test_array
19+
test_async
1920
test_bigint
2021
test_buffer
2122
test_cannot_run_js

fibjs/addons/common.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ file(GLOB_RECURSE src_list "*.c*" "../win_delay_load_hook.cpp")
88

99
add_library(${name} SHARED ${src_list})
1010

11-
include_directories("${PROJECT_SOURCE_DIR}/../../include/addons" "${PROJECT_SOURCE_DIR}/../")
11+
include_directories(
12+
"${PROJECT_SOURCE_DIR}/../../include/addons"
13+
"${PROJECT_SOURCE_DIR}/../../../vender/uv/include"
14+
"${PROJECT_SOURCE_DIR}/../")
1215

1316
if(MSVC)
1417
target_link_libraries(${name} "${PROJECT_SOURCE_DIR}/../lib/node_${ARCH}.lib")

fibjs/addons/lib/node.def

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,284 @@ EXPORTS
152152
node_api_symbol_for
153153
node_api_throw_syntax_error
154154
node_module_register
155+
uv_accept
156+
uv_async_init
157+
uv_async_send
158+
uv_available_parallelism
159+
uv_backend_fd
160+
uv_backend_timeout
161+
uv_barrier_destroy
162+
uv_barrier_init
163+
uv_barrier_wait
164+
uv_buf_init
165+
uv_cancel
166+
uv_chdir
167+
uv_check_init
168+
uv_check_start
169+
uv_check_stop
170+
uv_close
171+
uv_cond_broadcast
172+
uv_cond_destroy
173+
uv_cond_init
174+
uv_cond_signal
175+
uv_cond_timedwait
176+
uv_cond_wait
177+
uv_cpu_info
178+
uv_cwd
179+
uv_default_loop
180+
uv_disable_stdio_inheritance
181+
uv_err_name
182+
uv_err_name_r
183+
uv_exepath
184+
uv_fileno
185+
uv_free_cpu_info
186+
uv_free_interface_addresses
187+
uv_fs_access
188+
uv_fs_chmod
189+
uv_fs_chown
190+
uv_fs_close
191+
uv_fs_closedir
192+
uv_fs_copyfile
193+
uv_fs_event_getpath
194+
uv_fs_event_init
195+
uv_fs_event_start
196+
uv_fs_event_stop
197+
uv_fs_fchmod
198+
uv_fs_fchown
199+
uv_fs_fdatasync
200+
uv_fs_fstat
201+
uv_fs_fsync
202+
uv_fs_ftruncate
203+
uv_fs_futime
204+
uv_fs_get_path
205+
uv_fs_get_ptr
206+
uv_fs_get_result
207+
uv_fs_get_statbuf
208+
uv_fs_get_system_error
209+
uv_fs_get_type
210+
uv_fs_lchown
211+
uv_fs_link
212+
uv_fs_lstat
213+
uv_fs_lutime
214+
uv_fs_mkdir
215+
uv_fs_mkdtemp
216+
uv_fs_mkstemp
217+
uv_fs_open
218+
uv_fs_opendir
219+
uv_fs_poll_getpath
220+
uv_fs_poll_init
221+
uv_fs_poll_start
222+
uv_fs_poll_stop
223+
uv_fs_read
224+
uv_fs_readdir
225+
uv_fs_readlink
226+
uv_fs_realpath
227+
uv_fs_rename
228+
uv_fs_req_cleanup
229+
uv_fs_rmdir
230+
uv_fs_scandir
231+
uv_fs_scandir_next
232+
uv_fs_sendfile
233+
uv_fs_stat
234+
uv_fs_statfs
235+
uv_fs_symlink
236+
uv_fs_unlink
237+
uv_fs_utime
238+
uv_fs_write
239+
uv_get_constrained_memory
240+
uv_get_free_memory
241+
uv_get_osfhandle
242+
uv_get_process_title
243+
uv_get_total_memory
244+
uv_getrusage
245+
uv_gettimeofday
246+
uv_guess_handle
247+
uv_handle_get_data
248+
uv_handle_get_loop
249+
uv_handle_get_type
250+
uv_handle_set_data
251+
uv_handle_size
252+
uv_handle_type_name
253+
uv_has_ref
254+
uv_hrtime
255+
uv_idle_init
256+
uv_idle_start
257+
uv_idle_stop
258+
uv_inet_ntop
259+
uv_inet_pton
260+
uv_interface_addresses
261+
uv_ip_name
262+
uv_ip4_addr
263+
uv_ip4_name
264+
uv_ip6_addr
265+
uv_ip6_name
266+
uv_is_active
267+
uv_is_closing
268+
uv_is_readable
269+
uv_is_writable
270+
uv_key_create
271+
uv_key_delete
272+
uv_key_get
273+
uv_key_set
274+
uv_kill
275+
uv_library_shutdown
276+
uv_listen
277+
uv_loadavg
278+
uv_loop_alive
279+
uv_loop_close
280+
uv_loop_configure
281+
uv_loop_delete
282+
uv_loop_fork
283+
uv_loop_get_data
284+
uv_loop_init
285+
uv_loop_new
286+
uv_loop_set_data
287+
uv_loop_size
288+
uv_metrics_idle_time
289+
uv_mutex_destroy
290+
uv_mutex_init
291+
uv_mutex_init_recursive
292+
uv_mutex_lock
293+
uv_mutex_trylock
294+
uv_mutex_unlock
295+
uv_now
296+
uv_once
297+
uv_open_osfhandle
298+
uv_os_environ
299+
uv_os_free_environ
300+
uv_os_free_passwd
301+
uv_os_get_passwd
302+
uv_os_getenv
303+
uv_os_gethostname
304+
uv_os_getpid
305+
uv_os_getppid
306+
uv_os_getpriority
307+
uv_os_homedir
308+
uv_os_setenv
309+
uv_os_setpriority
310+
uv_os_tmpdir
311+
uv_os_uname
312+
uv_os_unsetenv
313+
uv_pipe
314+
uv_pipe_bind
315+
uv_pipe_chmod
316+
uv_pipe_connect
317+
uv_pipe_getpeername
318+
uv_pipe_getsockname
319+
uv_pipe_init
320+
uv_pipe_open
321+
uv_pipe_pending_count
322+
uv_pipe_pending_instances
323+
uv_pipe_pending_type
324+
uv_poll_init
325+
uv_poll_init_socket
326+
uv_poll_start
327+
uv_poll_stop
328+
uv_prepare_init
329+
uv_prepare_start
330+
uv_prepare_stop
331+
uv_print_active_handles
332+
uv_print_all_handles
333+
uv_process_get_pid
334+
uv_process_kill
335+
uv_queue_work
336+
uv_read_start
337+
uv_read_stop
338+
uv_recv_buffer_size
339+
uv_ref
340+
uv_replace_allocator
341+
uv_req_get_data
342+
uv_req_get_type
343+
uv_req_set_data
344+
uv_req_size
345+
uv_req_type_name
346+
uv_resident_set_memory
347+
uv_run
348+
uv_rwlock_destroy
349+
uv_rwlock_init
350+
uv_rwlock_rdlock
351+
uv_rwlock_rdunlock
352+
uv_rwlock_tryrdlock
353+
uv_rwlock_trywrlock
354+
uv_rwlock_wrlock
355+
uv_rwlock_wrunlock
356+
uv_sem_destroy
357+
uv_sem_init
358+
uv_sem_post
359+
uv_sem_trywait
360+
uv_sem_wait
361+
uv_send_buffer_size
362+
uv_set_process_title
363+
uv_setup_args
364+
uv_shutdown
365+
uv_signal_init
366+
uv_signal_start
367+
uv_signal_start_oneshot
368+
uv_signal_stop
369+
uv_sleep
370+
uv_socketpair
371+
uv_spawn
372+
uv_stop
373+
uv_stream_get_write_queue_size
374+
uv_stream_set_blocking
375+
uv_strerror
376+
uv_strerror_r
377+
uv_tcp_bind
378+
uv_tcp_close_reset
379+
uv_tcp_connect
380+
uv_tcp_getpeername
381+
uv_tcp_getsockname
382+
uv_tcp_init
383+
uv_tcp_init_ex
384+
uv_tcp_keepalive
385+
uv_tcp_nodelay
386+
uv_tcp_open
387+
uv_tcp_simultaneous_accepts
388+
uv_thread_create
389+
uv_thread_create_ex
390+
uv_thread_equal
391+
uv_thread_join
392+
uv_thread_self
393+
uv_timer_again
394+
uv_timer_get_due_in
395+
uv_timer_get_repeat
396+
uv_timer_init
397+
uv_timer_set_repeat
398+
uv_timer_start
399+
uv_timer_stop
400+
uv_translate_sys_error
401+
uv_try_write
402+
uv_try_write2
403+
uv_tty_get_vterm_state
404+
uv_tty_get_winsize
405+
uv_tty_init
406+
uv_tty_reset_mode
407+
uv_tty_set_mode
408+
uv_tty_set_vterm_state
409+
uv_udp_bind
410+
uv_udp_connect
411+
uv_udp_get_send_queue_count
412+
uv_udp_get_send_queue_size
413+
uv_udp_getpeername
414+
uv_udp_getsockname
415+
uv_udp_init
416+
uv_udp_init_ex
417+
uv_udp_open
418+
uv_udp_recv_start
419+
uv_udp_recv_stop
420+
uv_udp_send
421+
uv_udp_set_broadcast
422+
uv_udp_set_membership
423+
uv_udp_set_multicast_interface
424+
uv_udp_set_multicast_loop
425+
uv_udp_set_multicast_ttl
426+
uv_udp_set_source_membership
427+
uv_udp_set_ttl
428+
uv_udp_try_send
429+
uv_udp_using_recvmmsg
430+
uv_unref
431+
uv_update_time
432+
uv_uptime
433+
uv_walk
434+
uv_write
435+
uv_write2

fibjs/addons/lib/node_amd64.lib

53.7 KB
Binary file not shown.

fibjs/addons/lib/node_arm64.lib

53.7 KB
Binary file not shown.

fibjs/addons/lib/node_i386.lib

55.1 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 2.6)
2+
3+
include(../common.cmake)

0 commit comments

Comments
 (0)
0