eliminate main.c in BTdaemon

This commit is contained in:
matthias.ringwald 2009-07-11 17:42:03 +00:00
parent 370399f9f8
commit 899e4c5326
4 changed files with 3 additions and 20 deletions

View File

@ -55,6 +55,7 @@
9C88500C0FBF6702004980E4 /* l2cap.c */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.c; name = l2cap.c; path = src/l2cap.c; sourceTree = "<group>"; };
9C88500D0FBF6702004980E4 /* l2cap.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; name = l2cap.h; path = src/l2cap.h; sourceTree = "<group>"; };
9CA3C0900FB8B3C4005F48DE /* TODO.txt */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = text; path = TODO.txt; sourceTree = "<group>"; };
9CC152C61009052100223347 /* config.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = "<group>"; };
9CC813A00FFC0774002816F9 /* btstack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = btstack.h; path = src/btstack.h; sourceTree = "<group>"; };
9CC813A10FFC0774002816F9 /* btstack.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = btstack.c; path = src/btstack.c; sourceTree = "<group>"; };
9CC813A30FFC0A51002816F9 /* daemon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = daemon.h; path = src/daemon.h; sourceTree = "<group>"; };
@ -77,6 +78,7 @@
08FB7794FE84155DC02AAC07 /* project */ = {
isa = PBXGroup;
children = (
9CC152C61009052100223347 /* config.h */,
9C20720E10025E0500A07EA4 /* libusb-1.0.dylib */,
08FB7795FE84155DC02AAC07 /* Source */,
C6A0FF2B0290797F04C91782 /* Documentation */,

View File

@ -12,7 +12,6 @@ BTdaemon_SOURCES = \
hci_transport_h4.c \
$(usb_support) \
l2cap.c \
main.c \
run_loop.c \
socket_server.c

View File

@ -228,7 +228,7 @@ void acl_handler(uint8_t *packet, int size){
static hci_transport_t * transport;
static hci_uart_config_t config;
int daemon_main (int argc, const char * argv[]){
int main (int argc, const char * argv[]){
bt_control_t * control = NULL;

View File

@ -1,18 +0,0 @@
/*
* main.c
*
* Simple tests
*
* Created by Matthias Ringwald on 4/29/09.
*/
#include "daemon.h"
int main (int argc, const char * argv[]) {
// start daemon
daemon_main(argc, argv);
// daemon does not returs so far
return 0;
}