| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 /// Fletch utility package. | 5 /// Dartino utility package. |
| 6 /// | 6 /// |
| 7 /// This is a preliminary API. | 7 /// This is a preliminary API. |
| 8 library fletch; | 8 library dartino; |
| 9 | 9 |
| 10 import 'dart:fletch.ffi'; | 10 import 'dart:dartino.ffi'; |
| 11 import 'package:ffi/ffi.dart'; | 11 import 'package:ffi/ffi.dart'; |
| 12 | 12 |
| 13 final ForeignFunction _getVersion = ForeignLibrary.main.lookup('GetVersion'); | 13 final ForeignFunction _getVersion = ForeignLibrary.main.lookup('GetVersion'); |
| 14 | 14 |
| 15 String version() => cStringToString(_getVersion.pcall$0()); | 15 String version() => cStringToString(_getVersion.pcall$0()); |
| OLD | NEW |