Class: XCB::HOST
- Inherits:
-
Object
- Object
- XCB::HOST
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
851 852 853 854 855 856 857 858 859 860 861 862 863 |
# File 'ext/xproto.c', line 851
static VALUE
r_XCB_HOST_get_address(VALUE r_self)
{
xcb_host_t *host;
Data_Get_Struct(r_self, xcb_host_t, host);
int __address_len = xcb_host_address_length(host);
uint8_t *__address = xcb_host_address(host);
VALUE r_address = rb_ary_new2(__address_len);
int i;
for (i = 0; i < __address_len; i += 1)
rb_ary_store(r_address, i, INT2FIX(__address[i]));
return r_address;
}
|
#address_len ⇒ Object
844 845 846 847 848 849 850 |
# File 'ext/xproto.c', line 844
static VALUE
r_XCB_HOST_get_address_len(VALUE r_self)
{
xcb_host_t *host;
Data_Get_Struct(r_self, xcb_host_t, host);
return INT2FIX(host->address_len);
}
|
#family ⇒ Object
837 838 839 840 841 842 843 |
# File 'ext/xproto.c', line 837
static VALUE
r_XCB_HOST_get_family(VALUE r_self)
{
xcb_host_t *host;
Data_Get_Struct(r_self, xcb_host_t, host);
return INT2FIX(host->family);
}
|