[9780] | 1 | /* |
---|
| 2 | * wiic.h |
---|
| 3 | * |
---|
| 4 | * This file is part of WiiC, written by: |
---|
| 5 | * Gabriele Randelli |
---|
| 6 | * Email: randelli@dis.uniroma1.it |
---|
| 7 | * |
---|
| 8 | * Copyright 2010 |
---|
| 9 | * |
---|
| 10 | * This file is based on Wiiuse, written By: |
---|
| 11 | * Michael Laforest < para > |
---|
| 12 | * Email: < thepara (--AT--) g m a i l [--DOT--] com > |
---|
| 13 | * |
---|
| 14 | * Copyright 2006-2007 |
---|
| 15 | * |
---|
| 16 | * This program is free software; you can redistribute it and/or modify |
---|
| 17 | * it under the terms of the GNU General Public License as published by |
---|
| 18 | * the Free Software Foundation; either version 3 of the License, or |
---|
| 19 | * (at your option) any later version. |
---|
| 20 | * |
---|
| 21 | * This program is distributed in the hope that it will be useful, |
---|
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 24 | * GNU General Public License for more details. |
---|
| 25 | * |
---|
| 26 | * You should have received a copy of the GNU General Public License |
---|
| 27 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 28 | * |
---|
| 29 | * $Header$ |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | /** |
---|
| 33 | * @file |
---|
| 34 | * |
---|
| 35 | * @brief API header file. |
---|
| 36 | * |
---|
| 37 | * If this file is included from inside the wiiuse source |
---|
| 38 | * and not from a third party program, then wiimote_internal.h |
---|
| 39 | * is also included which extends this file. |
---|
| 40 | */ |
---|
| 41 | #ifndef WIIC_H_INCLUDED |
---|
| 42 | #define WIIC_H_INCLUDED |
---|
| 43 | |
---|
| 44 | #ifdef __APPLE__ |
---|
| 45 | /* mac */ |
---|
| 46 | #include <CoreFoundation/CoreFoundation.h> |
---|
| 47 | #include <IOBluetooth/IOBluetoothUserLib.h> |
---|
| 48 | #else |
---|
| 49 | /* nix */ |
---|
[9827] | 50 | /* SANDRO HACK can't get bluetooth to work properly at the moment, will come |
---|
| 51 | * back here and fix this very ugly inclusion as soon as I get to grips with |
---|
| 52 | * cmake. |
---|
| 53 | */ |
---|
| 54 | // #include "bluetooth/bluetooth.h" |
---|
[9839] | 55 | #include <bluetooth/bluetooth.h> |
---|
| 56 | // #include "/home/georgr/libbluetooth-dev/libbluetooth-dev/usr/include/bluetooth/bluetooth.h" |
---|
[9780] | 57 | #endif |
---|
| 58 | |
---|
| 59 | #ifdef WIIC_INTERNAL_H_INCLUDED |
---|
| 60 | #define WCONST |
---|
| 61 | #else |
---|
| 62 | #define WCONST const |
---|
| 63 | #endif |
---|
| 64 | |
---|
| 65 | /* |
---|
| 66 | * Largest known payload is 21 bytes. |
---|
| 67 | * Add 2 for the prefix and round up to a power of 2. |
---|
| 68 | */ |
---|
| 69 | #define MAX_PAYLOAD 32 |
---|
| 70 | |
---|
| 71 | /***************************************** |
---|
| 72 | * |
---|
| 73 | * Include API specific stuff |
---|
| 74 | * |
---|
| 75 | *****************************************/ |
---|
| 76 | |
---|
| 77 | #define WIIC_EXPORT_DECL |
---|
| 78 | #define WIIC_IMPORT_DECL |
---|
| 79 | |
---|
| 80 | #ifdef WIIC_COMPILE_LIB |
---|
| 81 | #define WIIC_EXPORT WIIC_EXPORT_DECL |
---|
| 82 | #else |
---|
| 83 | #define WIIC_EXPORT WIIC_IMPORT_DECL |
---|
| 84 | #endif |
---|
| 85 | |
---|
| 86 | #include "wiic_macros.h" |
---|
| 87 | #include "wiic_structs.h" |
---|
| 88 | #include "wiic_functions.h" |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | #endif /* WIIC_H_INCLUDED */ |
---|
| 92 | |
---|