Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 2 additions & 1 deletion blueutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "bluetooth.h"
#include "Bluetooth.h"
#include "blueutil.h"

#define ON 1
#define OFF 0
Expand Down
16 changes: 16 additions & 0 deletions blueutil.h
Original file line number Diff line number Diff line change
@@ -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