diff --git a/evt/Makefile b/evt/Makefile new file mode 100644 index 0000000..ea1e09f --- /dev/null +++ b/evt/Makefile @@ -0,0 +1,56 @@ +############################################################################## +## Hinterlib event facility ## +## ## +## Copyright © 2021 Aquefir ## +## Released under BSD-2-Clause. ## +############################################################################## + +ifeq ($(strip $(AQ)),) +$(error "AQ was not found in your environment. You need to install the Slick Makefiles from github.com/aquefir/slick to continue.") +endif + +include $(AQ)/lib/slick/base.mk + +PROJECT := uni_futils + +# put a ‘1’ for the desired target types to compile +SOFILE := +AFILE := 1 + +# space-separated path list for #includes +# includes +INCLUDES := include ../decl/include ../err/include ../himem/include \ + ../log/include +# "local" includes +INCLUDEL := src + +# space-separated library name list +LIBS := +LIBDIRS := + +# frameworks (macOS target only) +FWORKS := + +# ‘3P’ are in-tree 3rd-party dependencies +# 3PLIBDIR is the base directory +# 3PLIBS is the folder names in the base directory for each library +3PLIBDIR := 3rdparty +3PLIBS := tes + +# sources +SFILES := +CFILES := \ + src/futils.c +CPPFILES := +PUBHFILES := \ + include/uni/futils.h +PRVHFILES := + +# test suite sources +TES_CFILES := +TES_CPPFILES := +TES_PUBHFILES := +TES_PRVHFILES := + +# this defines all our usual targets +include $(AQ)/lib/slick/targets.mk diff --git a/evt/etc/BOILERPLATE b/evt/etc/BOILERPLATE new file mode 100644 index 0000000..fce3985 --- /dev/null +++ b/evt/etc/BOILERPLATE @@ -0,0 +1,19 @@ +This file contains the project’s copypastable boilerplate comment headers. + +Boilerplate for C-like languages: + +/****************************************************************************\ + * Hinterlib event facility * + * * + * Copyright © 2021 Aquefir * + * Released under BSD-2-Clause. * +\****************************************************************************/ + +Hash-based boilerplate (Python, POSIX shell, Makefile): + +############################################################################## +## Hinterlib event facility ## +## ## +## Copyright © 2021 Aquefir ## +## Released under BSD-2-Clause. ## +############################################################################## diff --git a/evt/include/uni/evt.h b/evt/include/uni/evt.h new file mode 100644 index 0000000..411548a --- /dev/null +++ b/evt/include/uni/evt.h @@ -0,0 +1,13 @@ +/****************************************************************************\ + * Hinterlib event facility * + * * + * Copyright © 2021 Aquefir * + * Released under BSD-2-Clause. * +\****************************************************************************/ + +#ifndef INC_API__UNI_EVT_H +#define INC_API__UNI_EVT_H + +struct uni_evt; + +#endif /* INC_API__UNI_EVT_H */ diff --git a/evt/src/evt.c b/evt/src/evt.c new file mode 100644 index 0000000..e69de29 diff --git a/evt/src/evt.h b/evt/src/evt.h new file mode 100644 index 0000000..9e5b288 --- /dev/null +++ b/evt/src/evt.h @@ -0,0 +1,18 @@ +/****************************************************************************\ + * Hinterlib event facility * + * * + * Copyright © 2021 Aquefir * + * Released under BSD-2-Clause. * +\****************************************************************************/ + +#ifndef INC__UNI_EVT_H +#define INC__UNI_EVT_H + +struct uni_evt +{ +#ifdef CFG_LINUX + int fd; +#endif /* CFG_LINUX */ +}; + +#endif /* INC__UNI_EVT_H */