diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5ffb1a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +all: + clang -framework Foundation -framework IOBluetooth -o blueutil blueutil.c + +install: all + cp -r blueutil /usr/local/bin + +clean: + rm -f $(OBJS) $(OUT) diff --git a/blueutil.c b/blueutil.c index d19b1b2..4630407 100644 --- a/blueutil.c +++ b/blueutil.c @@ -15,7 +15,8 @@ #include #include #include -#include "bluetooth.h" +#include "Bluetooth.h" +#include "blueutil.h" #define ON 1 #define OFF 0 diff --git a/blueutil.h b/blueutil.h new file mode 100644 index 0000000..9449cc1 --- /dev/null +++ b/blueutil.h @@ -0,0 +1,16 @@ +// +// blueutil.h +// blueutil +// +// Created by shmohawk on 7/26/24. +// +// + +#ifndef blueutil_blueutil_h +#define blueutil_blueutil_h + +int BTPowerState(); +int BTSetPowerState(int powerState); +void BTStatus(); + +#endif