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: 2856
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.
Post Reply