1
0
Fork 0

OsmoCore: Add the beginning of a libosmocore binding

This commit is contained in:
Holger Hans Peter Freyther 2010-09-09 22:39:13 +08:00
parent 0045d42b40
commit 9a8c9300d7
1 changed files with 26 additions and 0 deletions

26
OsmoCore.st Normal file
View File

@ -0,0 +1,26 @@
"Copyright placeholder"
Object subclass: OSMOCore [
OSMOCore class >> initialize [
DLD addLibrary: 'libosmocore.so.0'.
ObjectMemory addDependent: self.
]
OSMOCore class >> update: aSymbol [
"Check if the BSC Symbols are there again?"
]
OSMOCore class >> bsc_select_main: poll [
<cCall: 'bsc_select_main' returning: #int args: #(#int) >
]
OSMOCore class >> processEvents [
self bsc_select_main: 1
]
]
Eval [
OSMOCore initialize.
"TODO: start process that is going to poll... but make sure it is
only one doing that..."
]