commit 763c719dfe950f6583118692030e76b8b044829d Author: Florian Stinglmayr Date: Wed Apr 23 15:43:22 2025 +0200 initial commit diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c43546f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,4 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.24) +PROJECT(edterm) + +ADD_SUBDIRECTORY(lib) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..8215986 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,10 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.24) + +SET(SOURCES + "src/journalfile.c" + "include/edapi/journalfile.h" +) + +INCLUDE_DIRECTORIES("include") + +ADD_LIBRARY("edapi" SHARED ${SOURCES}) diff --git a/lib/include/edapi/journalfile.h b/lib/include/edapi/journalfile.h new file mode 100644 index 0000000..795e096 --- /dev/null +++ b/lib/include/edapi/journalfile.h @@ -0,0 +1,9 @@ +#ifndef EDAPI_JOURNAL_FILE_H +#define EDAPI_JOURNAL_FILE_H + +struct edapi_journalfile_; +typedef struct edapi_journal_file *edapi_journalfile_t; + +edapi_journalfile_t edapi_journalfile_new(void); + +#endif diff --git a/lib/src/journalfile.c b/lib/src/journalfile.c new file mode 100644 index 0000000..57aec80 --- /dev/null +++ b/lib/src/journalfile.c @@ -0,0 +1,12 @@ +#include + +#include + +struct edapi_journalfile_ { + void *tag; +}; + +edapi_journalfile_t edapi_journalfile_new(void) +{ + return calloc(1, sizeof(struct edapi_journalfile_)); +}