ruby-x11/lib/X11/protocol.rb

19 lines
268 B
Ruby
Raw Normal View History

2011-08-01 06:51:22 +02:00
module X11
class Protocol
# endiness of your machine
BYTE_ORDER = case [1].pack("L")
when "\0\0\0\1"
"B"
when "\1\0\0\0"
"l"
else
raise "Cannot determine byte order"
end
MAJOR = 11
MINOR = 0
end
end