MacOS SDK and IOWarrior? Where are the basic functions?

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
jmmelkon
Posts: 9
Joined: Tue Nov 30, 2021 5:33 pm

MacOS SDK and IOWarrior? Where are the basic functions?

Post by jmmelkon »

Hi,

sorry for the newbie question but...

I have successfully written/modified a python code for using the iowkit.dll under Windows.
It is so simple, because all you have to do is:
- import ctypes
- load the library, that can be put in the same directory without installation
- call the C functions of the DLL as documented in the docs

For some reason everything seems to be more complicated under MacOS.

It seems that, if I am only interested in writing a command-line code, I have to import the IOWarriorLib.h header file, and make sure the IOWarriorLib.c file is in the same directory. And then call the function IOWarriorWriteToInterface to send reports

My questions are:

- where have gone all the convenient functions usually found in the windows api? (like IowKitOpenDevice(), IowKitRead, IowKitWrite)
- Do I need the IOKit framework? Do I need XCode?
- where is the pdf doc?

What am I missing?

Thank you.
Guido Körber
Site Admin
Posts: 2883
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: MacOS SDK and IOWarrior? Where are the basic functions?

Post by Guido Körber »

The MacOS and Windows versions have been implemented separately and since we don't have that much request for the MacOS support we did stick with the rather simple library. The library has to be compiled into your software to work. And yes, you will need XCode.
towaibw
Posts: 206
Joined: Sat Dec 27, 2003 10:55 pm
Location: Berlin / Germany
Contact:

Re: MacOS SDK and IOWarrior? Where are the basic functions?

Post by towaibw »

Hi,

four years later, the answer looks like this:

pip install iowp

Your questions were (answers in bold):
- where have gone all the convenient functions usually found in the windows api? (like IowKitOpenDevice(), IowKitRead, IowKitWrite) --> iowkit.py, but you no longer need to access them directly.
- Do I need the IOKit framework? Do I need XCode? --> neither
- where is the pdf doc? --> This is the landingepage of IOWP

What am I missing? --> Nothing back then, IOWP today

I invite you and all other interested parties to the Telegram group IO-Warrior Python (IOWP).

It's never been easier!
Now you can buy a lot of IOWs and use them to implement your projects on macOS.
(I had to say that because I promised someone a sales increase through IOWP ;-)

Thank you for your patience (waiting for IOWP).

Thomas
IOWP >> Projektbeispiele: wagner-ibw.de Webseite
Post Reply