OsmoCore: Add the beginning of a libosmocore binding
This commit is contained in:
parent
0045d42b40
commit
9a8c9300d7
|
@ -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..."
|
||||
]
|
Reference in New Issue