lib/ds9.rb in ds9-1.1.0 vs lib/ds9.rb in ds9-1.1.1
- old
+ new
@@ -1,10 +1,10 @@
require 'ds9.so'
require 'stringio'
module DS9
- VERSION = '1.1.0'
+ VERSION = '1.1.1'
module Frames
class Frame
Header = Struct.new :length, :stream_id, :type, :flags
@@ -71,14 +71,23 @@
end
end
class Session
def initialize
+ @post_buffers = {}
cbs = make_callbacks
init_internals cbs
end
private
+
+ def save_post_buffer id, stream
+ @post_buffers[id] = stream
+ end
+
+ def remove_post_buffer id
+ @post_buffers.delete id
+ end
def send_event string
raise NotImplementedError
end