[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: How to properly initialize a module?
- From: Ezequiel García <elezegarcia@...>
- Date: Tue, 6 Dec 2011 09:52:50 -0800 (PST)
(Sorry if this question has been answered thousands of times before.)
How is the 'cleanest' option to desing a (C-coded) module?
After some small researching, I found there was not
(by obvious reasons) something like:
require 'canvas', param
So I implemented something like this:
require 'canvas'
canvas.init('/dev/fb0')
-- canvas usage