Ruby  2.4.2p198(2017-09-14revision59899)
Data Structures | Functions | Variables
win32ole_type.c File Reference
#include "win32ole.h"
Include dependency graph for win32ole_type.c:

Go to the source code of this file.

Data Structures

struct  oletypedata
 

Functions

static void oletype_free (void *ptr)
 
static size_t oletype_size (const void *ptr)
 
static VALUE foletype_s_ole_classes (VALUE self, VALUE typelib)
 
static VALUE foletype_s_typelibs (VALUE self)
 
static VALUE foletype_s_progids (VALUE self)
 
static VALUE oletype_set_member (VALUE self, ITypeInfo *pTypeInfo, VALUE name)
 
static VALUE foletype_s_allocate (VALUE klass)
 
static VALUE oleclass_from_typelib (VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
 
static VALUE foletype_initialize (VALUE self, VALUE typelib, VALUE oleclass)
 
static VALUE foletype_name (VALUE self)
 
static VALUE ole_ole_type (ITypeInfo *pTypeInfo)
 
static VALUE foletype_ole_type (VALUE self)
 
static VALUE ole_type_guid (ITypeInfo *pTypeInfo)
 
static VALUE foletype_guid (VALUE self)
 
static VALUE ole_type_progid (ITypeInfo *pTypeInfo)
 
static VALUE foletype_progid (VALUE self)
 
static VALUE ole_type_visible (ITypeInfo *pTypeInfo)
 
static VALUE foletype_visible (VALUE self)
 
static VALUE ole_type_major_version (ITypeInfo *pTypeInfo)
 
static VALUE foletype_major_version (VALUE self)
 
static VALUE ole_type_minor_version (ITypeInfo *pTypeInfo)
 
static VALUE foletype_minor_version (VALUE self)
 
static VALUE ole_type_typekind (ITypeInfo *pTypeInfo)
 
static VALUE foletype_typekind (VALUE self)
 
static VALUE ole_type_helpstring (ITypeInfo *pTypeInfo)
 
static VALUE foletype_helpstring (VALUE self)
 
static VALUE ole_type_src_type (ITypeInfo *pTypeInfo)
 
static VALUE foletype_src_type (VALUE self)
 
static VALUE ole_type_helpfile (ITypeInfo *pTypeInfo)
 
static VALUE foletype_helpfile (VALUE self)
 
static VALUE ole_type_helpcontext (ITypeInfo *pTypeInfo)
 
static VALUE foletype_helpcontext (VALUE self)
 
static VALUE ole_variables (ITypeInfo *pTypeInfo)
 
static VALUE foletype_variables (VALUE self)
 
static VALUE foletype_methods (VALUE self)
 
static VALUE foletype_ole_typelib (VALUE self)
 
static VALUE ole_type_impl_ole_types (ITypeInfo *pTypeInfo, int implflags)
 
static VALUE foletype_impl_ole_types (VALUE self)
 
static VALUE foletype_source_ole_types (VALUE self)
 
static VALUE foletype_default_event_sources (VALUE self)
 
static VALUE foletype_default_ole_types (VALUE self)
 
static VALUE foletype_inspect (VALUE self)
 
ITypeInfo * itypeinfo (VALUE self)
 
VALUE ole_type_from_itypeinfo (ITypeInfo *pTypeInfo)
 
VALUE create_win32ole_type (ITypeInfo *pTypeInfo, VALUE name)
 
void Init_win32ole_type (void)
 

Variables

static const rb_data_type_t oletype_datatype
 

Function Documentation

◆ create_win32ole_type()

VALUE create_win32ole_type ( ITypeInfo *  pTypeInfo,
VALUE  name 
)

◆ foletype_default_event_sources()

static VALUE foletype_default_event_sources ( VALUE  self)
static

Definition at line 848 of file win32ole_type.c.

References itypeinfo(), ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_default_ole_types()

static VALUE foletype_default_ole_types ( VALUE  self)
static

Definition at line 865 of file win32ole_type.c.

References itypeinfo(), ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_guid()

static VALUE foletype_guid ( VALUE  self)
static

Definition at line 388 of file win32ole_type.c.

References itypeinfo(), ole_type_guid(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_helpcontext()

static VALUE foletype_helpcontext ( VALUE  self)
static

Definition at line 660 of file win32ole_type.c.

References itypeinfo(), ole_type_helpcontext(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_helpfile()

static VALUE foletype_helpfile ( VALUE  self)
static

Definition at line 633 of file win32ole_type.c.

References itypeinfo(), ole_type_helpfile(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_helpstring()

static VALUE foletype_helpstring ( VALUE  self)
static

Definition at line 571 of file win32ole_type.c.

References itypeinfo(), ole_type_helpstring(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_impl_ole_types()

static VALUE foletype_impl_ole_types ( VALUE  self)
static

Definition at line 815 of file win32ole_type.c.

References itypeinfo(), ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_initialize()

static VALUE foletype_initialize ( VALUE  self,
VALUE  typelib,
VALUE  oleclass 
)
static

◆ foletype_inspect()

static VALUE foletype_inspect ( VALUE  self)
static

Definition at line 881 of file win32ole_type.c.

References default_inspect().

Referenced by Init_win32ole_type().

◆ foletype_major_version()

static VALUE foletype_major_version ( VALUE  self)
static

Definition at line 485 of file win32ole_type.c.

References itypeinfo(), ole_type_major_version(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_methods()

static VALUE foletype_methods ( VALUE  self)
static

Definition at line 742 of file win32ole_type.c.

References itypeinfo(), ole_methods_from_typeinfo(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_minor_version()

static VALUE foletype_minor_version ( VALUE  self)
static

Definition at line 514 of file win32ole_type.c.

References itypeinfo(), ole_type_minor_version(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_name()

static VALUE foletype_name ( VALUE  self)
static

Definition at line 294 of file win32ole_type.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole_type().

◆ foletype_ole_type()

static VALUE foletype_ole_type ( VALUE  self)
static

Definition at line 354 of file win32ole_type.c.

References itypeinfo(), ole_ole_type(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_ole_typelib()

static VALUE foletype_ole_typelib ( VALUE  self)
static

Definition at line 758 of file win32ole_type.c.

References itypeinfo(), ole_typelib_from_itypeinfo(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_progid()

static VALUE foletype_progid ( VALUE  self)
static

Definition at line 422 of file win32ole_type.c.

References itypeinfo(), ole_type_progid(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_s_allocate()

static VALUE foletype_s_allocate ( VALUE  klass)
static

◆ foletype_s_ole_classes()

static VALUE foletype_s_ole_classes ( VALUE  self,
VALUE  typelib 
)
static

Definition at line 115 of file win32ole_type.c.

References cWIN32OLE_TYPELIB, rb_funcall(), and rb_intern.

Referenced by Init_win32ole_type().

◆ foletype_s_progids()

static VALUE foletype_s_progids ( VALUE  self)
static

◆ foletype_s_typelibs()

static VALUE foletype_s_typelibs ( VALUE  self)
static

Definition at line 137 of file win32ole_type.c.

References rb_eval_string().

Referenced by Init_win32ole_type().

◆ foletype_source_ole_types()

static VALUE foletype_source_ole_types ( VALUE  self)
static

Definition at line 832 of file win32ole_type.c.

References itypeinfo(), ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_src_type()

static VALUE foletype_src_type ( VALUE  self)
static

Definition at line 605 of file win32ole_type.c.

References itypeinfo(), ole_type_src_type(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_typekind()

static VALUE foletype_typekind ( VALUE  self)
static

Definition at line 544 of file win32ole_type.c.

References itypeinfo(), ole_type_typekind(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_variables()

static VALUE foletype_variables ( VALUE  self)
static

Definition at line 723 of file win32ole_type.c.

References itypeinfo(), ole_variables(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ foletype_visible()

static VALUE foletype_visible ( VALUE  self)
static

Definition at line 456 of file win32ole_type.c.

References itypeinfo(), ole_type_visible(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole_type().

◆ Init_win32ole_type()

void Init_win32ole_type ( void  )

◆ itypeinfo()

ITypeInfo* itypeinfo ( VALUE  self)

◆ ole_ole_type()

static VALUE ole_ole_type ( ITypeInfo *  pTypeInfo)
static

Definition at line 300 of file win32ole_type.c.

References HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, Qnil, and rb_str_new2.

Referenced by foletype_ole_type().

◆ ole_type_from_itypeinfo()

VALUE ole_type_from_itypeinfo ( ITypeInfo *  pTypeInfo)

Definition at line 84 of file win32ole_type.c.

References create_win32ole_type(), HRESULT(), NULL, OLE_RELEASE, Qnil, and WC2VSTR.

Referenced by fole_type(), and ole_type_impl_ole_types().

◆ ole_type_guid()

static VALUE ole_type_guid ( ITypeInfo *  pTypeInfo)
static

Definition at line 361 of file win32ole_type.c.

References FALSE, HRESULT(), len, OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_wc2vstr(), and Qnil.

Referenced by foletype_guid().

◆ ole_type_helpcontext()

static VALUE ole_type_helpcontext ( ITypeInfo *  pTypeInfo)
static

Definition at line 640 of file win32ole_type.c.

References HRESULT(), NULL, ole_docinfo_from_type(), Qnil, and RB_INT2FIX.

Referenced by foletype_helpcontext().

◆ ole_type_helpfile()

static VALUE ole_type_helpfile ( ITypeInfo *  pTypeInfo)
static

Definition at line 612 of file win32ole_type.c.

References HRESULT(), NULL, ole_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by foletype_helpfile().

◆ ole_type_helpstring()

static VALUE ole_type_helpstring ( ITypeInfo *  pTypeInfo)
static

Definition at line 551 of file win32ole_type.c.

References HRESULT(), NULL, ole_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by foletype_helpstring().

◆ ole_type_impl_ole_types()

static VALUE ole_type_impl_ole_types ( ITypeInfo *  pTypeInfo,
int  implflags 
)
static

◆ ole_type_major_version()

static VALUE ole_type_major_version ( ITypeInfo *  pTypeInfo)
static

◆ ole_type_minor_version()

static VALUE ole_type_minor_version ( ITypeInfo *  pTypeInfo)
static

◆ ole_type_progid()

static VALUE ole_type_progid ( ITypeInfo *  pTypeInfo)
static

Definition at line 395 of file win32ole_type.c.

References FALSE, HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_wc2vstr(), and Qnil.

Referenced by foletype_progid().

◆ ole_type_src_type()

static VALUE ole_type_src_type ( ITypeInfo *  pTypeInfo)
static

Definition at line 578 of file win32ole_type.c.

References alias, HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_typedesc2val(), and Qnil.

Referenced by foletype_src_type().

◆ ole_type_typekind()

static VALUE ole_type_typekind ( ITypeInfo *  pTypeInfo)
static

◆ ole_type_visible()

static VALUE ole_type_visible ( ITypeInfo *  pTypeInfo)
static

Definition at line 430 of file win32ole_type.c.

References HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, Qfalse, and Qtrue.

Referenced by foletype_visible().

◆ ole_variables()

static VALUE ole_variables ( ITypeInfo *  pTypeInfo)
static

◆ oleclass_from_typelib()

static VALUE oleclass_from_typelib ( VALUE  self,
ITypeLib *  pTypeLib,
VALUE  oleclass 
)
static

◆ oletype_free()

static void oletype_free ( void *  ptr)
static

Definition at line 63 of file win32ole_type.c.

References free(), OLE_FREE, and oletypedata::pTypeInfo.

◆ oletype_set_member()

static VALUE oletype_set_member ( VALUE  self,
ITypeInfo *  pTypeInfo,
VALUE  name 
)
static

◆ oletype_size()

static size_t oletype_size ( const void *  ptr)
static

Definition at line 71 of file win32ole_type.c.

Variable Documentation

◆ oletype_datatype

const rb_data_type_t oletype_datatype
static
Initial value:
= {
"win32ole_type",
}
#define RUBY_TYPED_FREE_IMMEDIATELY
Definition: ruby.h:1145
static size_t oletype_size(const void *ptr)
Definition: win32ole_type.c:71
#define NULL
Definition: _sdbm.c:102
static void oletype_free(void *ptr)
Definition: win32ole_type.c:63

Definition at line 50 of file win32ole_type.c.