Skip to content

Commit 8ea3088

Browse files
committed
Include only needed parts of the API header
1 parent 2b4d780 commit 8ea3088

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

src/common.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// === Implementation of the free-standing functions in lsl_c.h ===
1515

1616
extern "C" {
17-
#include "../include/lsl_c.h"
18-
1917
/// Get the protocol version.
2018
LIBLSL_C_API int32_t lsl_protocol_version() {
2119
return lsl::api_config::get_instance()->use_protocol_version();

src/lsl_inlet_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "stream_inlet_impl.h"
22

33
extern "C" {
4-
#include "../include/lsl_c.h"
4+
#include "../include/lsl/inlet.h"
55
// === implementation of the stream_inlet class ===
66

77
using namespace lsl;

src/lsl_outlet_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
extern "C" {
5-
#include "../include/lsl_c.h"
5+
#include "../include/lsl/outlet.h"
66
// === implementation of the lsl_outlet functions of the C API ===
77

88
using namespace lsl;

src/lsl_resolver_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "api_config.h"
33

44
extern "C" {
5-
#include "../include/lsl_c.h"
5+
#include "../include/lsl/resolver.h"
66
// === implementation of the continuous_resolver class ===
77

88
using namespace lsl;

src/lsl_streaminfo_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <string>
33

44
extern "C" {
5-
#include "../include/lsl_c.h"
5+
#include "../include/lsl/streaminfo.h"
66

77
// === Implementation of the streaminfo-related functions of the C API ===
88

src/lsl_xml_element_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "pugixml/pugixml.hpp"
22

33
extern "C" {
4-
#include "../include/lsl_c.h"
4+
#include "../include/lsl/xml.h"
55

66
// === implementation of the lsl_xml_ptr functions of lsl_c.h ===
77

0 commit comments

Comments
 (0)