initial commit
This commit is contained in:
commit
763c719dfe
4
CMakeLists.txt
Normal file
4
CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.24)
|
||||||
|
PROJECT(edterm)
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(lib)
|
10
lib/CMakeLists.txt
Normal file
10
lib/CMakeLists.txt
Normal file
@ -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})
|
9
lib/include/edapi/journalfile.h
Normal file
9
lib/include/edapi/journalfile.h
Normal file
@ -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
|
12
lib/src/journalfile.c
Normal file
12
lib/src/journalfile.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <edapi/journalfile.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
struct edapi_journalfile_ {
|
||||||
|
void *tag;
|
||||||
|
};
|
||||||
|
|
||||||
|
edapi_journalfile_t edapi_journalfile_new(void)
|
||||||
|
{
|
||||||
|
return calloc(1, sizeof(struct edapi_journalfile_));
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user