path: root/ext/dl/dl.h
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-10 02:13:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-10 02:13:20 +0000
commit8812fe1a973e66130a560708b15a76bd2e08e5a7 (patch)
treeabc1774c2925fdb60c35b2f86c613c949d652120 /ext/dl/dl.h
parent07b5520752bfe9217ff906189a32c878717a3917 (diff)
* ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
the argument is an instance of DL::CFunc. * ext/dl/cptr.c (rb_dlptr_initialize, rb_dlptr_s_malloc): checks if DL::CFunc. [ruby-dev:38403]. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index d47a3aa729..d06cad4e6b 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -216,6 +216,7 @@ struct ptr_data {
#define RPTR_DATA(obj) ((struct ptr_data *)(DATA_PTR(obj)))
VALUE rb_dlcfunc_new(void (*func)(), int dltype, const char * name, ID calltype);
+int rb_dlcfunc_kind_p(VALUE func);
VALUE rb_dlptr_new(void *ptr, long size, freefunc_t func);
VALUE rb_dlptr_new2(VALUE klass, void *ptr, long size, freefunc_t func);
VALUE rb_dlptr_malloc(long size, freefunc_t func);