From dcd8ad63316eac672492bc18112bbbb52811c3fc Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 24 Apr 2015 05:35:48 +0200 Subject: More structural changes to get ready for stand-alone event engines --- protocols/CMakeLists.txt | 2 +- protocols/default.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt index 5f64a43..3c1d75b 100644 --- a/protocols/CMakeLists.txt +++ b/protocols/CMakeLists.txt @@ -1,8 +1,8 @@ include_directories( ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/pcilib ) - set(HEADERS ${HEADERS} default.h) add_library(protocols STATIC default.c) diff --git a/protocols/default.h b/protocols/default.h index f8685f1..f535550 100644 --- a/protocols/default.h +++ b/protocols/default.h @@ -8,7 +8,7 @@ int pcilib_default_read(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pci int pcilib_default_write(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t value); #ifdef _PCILIB_CONFIG_C -static pcilib_register_protocol_api_description_t pcilib_default_protocol_api = +const pcilib_register_protocol_api_description_t pcilib_default_protocol_api = { NULL, NULL, pcilib_default_read, pcilib_default_write }; #endif /* _PCILIB_CONFIG_C */ -- cgit v1.2.3