Commit 90a2a3b7 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Rename library and source files

parent 7250bfa5
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
cmake_minimum_required(VERSION 3.6)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(gfsctl SHARED)

target_sources(gfsctl
set(WARNINGS_FLAGS "-Wall -Wextra --pedantic -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG -O3")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${WARNINGS_FLAGS} -g -O0")

add_library(gekkofs_api SHARED "")

target_sources(gekkofs_api
    PUBLIC
    ${CMAKE_CURRENT_LIST_DIR}/gfsctl.h
    ${CMAKE_CURRENT_LIST_DIR}/gekkofs.h
    PRIVATE
    ${CMAKE_CURRENT_LIST_DIR}/libgfsctl.cpp
    ${CMAKE_CURRENT_LIST_DIR}/libgekkofs-api.cpp
    )

ifs/src/api/gekkofs.h

0 → 100644
+25 −0
Original line number Diff line number Diff line
#ifndef __GEKKOFS_API_H__
#define __GEKKOFS_API_H__ 1

#ifndef GEKKOFS_API_VERSION
#define GEKKOFS_API_VERSION 10
#endif

#ifdef __cplusplus
extern "C" {
#endif

enum gekkofs_error_t {
    GEKKOFS_SUCCESS = 0
};

// TODO: add interfaces here
//
gekkofs_error_t
gekkofs_import(const char* pathname);

#ifdef __cplusplus
}
#endif

#endif // __GEKKOFS_API_H__

ifs/src/api/gfsctl.h

deleted100644 → 0
+0 −0

Empty file deleted.

+11 −0
Original line number Diff line number Diff line
#include "gekkofs.h"

gekkofs_error_t
gekkofs_import(const char* pathname) {

    int b = 2;
    unsigned int a = b;

    return GEKKOFS_SUCCESS;
}

ifs/src/api/libgfsctl.cpp

deleted100644 → 0
+0 −0

Empty file deleted.