This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ffi' | |
require 'capn_proto' | |
ADDRESSBOOK_SCHEMA = File.expand_path("../addressbook.capnp", __FILE__) | |
module AddressBook extend CapnProto::SchemaLoader | |
load_schema(ADDRESSBOOK_SCHEMA) | |
end | |
extend FFI::Library | |
ffi_lib FFI::Library::LIBC | |
attach_function :puts, [ :string ], :int | |
$end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./mylibrary.so" | |
attach_function :createLight, [],:pointer | |
attach_function :destroyLight, [:pointer], :void | |
attach_function :toggleLight, [:pointer], :void | |
attach_function :declareLight, [:pointer], :void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./addressbook.so" | |
attach_function :writeAddressbook, | |
[], :pointer | |
attach_function :readAddressbook, [], [:pointer],:void | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./addressbook.so" | |
attach_function :writeAddressbook, | |
[], :pointer | |
attach_function :readAddressbook, [], [:pointer],:void | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./addressbook.so" | |
attach_function :writeAddressbook, | |
[], :pointer | |
attach_function :readAddressbook, [], [:pointer],:void | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./addressbook.so" | |
attach_function :writeAddressbook, | |
[], :pointer | |
attach_function :readAddressbook, [], [:pointer],:void | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyLibrary | |
extend FFI::Library | |
ffi_lib "./addressbook.so" | |
attach_function :writeAddressbook, | |
[], :pointer | |
attach_function :readAddressbook, [], [:pointer],:void | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ADDRESSBOOK_H | |
#define ADDRESSBOOK_H | |
class Addressbook | |
{ | |
status; | |
public: | |
Addressbook(); | |
void Id(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* No new notes to display. | |
root@system:/home/ankit# rvm implode | |
No command 'rvm' found, but there are 21 similar ones | |
rvm: command not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6-Sun-05:56 [~] $ rails new blog | |
exist | |
identical README.rdoc | |
identical Rakefile | |
identical config.ru | |
identical .gitignore | |
identical Gemfile | |
exist app | |
identical app/assets/javascripts/application.js | |
identical app/assets/stylesheets/application.css |
OlderNewer