aboutsummaryrefslogtreecommitdiff
path: root/nimbluez/msbt
diff options
context:
space:
mode:
authorElectric-Blue <Electric-Blue@users.noreply.github.com>2016-01-31 22:03:56 +0300
committerElectric-Blue <Electric-Blue@users.noreply.github.com>2016-01-31 22:03:56 +0300
commit48c3a10ccf6ddb82d2dffa063032f9c6e47d238f (patch)
treeca57acff6c6e048d66766c4eed3f2ef1531251b8 /nimbluez/msbt
parent315b1d08d278517bf90a65a2bb340fe7f8eeb747 (diff)
downloadNimBluez-48c3a10ccf6ddb82d2dffa063032f9c6e47d238f.tar.gz
NimBluez-48c3a10ccf6ddb82d2dffa063032f9c6e47d238f.zip
Class of device for msbt + some type refinement.
Diffstat (limited to 'nimbluez/msbt')
-rw-r--r--nimbluez/msbt/ms_bluetoothapis.nim1
-rw-r--r--nimbluez/msbt/ms_bthdef.nim1
-rw-r--r--nimbluez/msbt/ms_bthsdpdef.nim10
-rw-r--r--nimbluez/msbt/ms_ws2bth.nim1
4 files changed, 7 insertions, 6 deletions
diff --git a/nimbluez/msbt/ms_bluetoothapis.nim b/nimbluez/msbt/ms_bluetoothapis.nim
index c895128..118cb3d 100644
--- a/nimbluez/msbt/ms_bluetoothapis.nim
+++ b/nimbluez/msbt/ms_bluetoothapis.nim
@@ -11,7 +11,6 @@ when not defined(windows):
const
libbluetooth* = "bthprops.cpl"
-import winlean
import ms_bthdef, ms_bthsdpdef
const
diff --git a/nimbluez/msbt/ms_bthdef.nim b/nimbluez/msbt/ms_bthdef.nim
index 96be91d..548ab73 100644
--- a/nimbluez/msbt/ms_bthdef.nim
+++ b/nimbluez/msbt/ms_bthdef.nim
@@ -22,7 +22,6 @@
#Revision History:
#
# --
-import winlean
import ms_bthsdpdef
template DEFINE_GUID*(name: expr; p1: int32; p2, p3: int16;
diff --git a/nimbluez/msbt/ms_bthsdpdef.nim b/nimbluez/msbt/ms_bthsdpdef.nim
index 051fc44..d776db4 100644
--- a/nimbluez/msbt/ms_bthsdpdef.nim
+++ b/nimbluez/msbt/ms_bthsdpdef.nim
@@ -2,7 +2,9 @@
# Copyright (C) Microsoft. All rights reserved.
#
-import winlean
+from winlean import GUID, HANDLE
+
+export GUID, HANDLE
type
WCHAR* = uint16
@@ -18,8 +20,10 @@ type
CHAR* = char
UCHAR* = uint8
BYTE* = byte
-# ULONG* = int32
-# DWORD* = int32
+ LONG* = int32
+ ULONG* = uint32
+ PULONG* = ptr ULONG
+ DWORD* = uint32
LPSTR* = cstring
LPDWORD* = ptr DWORD
ULONGLONG* = uint64
diff --git a/nimbluez/msbt/ms_ws2bth.nim b/nimbluez/msbt/ms_ws2bth.nim
index 4afb08d..869ec37 100644
--- a/nimbluez/msbt/ms_ws2bth.nim
+++ b/nimbluez/msbt/ms_ws2bth.nim
@@ -17,7 +17,6 @@
#--
{.passC: "-mno-ms-bitfields".}
-import winlean
import ms_bthdef, ms_bthsdpdef, ms_bluetoothapis
const