Private
Public Access
2
0

mraa_internal: add extern "C" to internal headers

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Brendan Le Foll
2014-07-10 22:08:05 +01:00
committed by Thomas Ingleby
parent 5845350283
commit b5b7dec441
5 changed files with 39 additions and 5 deletions

View File

@@ -24,9 +24,17 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "mraa_adv_func.h"
#define MRAA_INTEL_GALILEO_REV_D_PINCOUNT 25
mraa_board_t*
mraa_intel_galileo_rev_d(mraa_adv_func* adv);
#ifdef __cplusplus
}
#endif

View File

@@ -24,9 +24,17 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "mraa_adv_func.h"
#define MRAA_INTEL_GALILEO_GEN_2_PINCOUNT 25
mraa_board_t*
mraa_intel_galileo_gen2(mraa_adv_func* adv);
#ifdef __cplusplus
}
#endif

View File

@@ -24,6 +24,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "common.h"
#include "mraa_adv_func.h"
#include "mraa_internal_types.h"
@@ -79,8 +83,6 @@ mraa_mmap_pin_t* mraa_setup_mmap_gpio(int pin);
*/
mraa_result_t mraa_swap_complex_gpio(int pin, int out);
/** Get the advance structure.
*
* @return struct containing internal advance information for hooks
*/
mraa_adv_func* mraa_get_advance();
#ifdef __cplusplus
}
#endif

View File

@@ -30,6 +30,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
@@ -91,3 +95,7 @@ extern int i2c_smbus_write_i2c_block_data(int fd, uint8_t command, uint8_t lengt
extern int i2c_smbus_block_process_call(int fd, uint8_t command, uint8_t length,
uint8_t *values);
#ifdef __cplusplus
}
#endif

View File

@@ -24,5 +24,13 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
const char* gVERSION;
const char* gVERSION_SHORT;
#ifdef __cplusplus
}
#endif